Results 1 to 8 of 8
  1. #1
    trevor206's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    324
    Reputation
    12
    Thanks
    107

    Smile [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.
    [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:
    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

  2. #2
    iOwnage's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Aussie Aussie Aussie OI OI OI
    Posts
    118
    Reputation
    12
    Thanks
    58
    Eh, I got a much simpler code thats works better..

  3. #3
    trevor206's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    324
    Reputation
    12
    Thanks
    107
    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

  4. #4
    milku's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    257
    Reputation
    10
    Thanks
    7
    My Mood
    Devilish
    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!

  5. #5
    KallOfKolby's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    22
    Reputation
    10
    Thanks
    4
    My Mood
    Tired
    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.

  6. #6
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow
    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

  7. #7
    trevor206's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    324
    Reputation
    12
    Thanks
    107
    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.
    Last edited by trevor206; 10-10-2009 at 02:58 PM.

  8. #8
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow
    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

Similar Threads

  1. [Tut]How to Make KoWarrock Account Easy
    By EyalZamir in forum WarRock Korea Hacks
    Replies: 181
    Last Post: 06-08-2008, 12:05 PM
  2. (TUT)how to make your own warrock menu
    By aprill27 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 09-21-2007, 03:46 PM
  3. [TuT] How to make PW and value box for Guns/Superjump/SkyStormer(VB6)
    By jokuvaan11 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-30-2007, 01:09 PM
  4. [Request]Tut how to make his own bypass
    By BurakG in forum WarRock - International Hacks
    Replies: 3
    Last Post: 05-08-2007, 02:46 PM
  5. Tut: how to make cheese
    By ace76543 in forum General
    Replies: 14
    Last Post: 01-14-2007, 09:39 AM

Tags for this Thread