Thread: vb hotkeys

Results 1 to 8 of 8
  1. #1
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54

    vb hotkeys

    VB hotkeys ::

    You have to make a timer for hotkeys , put this code as timer code, dont ever use these codes on command .just timer , this is hotkey code on timer. add it to your timer.

    If GetKeyPress(vbKey"urkey") Then Call WriteAInt(address, value)


    if ur code was more than one line you can add them in the next line for example :

    If GetKeyPress(vbKey"urkey") Then Call WriteAbyte(Address, value)
    Call WriteAByte(address, value)
    Call WriteAbyte(address, value )
    Call WriteAByte(address, value)

    then you have to add this code to the top of your Code library so it becomes the first line of the codes in the code library (add it to the form you want to use hotkey )

    Private Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer


    then you have to change the Timer Properties . change Enabled to true and interval to 1.


    then you have to change timer code.

    now we come back to timer code , we put GPS on as our example .and we want to press G to Activate GPS on code.



    If GetKeyPress(vbKeyG) Then Call WriteAInt(&H42697C, &H9090)

    notice : G in red means the hotkey to activate the code.

    , YOU MIGHT DONT GET IT YET , SO WE WORK ON ANOTHER EXAMPLE.

    1.We have Saw Scope Code for Df2 and we want to activate it by pressing E.

    If GetKeyPress(vbKeyE) Then Call WriteAInt(&H44E6EC, &H9090)
    Call WriteAByte(&H44C81B, &HEB)
    Call WriteAInt(&H44EBC4, &HFF24)
    Call WriteAByte(&H79A698, &H2)

    that is it , when you press E the Saw scope activate.


    p.s. im not takin credit for this i just copyed it from somewere cause i needed it and thought id share it

  2. #2
    wessel93's Avatar
    Join Date
    May 2007
    Location
    Far, Far, Away
    Posts
    51
    Reputation
    10
    Thanks
    0

    Question

    This Doesn't work

  3. #3
    Threadstarter
    Dual-Keyboard Member
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54
    what doesnt work,plz explain a little better than this dont work.what part doesnt work do you know how to use vb6? did u add a module?its not all there you have to know how to code it rt.

  4. #4
    Trixiez's Avatar
    Join Date
    Feb 2007
    Gender
    male
    Posts
    261
    Reputation
    10
    Thanks
    0
    I am reading this again & again. How do I open the library code. Once I know that I can work it (I think).

    ~TriX~

    [EDIT] Maybe the library code is the main code. I will give that a go.
    Last edited by Trixiez; 06-08-2007 at 05:12 AM.



  5. #5
    dezer's Avatar
    Join Date
    Nov 2006
    Gender
    male
    Posts
    285
    Reputation
    12
    Thanks
    4
    My Mood
    Aggressive
    I try it and try but i keep getting compile error with Call WriteAInt highlighted. :/

  6. #6
    Trixiez's Avatar
    Join Date
    Feb 2007
    Gender
    male
    Posts
    261
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by dezer View Post
    I try it and try but i keep getting compile error with Call WriteAInt highlighted. :/
    I get that also. May I ask you how you open the library code.

    ~TriX~



  7. #7
    Threadstarter
    Dual-Keyboard Member
    cjg333's Avatar
    Join Date
    Apr 2007
    Location
    indianapolis
    Posts
    300
    Reputation
    17
    Thanks
    54
    you cannot use call Writeaint,you need to use

    If GetKeyPress(VbKeyNumpad1) then
    Call WriteALong ("Warrock", &H898989, &H4)

    heres my gps code for vb6,this is in a timer,with an interval of 100

    If GetKeyPress(vbKeyNumpad1) Then
    Call WriteALong("WarRock", &H90DC84, &H1)
    End If
    Last edited by cjg333; 06-21-2007 at 09:32 PM.

  8. #8
    olie122333's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Posts
    438
    Reputation
    10
    Thanks
    20
    Quote Originally Posted by cjg333 View Post
    you cannot use call Writeaint,you need to use

    If GetKeyPress(VbKeyNumpad1) then
    Call WriteALong ("Warrock", &H898989, &H4)

    heres my gps code for vb6,this is in a timer,with an interval of 100

    If GetKeyPress(vbKeyNumpad1) Then
    Call WriteALong("WarRock", &H90DC84, &H1)
    End If
    Your obviously Cobra, you have his avatar and are from the same place... ^^

    lol

Similar Threads

  1. Hotkeys in C++
    By Dave84311 in forum C++/C Programming
    Replies: 7
    Last Post: 09-07-2007, 07:13 AM
  2. My hack release hotkey v1
    By purenoob134 in forum WarRock - International Hacks
    Replies: 23
    Last Post: 07-13-2007, 07:56 PM
  3. a pic of my ingame hotkeys(releasing soon)
    By cjg333 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 07-09-2007, 03:48 AM
  4. Hotkeys for a VB trainer
    By scooby107 in forum Visual Basic Programming
    Replies: 10
    Last Post: 07-03-2007, 12:43 PM
  5. [Tutorial] How To Mack HotKeys On VB
    By TheRedEye in forum WarRock - International Hacks
    Replies: 32
    Last Post: 06-23-2007, 10:24 PM