[Release]String-compatible Sendkey Alt [SDK]

Posts 1–9 of 9 · Page 1 of 1
[Release]String-compatible Sendkey Alt [SDK]
API alternative to Send Keys

A-lot of applications (especially Direct X applications) Block sendkeys or have patched send keys to avoid spamming, which means that you would have to actually send keystrokes through your keyboard, well with virtual keys coupled with the global keyboard Hook API, you should be able to send keys to an application without physically hitting the keyboard, this can be used for spammers and/or bots.

To use this, simply follow the above steps for keyboard hooking, which then download the SendKeyAPI Module below, add it to your project as an existing item

Then

[php]
Imports ApplicationName.SendKeyApi
[/php]


Once you do that, you can call the functions from any form.

the code will look like this to press a key

[php]
keybd_event(VK_F9, 0, 0, 0) ' This code (in format will press the Key and hold it down
' keybd_event(VK_F9, 0, KEYEVENTF_KEYUP, 0) ' This code will (in this format) bring the button back up.
[/php]

*NEW*
To send a whole string, it looks like this:
Code:
    'Dim mystrng as string = "abcdefg" 
    dim chrs() as char = mystrng.tochararray 'converts mystrng to an array of characters
    Dim i as integer = 0 
    Do until i = chrs.count 'performs an action until all the characters are covered
       keybd_event(vkKeyScan(chrs(i)), 0, 0, 0) 'keydowns the specified character
       keybd_event(vkKeyScan(chrs(i)), 0, KEYEVENTF_KEYUP, 0) 'keyups the specified character
       i += 1
    Loop
This project obviously isn't finished, but I just wanted to contribute to the project whether it would be in one way or another.



Credits:
Code:
Nextgen %98
Lolland %2
send.zipattachment deleted · 15 downloads before removal
First post ftw ty ty ty ty very nice my friend
My application(see below in my signature) also uses this API.

It records your mouse movements(x,y) and your keyboard actions. You can then save it as macro and replay it, either loop one or play all in a row. It IS working in DirectX Games(Clicking & Writing).
Umm...forgot to upload the module? /
Quote Originally Posted by Jason View Post
Umm...forgot to upload the module? /
LOL Sorry my internet is usually laggy at night.
Mouse Events:

[php] Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)
Private Const MOUSEEVENTF_LEFTDOWN = &H2 ' left button down
Private Const MOUSEEVENTF_LEFTUP = &H4 ' left button up
Private Const MOUSEEVENTF_MIDDLEDOWN = &H20
Private Const MOUSEEVENTF_MIDDLEUP = &H40
Private Const MOUSEEVENTF_RIGHTDOWN = &H8
Private Const MOUSEEVENTF_RIGHTUP = &H10[/php]

[php] mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)[/php]
Thanks for the creds, Looks good
I already made it but using For loop... Anyways thanks
Well, I already already already made it.

Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us