Smile[Video TUT]How to make hotkeys in visualbasic08

Posts 1–8 of 8 · Page 1 of 1
[Video TUT]How to make hotkeys in visualbasic08
i just thought i would make a tut on how to make hotkeys that you HOLD and let go and they stop i like them more than most hotkeys but heres how you do it.


Put this at the top of your code:
Code:
Private Declare Function GetAsyncKeyState Lib "user32"(ByVal vkey As Long) As Integer
Put this in your hotkey timer:
Code:
Dim starthotkey As Boolean starthotkey = GetAsyncKeyState(Keys.Insert) If starthotkey = True Then 'main function of your program
Eh, I got a much simpler code thats works better..
Quote Originally Posted by iOwnage View Post
Eh, I got a much simpler code thats works better..
i just like this one because it the only one i fully understand
This code you use is very complicated. I'm doing a Web browser and had to use a hotkey of the enter key because it's annoying to always be pressing the "GO" to the browser to navigate.

Then, using my code is much simpler.

If Keys.Enter Then WebBrowser1.Navigate(TextBox1.Text)

(If you press Enter then WebBrowser1 will navigate to the text of the textbox1)

You can use it from other things..

If Keys.Enter Then
MsgBox("Hello MPGH.NET GUYS! \O/", 16, "This is the name of the window. You can put "MPGH.NET")
End If
Dang it still having problems, anyway isn't there an easier code for .EXE I wanna make a hotkey for my tapper and spam bot that I'm currently working on.
listen all carefully :P

the code :

Code:
If Keys.Enter
works only if you have the form selected

the code what's here explain
works even if you not have selected the form

handy for games :P
Quote Originally Posted by maarten551 View Post
listen all carefully :P

the code :

Code:
If Keys.Enter
works only if you have the form selected

the code what's here explain
works even if you not have selected the form

handy for games :P
that code never worked for me and i just dont know how to use key.enter and stuff u should make a tut.

Quote Originally Posted by KallOfKolby View Post
Dang it still having problems, anyway isn't there an easier code for .EXE I wanna make a hotkey for my tapper and spam bot that I'm currently working on.
for me these hotkeys didn't work with my tapper either. idk why.
i don't use them because this works fine for me :P

but in some situates is the other code better :P

and in the .exe the code works fine for me :O
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us