[Help]Keyboard,SendKeys,Hook[Solved]

Posts 17 of 7 · Page 1 of 1
[Help]Keyboard,SendKeys,Hook[Solved]
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
this has more to do with sending packets and stuffz...way too advanced for me
Meh, Give me a few hours and it will be added to the VB sdk in the sticky, I am writing a low_level_keyboard Hook with Sendkeys API alternative.

This will allow you to use a Single line of code to hook into a application.

But for now, just research SendKeys API , there is some documentation.
Cool stuff thanks bud
Quote Originally Posted by Qizzle15401 View Post
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)
keyborad event does work thanks bud
Marked solved
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?