Results 1 to 5 of 5
  1. #1
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot

    [Tutorial] How to set hotkeys to basic hacks.

    Ok so you have just made a hack and now you want to set hotkeys? Ok i will use stamina for example:

    Code:
    Private Sub Timer1_Timer()
    Call WriteALong("Warrock", &H7F2B34, 1120403456)
    End Sub
    So this should be your stamina code and to set a hotkey to it you need to make another timer with an interval of 1, now add this code:

    Code:
    Private Sub Timer2_Timer()
    If GetKeyPress(vbKeyShift) Then
    Call WriteALong("Warrock", &H7F2B34, 1120403456)
    End If
    End Sub
    Shift is just an example, you can use any other key if you want put i would recommend shift. So basically you can use this same method for alot of other hacks like No Recoil/Spread etc, you just have to change the addresses, values and hotkeys. The good thing about this is it doesn't freeze your stamina it refills it, freezing values is one thing that can get detected in a hack. I hope this helped and i am sorry if someone has already made a tutorial like this.
    Last edited by wr194t; 09-30-2007 at 08:20 AM.

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

    olli-pekka (02-15-2008)

  3. #2
    pbsucks's Avatar
    Join Date
    Sep 2007
    Location
    univers
    Posts
    65
    Reputation
    10
    Thanks
    4
    nice that somebody tells this the others...
    but i think this is not a real tut, its only a nice edit to make hacking easier...

    ps: if you want two keys pressed at the same time as a hotkey, use "and"

    ex: If GetKeyPress(vbKeyShift) and GetKeyPress(vbKeySpace) then...

  4. #3
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    Quote Originally Posted by pbsucks View Post
    nice that somebody tells this the others...
    but i think this is not a real tut, its only a nice edit to make hacking easier...

    ps: if you want two keys pressed at the same time as a hotkey, use "and"

    ex: If GetKeyPress(vbKeyShift) and GetKeyPress(vbKeySpace) then...
    I didn't edit anything from any other tutorials, i wrote all this myself and in my opinion pressing 1 key is easier then 2 keys, i don't think people want to press shift + space just to refill their stamina when they can just press shift.

  5. #4
    MaskedFox's Avatar
    Join Date
    Feb 2007
    Posts
    97
    Reputation
    10
    Thanks
    27
    so say i want it so when someone does ctrl + alt it toggles scope it would be something like

    If GetKeyPress(vbKeyCtrl) and GetKeyPress(vbKeyAlt)
    Call WriteALong("Warrock", &H435FS, 1)
    End If

  6. #5
    wr194t's Avatar
    Join Date
    Jul 2007
    Gender
    male
    Location
    Guess.
    Posts
    3,016
    Reputation
    21
    Thanks
    361
    My Mood
    Hot
    Quote Originally Posted by MaskedFox View Post
    so say i want it so when someone does ctrl + alt it toggles scope it would be something like

    If GetKeyPress(vbKeyCtrl) and GetKeyPress(vbKeyAlt)
    Call WriteALong("Warrock", &H435FS, 1)
    End If
    No, your code would be like this:
    Code:
    If GetKeyPress(vbKeyControl) and GetKeyPress(vbKeyMenu) Then
    Call WriteALong("Warrock", &H435FS, 1)
    End If

Similar Threads

  1. [Release] How To Add Hotkeys To Your Programs/Hacks
    By **HACKER** in forum CrossFire Tutorials
    Replies: 1
    Last Post: 01-06-2011, 02:43 PM
  2. [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
  3. [Tutorial] How to VB.Net your trainer
    By dezer in forum WarRock - International Hacks
    Replies: 10
    Last Post: 07-16-2007, 10:28 PM
  4. [Tutorial] How To Mack HotKeys On VB
    By TheRedEye in forum WarRock - International Hacks
    Replies: 32
    Last Post: 06-23-2007, 10:24 PM
  5. [Tutorial]How to set all maps FREE
    By tony94 in forum WarRock - International Hacks
    Replies: 18
    Last Post: 05-30-2007, 12:26 PM