[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:
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:
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
Credits:
Code:
Nextgen %98 Lolland %2
send.zip




