Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    TheRedEye's Avatar
    Join Date
    Apr 2007
    Location
    In a good place
    Posts
    300
    Reputation
    18
    Thanks
    24

    Lightbulb [Tutorial] How To Mack HotKeys On VB

    How To Mack HotKeys On VB
    By TheRedEye

    Tools needed:
    1. Visual Basic 5/6.
    2. Brain.
    3. My previous tutorial.
    https://www.mpgh.net/forum/tutorials/...%5Btutorial%5D
    4. Ascii Table.

    Necessary Knowledge:
    1. Basic programming
    2. Understanding my previous tutorial.
    https://www.mpgh.net/forum/tutorials/...%5Btutorial%5D



    Part One - Adding One Hotkey
    Open up your form, right click on the form "View Code" then write:
    Code:
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    Now Select a Timer and put it on the form - it will be timer1
    Then go to the Timer properties and look for Interval -
    Set the Interval value to 100
    Now Double click on the timer and write this code:
    Code:
    If GetAsyncKeyState(112) <> 0 Then
            Msgbox "Hotkey - F1"
    End If
    
    If GetAsyncKeyState(17) <> 0 Then
            Msgbox "Hotkey - Ctrl"
    End If
    run the program and try to press on F1 and ctrl key.


    Part Two - Adding 2 Or More Hotkeys
    do the exact the same introductions of part one but put this code under the timer:

    Code:
    If GetAsyncKeyState(16) <> 0 And GetAsyncKeyState(17) <> 0 And GetAsyncKeyState(112) <> 0  Then
            MsgBox "Hotkeys - Shift + Ctrl + F1"
    End If
    Done.


    Some Asciis:
    1 = Left Click
    2 = Right Click
    16 = Shift
    17 = Ctrl
    18 = Alt
    From 112 - 123 = From F1 - F12


    Copyright
    TheRedEye.


    give me some reputation dudes!





    Bonus:
    Scope Hack Using Right Click That I Made With HotKeys
    Last edited by TheRedEye; 06-08-2007 at 07:09 AM.

  2. The Following User Says Thank You to TheRedEye For This Useful Post:

    quebech4ck (11-18-2007)

  3. #2
    webtijn's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    168
    Reputation
    10
    Thanks
    3
    Ehh.. wrong section? This must be in the tutorial section, not WR I. section!
    Some people own, some doesn't. No mather what hack theire using.

  4. #3
    MS Word's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Posts
    483
    Reputation
    11
    Thanks
    2
    erm... what do i do with that timer? i mean... i make this 1 timer... and then? i add what i want to it ?

  5. #4
    Threadstarter
    Dual-Keyboard Member
    TheRedEye's Avatar
    Join Date
    Apr 2007
    Location
    In a good place
    Posts
    300
    Reputation
    18
    Thanks
    24
    Quote Originally Posted by MS Word View Post
    erm... what do i do with that timer? i mean... i make this 1 timer... and then? i add what i want to it ?
    In stand of MsgBox.. u write the commands u want

  6. #5
    crazy4her's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    Portugal
    Posts
    218
    Reputation
    10
    Thanks
    0

    Smile

    Quote Originally Posted by TheRedEye View Post
    How To Mack HotKeys On VB
    By TheRedEye

    Tools needed:
    1. Visual Basic 5/6.
    2. Brain.
    3. My previous tutorial.
    https://www.mpgh.net/forum/tutorials/...%5Btutorial%5D
    4. Ascii Table.

    Necessary Knowledge:
    1. Basic programming
    2. Understanding my previous tutorial.
    https://www.mpgh.net/forum/tutorials/...%5Btutorial%5D



    Part One - Adding One Hotkey
    Open up your form, right click on the form "View Code" then write:
    Code:
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    Now Select a Timer and put it on the form - it will be timer1
    Then go to the Timer properties and look for Interval -
    Set the Interval value to 100
    Now Double click on the timer and write this code:
    Code:
    If GetAsyncKeyState(112) <> 0 Then
            Msgbox "Hotkey - F1"
    End If
    
    If GetAsyncKeyState(17) <> 0 Then
            Msgbox "Hotkey - Ctrl"
    End If
    run the program and try to press on F1 and ctrl key.


    Part Two - Adding 2 Or More Hotkeys
    do the exact the same introductions of part one but put this code under the timer:

    Code:
    If GetAsyncKeyState(16) <> 0 And GetAsyncKeyState(17) <> 0 And GetAsyncKeyState(112) <> 0  Then
            MsgBox "Hotkeys - Shift + Ctrl + F1"
    End If
    Done.


    Some Asciis:
    1 = Left Click
    2 = Right Click
    16 = Shift
    17 = Ctrl
    18 = Alt
    From 112 - 123 = From F1 - F12


    Copyright
    TheRedEye.


    give me some reputation dudes!





    Bonus:
    Scope Hack Using Right Click That I Made With HotKeys
    where ,in the form, do i write this in?
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    [IMG]https://www.danasof*****m/sig/KEKEgotcha.jpg[/IMG]


  7. #6
    Threadstarter
    Dual-Keyboard Member
    TheRedEye's Avatar
    Join Date
    Apr 2007
    Location
    In a good place
    Posts
    300
    Reputation
    18
    Thanks
    24
    Quote Originally Posted by crazy4her View Post
    where ,in the form, do i write this in?
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
    At the beginning of the code
    just write not on sub..

  8. #7
    Trixiez's Avatar
    Join Date
    Feb 2007
    Gender
    male
    Posts
    261
    Reputation
    10
    Thanks
    0
    Would this work mate.

    ~TriX~

    Test mine below - I am at work & cant get on WR.

    F1 is HotKey!!
    Last edited by Trixiez; 06-08-2007 at 08:23 AM.



  9. #8
    crazy4her's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    Portugal
    Posts
    218
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Trixiez View Post
    Would this work mate.

    Code:
    Private Sub Timer1_Timer()
    If GetAsyncKeyState(112) <> 0 Then
            Call WriteALong("WarRock", &H7D9120, 1120403456)
    End If
    End Sub
    ~TriX~

    Test mine below - I am at work & cant get on WR.

    F1 is HotKey!!
    does trixiez work REdEye?
    [IMG]https://www.danasof*****m/sig/KEKEgotcha.jpg[/IMG]


  10. #9
    Trixiez's Avatar
    Join Date
    Feb 2007
    Gender
    male
    Posts
    261
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by crazy4her View Post
    does trixiez work REdEye?
    Try it!

    ~TriX~



  11. #10
    panmily's Avatar
    Join Date
    Jun 2007
    Posts
    28
    Reputation
    10
    Thanks
    0
    If i add

    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

    And if i want run trainer i've got error:

    Only comments may appear after End Sub, End Function, End Property

  12. #11
    crazy4her's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    Portugal
    Posts
    218
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Trixiez View Post
    Try it!

    ~TriX~
    nop it doesnt work
    [IMG]https://www.danasof*****m/sig/KEKEgotcha.jpg[/IMG]


  13. #12
    crazy4her's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    Portugal
    Posts
    218
    Reputation
    10
    Thanks
    0
    If GetAsyncKeyState(112) <> 0 Then
    Msgbox "Hotkey - F1"
    End If

    If GetAsyncKeyState(17) <> 0 Then
    Msgbox "Hotkey - Ctrl"
    End If


    when I type this code
    Where do I put the code for example for scope:
    Call WriteALong("WarRock", &H90DC36, 1)
    pls help me

    (sorry double post)
    Last edited by crazy4her; 06-08-2007 at 08:28 AM. Reason: beg 4 help
    [IMG]https://www.danasof*****m/sig/KEKEgotcha.jpg[/IMG]


  14. #13
    Trixiez's Avatar
    Join Date
    Feb 2007
    Gender
    male
    Posts
    261
    Reputation
    10
    Thanks
    0
    Try this then!

    ~TriX~



  15. #14
    crazy4her's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    Portugal
    Posts
    218
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Trixiez View Post
    Try this then!

    ~TriX~
    nope doesnt work neither
    [IMG]https://www.danasof*****m/sig/KEKEgotcha.jpg[/IMG]


  16. #15
    dezer's Avatar
    Join Date
    Nov 2006
    Gender
    male
    Posts
    285
    Reputation
    12
    Thanks
    4
    My Mood
    Aggressive
    Geez
    1. create timer
    2. click it twice
    3. copy this:
    Code:
    If GetAsyncKeyState(112) <> 0 Then
            Msgbox "Hotkey - F1"
    End If
    4. paste it into ur timer
    5. modify Msgbox "Hotkey - F1" into what u want the hotkey to do. for swim it will be like this:
    Code:
    Private Sub UrTimerName_Timer()
    If GetAsyncKeyState(112) <> 0 Then
        Dim Swim As Long
        Dim Swim1 As Long
        Call ReadALong("Warrock", &H896E28, Swim)
        Swim1 = Swim + &H54
        Call WriteALong("Warrock", Swim1, 4)
    End If
    End Sub
    Now when u press F1 u will enable swim in air.

Page 1 of 3 123 LastLast

Similar Threads

  1. [Tutorial] How to set hotkeys to more advanced hacks.
    By wr194t in forum Visual Basic Programming
    Replies: 13
    Last Post: 05-26-2008, 10:31 AM
  2. [Tutorial] How to set hotkeys to your basic hacks.
    By wr194t in forum Visual Basic Programming
    Replies: 4
    Last Post: 11-08-2007, 03:44 AM
  3. [Tutorial]How to find some Hacks
    By mental81 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 04-06-2007, 10:50 AM
  4. [TUTORIAL]How to control an airplane :p and ofcourse insert it
    By System79 in forum WarRock - International Hacks
    Replies: 8
    Last Post: 07-09-2006, 03:44 PM
  5. Replies: 13
    Last Post: 02-09-2006, 10:25 PM