Eh, I got a much simpler code thats works better..
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.
[YOUTUBE]<object width="425" height="344"><param name="movie" value="https://www.youtube.com/v/kjRqKX0OW-M&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/kjRqKX0OW-M&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>[/YOUTUBE]
Put this at the top of your code:
Put this in your hotkey timer:Code:Private Declare Function GetAsyncKeyState Lib "user32"(ByVal vkey As Long) As Integer
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..
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
Trades in Crossfire Section:
Sucessfull with MM: 1
[oG]Brian - Trusted guy, now I'm sure we could have done that without MM! Great guy!
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 :
works only if you have the form selectedCode:If Keys.Enter
the code what's here explain
works even if you not have selected the form
handy for games :P
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