My friend tested it with c++.
I truly wonder what the hell am I doing..
Readed it wrongly, understood now
and yea, I really don't understand the dll structers so its hard for me to write this, I guess after this is solved I will understand this.
func sendinput($nInputs,$pInput,$cbSize)
DllOpen("user32.dll")
Local $tagKEYBDINPUT = DllStructCreate("short;short;dword;dword;ulong*")
Local $tagInput = DllStructCreate("dword;uint")
DllStructSetData ($tagKEYBDINPUT, 3,"INPUT_KEYBOARD",)
Dllstructsetdata($tagKEYBDINPUT,2,$pInput)
Return DllCall("user32.dll","Long","SendInput", "uint", $nInputs, "ptr", DllStructGetPtr($tagInput), "int", DllStructGetSize($tagInput))
endfunc
SendInput(1,14,1)
still not quite......I added the setdata because I figured i need to specify the type and the actually keyascii so I figured thats how it supposed to be.