[VB.Net]Sendkeys 03-30-2011, 11:46 AM
#1
hello in this guide i'm going to explain what sendkeys in VB is. Using this function you can actually type words like they are typed from your keyboard!
for example:
You can also make bots using this. how? for example, if a game requires jumping with spacebar you can put this in a timer:
This is the same as a spacebar. But its typed alot faster and faster loops than you typing and not only that, but you can add a hotkey to it!
Like your in-game. you want to be afk for a while and want your bot to its work. well, you don't need to hide the game and go activate it. you can use a hotkey! like this:
add this below form1:
and in your timer add this:and below the end sub of it add this:
And you can jump as many times as you want!
not only that but you can make a chat room spammer with sendkeys too.
like:
And add a textbox1 for the message you want to spam
add the timer's interval low and you can flood the room
( just don't get banned :heh: )
You can also close a program.
Like for closing firefox you can use this:
Well for sending non-Alphabetical keys you need codes. like as you saw for sending the Enter key you needed {ENTER}. Here is a list i got from Microsoft(put the ones you want to use in "" cause it needs to be string):
And did i tell you they can be used in combination?
Please don't leech this 1234hotmaster figured this out on this site. You can use combinations for: Closing program, task manager, regedit, procexp, Disable Anti-Viruses, Activate other program hotkeys, switch between tabs, Open taskmgr, Delete Files, Copy Files, Move Files, Shut down computer and lots more!
( Tip: For closing certain programs you can get they're active window title and if they matched the one you want, send the keys. )
Just remember, this was figured out by 1234hotmaster.
Hope you liked the guide and have a great day!
for example:
Code:
process.start("notepad")
Sendkeys.Send("hello do you know what i mean? :)")You can also make bots using this. how? for example, if a game requires jumping with spacebar you can put this in a timer:
Code:
sendkeys.sendwait("^{ }")This is the same as a spacebar. But its typed alot faster and faster loops than you typing and not only that, but you can add a hotkey to it!
Like your in-game. you want to be afk for a while and want your bot to its work. well, you don't need to hide the game and go activate it. you can use a hotkey! like this:
add this below form1:
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integerand in your timer add this:
Code:
Dim hotkey1 As Boolean
hotkey1 = GetAsyncKeyState(Keys.F2) ' The key you press to activate it
If hotkey1 = True Then
Activate()
End IfCode:
Sub Activate
While True
Do
sendkeys.sendwait("^{ }")
Loop
End While
End subAnd you can jump as many times as you want!

not only that but you can make a chat room spammer with sendkeys too.
like:
Code:
Randomize()
Dim rnd as Random
Dim Comb as string = "(" + rnd.next(1,999).tostring + ")" + TextBox1.text
Sendkeys.Send(comb)And add a textbox1 for the message you want to spam

add the timer's interval low and you can flood the room
( just don't get banned :heh: )You can also close a program.
Like for closing firefox you can use this:
Code:
Sendkeys.Send("f")
sendkeys.send("x")
sendkeys.send("{ENTER}")Well for sending non-Alphabetical keys you need codes. like as you saw for sending the Enter key you needed {ENTER}. Here is a list i got from Microsoft(put the ones you want to use in "" cause it needs to be string):
- BackSpace - {BACKSPACE}, {BS}, or {BKSP}
- Break Key - {BREAK}
- Caps Lock - {CAPSLOCK}
- Delete Key - {DELETE} or {DEL}
- Down Arrow - {DOWN}
- Right Arrow - {RIGHT}
- Up Arrow - {UP}
- Left Arrow - {LEFT}
- Shift Key - +
- Ctrl Key - ^
- Alt Key - %
- End Key {END}
- Enter Key {ENTER} or ~
- Escape Key {ESC}
- Help Key {HELP}
- Home Key {HOME}
- Insert Key {INSERT} or {INS}
- Num Lock {NUMLOCK}
- Page Down Key {PGDN}
- Page Up Key{PGUP}
- Print Screen Key{PRTSC}
- Scroll Lock {SCROLLLOCK}
- Tab Key {TAB}
- F1 Key - {F1}
- F2 Key - {F2}
- F3 Key - {F3}
- F4 Key - {F4}
- F5 Key - {F5}
- F6 Key - {F6}
- F7 Key - {F7}
- F8 Key - {F8}
- F9 Key - {F9}
- F10 Key {F10}
- F11 Key {F11}
- F12 Key {F12}
- F13 Key {F13}
- F14 Key {F14}
- F15 Key {F15}
- F16 Key {F16}
And did i tell you they can be used in combination?

Code:
SendKeys.Send("%{F4}")Please don't leech this 1234hotmaster figured this out on this site. You can use combinations for: Closing program, task manager, regedit, procexp, Disable Anti-Viruses, Activate other program hotkeys, switch between tabs, Open taskmgr, Delete Files, Copy Files, Move Files, Shut down computer and lots more!
( Tip: For closing certain programs you can get they're active window title and if they matched the one you want, send the keys. )
Just remember, this was figured out by 1234hotmaster.
Hope you liked the guide and have a great day!
Pierce the life fibers with your drill.
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)

![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)