Originally Posted by
Qizzle15401
ok soo say i want to send keys to an app ay? but i want to send the keys to move a player position like one step forward or one step back with a W or a S is there a send key alternative that can get past video games that only move a player position if it really comes from the keyboard? any way to hook they keyboard if so could u explain it too me thanks guys
Keybd_event?
Code:
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, _
ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const KEYEVENTf_KEYUP As Long = &H2
Code:
keybd_event(Keys.W, 0, 0, 0)
keybd_event(Keys.W, 0, KEYEVENTf_KEYUP, 0)