Thread: HOTKEYS ARGHHH

Results 1 to 8 of 8
  1. #1
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty

    HOTKEYS ARGHHH

    Can someone help me with hotkeys?
    I can never get them to work.
    I want to make a hotkey that i can use in-game!

    Please someone help me..

    Thanks
    acid_buRn

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

    timebomb99 (12-22-2009)

  3. #2
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    They used to not work for me either, but then I now have 2 OS's on my PC, cause my first 1 got fked up by AleinWare, and now it works, I had
    Windows XP Home,
    Now I have Windows XP Professional

    I will make a tutorial on it in a second

  4. #3
    Erinador's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    224
    Reputation
    14
    Thanks
    111
    My Mood
    Bored
    Needed:
    - A Timer
    - A Label (For testing if it works)

    Code:

    Put this under "Public Class *****"
    Code:
    Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
    Then add this code to your timer:

    Code:
    Dim HotkeyTrue as Boolean
    HotkeyTrue = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
    If HotkeyTrue = true Then
    Label1.Text = "True"
    End if
    Code:
    Dim HotkeyFalse as Boolean
    HotkeyFalse = GetAsyncKeyState(Keys.F11) 'F11 is the hotkey
    If HotkeyFalse = True Then
    Label1.Text = "False"
    End if
    Extra:
    Enable the timer for the hotkeys.
    Set the interval for the hotkeys to 15 millseconds (To prevent lag)



    Code tested by me and it works.

  5. The Following 2 Users Say Thank You to Erinador For This Useful Post:

    ac1d_buRn (10-24-2009),timebomb99 (12-22-2009)

  6. #4
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Quote Originally Posted by Erinador View Post
    Needed:
    - A Timer
    - A Label (For testing if it works)

    Code:

    Put this under "Public Class *****"
    Code:
    Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
    Then add this code to your timer:

    Code:
    Dim HotkeyTrue as Boolean
    HotkeyTrue = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
    If HotkeyTrue = true Then
    Label1.Text = "True"
    End if
    Code:
    Dim HotkeyFalse as Boolean
    HotkeyFalse = GetAsyncKeyState(Keys.F11) 'F11 is the hotkey
    If HotkeyFalse = True Then
    Label1.Text = "False"
    End if
    Extra:
    Enable the timer for the hotkeys.
    Set the interval for the hotkeys to 15 millseconds (To prevent lag)



    Code tested by me and it works.
    Thanks for that,
    Bombsaway707 helped me out yesterday with a very simple code.

    Thanks anyway

  7. The Following User Says Thank You to ac1d_buRn For This Useful Post:

    timebomb99 (12-22-2009)

  8. #5
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Why doesn't this work:

    Code:
    Public Class Form1
    
        Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Dim Hotkeyf12, hotkeyq As Boolean
            Dim counter As Integer
            Hotkeyf12 = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
            hotkeyq = GetAsyncKeyState(Keys.Q)
            If Hotkeyf12 = True Then
                counter = (counter + 1)
                Label1.Text = Str(counter)
            Else
                counter = counter
            End If
            If hotkeyq = True Then
                Close()
            End If
    
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim counter As Integer = 0
            Label1.Text = Str(counter)
            Timer1.Enabled = True
        End Sub
    End Class


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  9. #6
    deocute's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Philippines
    Posts
    29
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by gwentravolta View Post
    Why doesn't this work:

    Code:
    Public Class Form1
    
        Public Declare Function GetAsyncKeyState Lib "User32" (ByVal vKey As Long) As Integer
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Dim Hotkeyf12, hotkeyq As Boolean
            Dim counter As Integer
            Hotkeyf12 = GetAsyncKeyState(Keys.F12) 'F12 is the hotkey
            hotkeyq = GetAsyncKeyState(Keys.Q)
            If Hotkeyf12 = True Then
                counter = (counter + 1)
                Label1.Text = Str(counter)
            Else
                counter = counter
            End If
            If hotkeyq = True Then
                Close()
            End If
    
        End Sub
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim counter As Integer = 0
            Label1.Text = Str(counter)
            Timer1.Enabled = True
        End Sub
    End Class
    have you tried declaring outside?

    usually i dont do declarations inside events/functions

    well thats just me XD

  10. #7
    gwentravolta's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    A cardboard Box
    Posts
    311
    Reputation
    9
    Thanks
    46
    Quote Originally Posted by deocute View Post
    have you tried declaring outside?

    usually i dont do declarations inside events/functions

    well thats just me XD
    well it was working for the "true" "false" stuff, so i thought it would still work. i normally declare outside too. i'm thinking maybe i'ts going too fast fo my computer? but then again, adding 1 shouldn't take up any memory at all that or somehow it's getting reset to 0 every time


    Posts:
    10 posts []
    50 posts []
    100 posts []
    500 posts []

    Thanks:
    5 thanks []
    10 thanks []
    100 thanks []

    Profile:
    Make a signature []
    Set a profile picture []

    Hacks:
    Download and use a hack []
    Get a virus []
    ... or two... []
    Release my own hacks []



  11. #8
    deocute's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    Philippines
    Posts
    29
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by gwentravolta View Post
    well it was working for the "true" "false" stuff, so i thought it would still work. i normally declare outside too. i'm thinking maybe i'ts going too fast fo my computer? but then again, adding 1 shouldn't take up any memory at all that or somehow it's getting reset to 0 every time
    coz every time the timer ticks it makes new variables, it declares every tick, thats why its resetting its values,

    uhmm try it outside, the declaration part

Similar Threads

  1. vb hotkeys
    By cjg333 in forum General Game Hacking
    Replies: 7
    Last Post: 07-23-2008, 01:08 PM
  2. Hotkeys in C++
    By Dave84311 in forum C++/C Programming
    Replies: 7
    Last Post: 09-07-2007, 07:13 AM
  3. My hack release hotkey v1
    By purenoob134 in forum WarRock - International Hacks
    Replies: 23
    Last Post: 07-13-2007, 07:56 PM
  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

Tags for this Thread