Thread: [Help]Hotkeys

Page 1 of 2 12 LastLast
Results 1 to 15 of 29
  1. #1
    /b/oss's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    13,651
    Reputation
    795
    Thanks
    3,547

    Question [Help]Hotkeys

    yes.. aggain

    [PHP]Private Sub Hotkeys_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hotkey.Tick
    Dim hotkey1 As Boolean
    hotkey1 = GetAsyncKeyState(Keys.F5)
    If hotkey1 = True Then
    Hotkey.Start()
    Dim hotkey2 As Boolean
    hotkey2 = GetAsyncKeyState(Keys.F6)
    If hotkey2 = True Then
    Hotkey.Stop()
    End If
    End If
    End Sub[/PHP]

    when i press f6 timer1 (hotkey) doesn't stop! WHY?

  2. #2
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by m_t_h View Post
    yes.. aggain

    [PHP]Private Sub Hotkeys_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hotkey.Tick
    Dim hotkey1 As Boolean
    hotkey1 = GetAsyncKeyState(Keys.F5)
    If hotkey1 = True Then
    Hotkey.Start()
    Dim hotkey2 As Boolean
    hotkey2 = GetAsyncKeyState(Keys.F6)
    If hotkey2 = True Then
    Hotkey.Stop()
    End If
    End If
    End Sub[/PHP]

    when i press f6 timer1 (hotkey) doesn't stop! WHY?

    Change it to this

    [php]
    dim hotkey1, hotkey2 as Boolean

    hotkey1 = GetAsyncKeyState(Keys.F5)
    hotkey2 = GetAsyncKeyState(Keys.F6)

    If hotkey1 = True then

    hotkey.start()

    Elseif hotkey2 = True then

    hotkey.stop()

    Endif
    [/php]

    Should work tell me if it doesn't

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. #3
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by m_t_h View Post
    yes.. aggain

    [PHP]Private Sub Hotkeys_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hotkey.Tick
    Dim hotkey1 As Boolean
    hotkey1 = GetAsyncKeyState(Keys.F5)
    If hotkey1 = True Then
    Hotkey.Start()
    Dim hotkey2 As Boolean
    hotkey2 = GetAsyncKeyState(Keys.F6)
    If hotkey2 = True Then
    Hotkey.Stop()
    End If
    End If
    End Sub[/PHP]

    when i press f6 timer1 (hotkey) doesn't stop! WHY?
    [php]Private Sub Hotkeys_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hotkey.Tick
    Dim hotkey1 As Boolean
    hotkey1 = GetAsyncKeyState(Keys.F5)

    Dim hotkey2 As Boolean
    hotkey2 = GetAsyncKeyState(Keys.F6)

    If hotkey1 = True Then
    Hotkey.Start()
    elseif hotkey2=true then
    hotkey.stop()
    End If
    End Sub
    [/php]

  4. #4
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Both your solutions should work?

  5. #5
    /b/oss's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    13,651
    Reputation
    795
    Thanks
    3,547
    "should".. brb
    still; when i press f6 is ok: it stopps but when i press f5 to start it doesn't work

  6. #6
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by ilikewaterha View Post
    Both your solutions should work?
    They're both exactly the same haha, cept we declared our variables slightly different.

    They "will" work and if they don't, it's not our fault

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  7. #7
    /b/oss's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    13,651
    Reputation
    795
    Thanks
    3,547
    Quote Originally Posted by J-Deezy View Post
    They're both exactly the same haha, cept we declared our variables slightly different.

    They "will" work and if they don't, it's not our fault
    doesn't -.-

  8. #8
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    EDIT: Were you born stupid? This code is turning the timer OFF...how the fuck can it check for keypress if you've just turned it off...

    Quote Originally Posted by m_t_h
    [php]Handles Hotkey.Tick[/php]

    If you turn Hotkey off with F6, and it's the timer controlling what happens when keys are pressed, ofc nothing will happen
    Last edited by Jason; 06-13-2010 at 11:56 PM.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  9. #9
    /b/oss's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    13,651
    Reputation
    795
    Thanks
    3,547
    still same... f5 doesn't work! ( the start)

  10. #10
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by m_t_h View Post
    still same... f5 doesn't work! ( the start)
    Read my post -.-

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  11. #11
    /b/oss's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    13,651
    Reputation
    795
    Thanks
    3,547
    Quote Originally Posted by J-Deezy View Post
    EDIT: Were you born stupid? This code is turning the timer OFF...how the fuck can it check for keypress if you've just turned it off...




    If you turn Hotkey off with F6, and it's the timer controlling what happens when keys are pressed, ofc nothing will happen
    im not that stupid -.-

  12. #12
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Quote Originally Posted by m_t_h View Post


    doesn't -.-
    [php]Private Sub Hotkeys_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hotkeys.Tick
    Dim hotkey1 As Boolean
    hotkey1 = GetAsyncKeyState(Keys.F5)

    Dim hotkey2 As Boolean
    hotkey2 = GetAsyncKeyState(Keys.F6)

    If hotkey1 = True Then
    Hotkeys.Start()
    elseif hotkey2=true then
    hotkeys.stop()
    End If
    End Sub [/php]

    Take this !! *Sigh*

    [IMG]https://womenonthefence.files.*********.com/2009/09_woman.jpg[/IMG]

  13. The Following User Says Thank You to Hassan For This Useful Post:

    /b/oss (06-14-2010)

  14. #13
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    you really do have some logical problems...
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  15. #14
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by m_t_h View Post


    im not that stupid -.-
    And yet your post is living proof.

    You're adding code to the timer named "Hotkey" when you press F6 the timer named "Hotkey" is turned off and therefore anything contained within it is null and void. Make another timer, call it Hotkeys NOT hotkey then add our code to it.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  16. #15
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by m_t_h View Post


    doesn't -.-

    Enable = true
    interval = 1

    [php]Private Sub Hotkeys_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Hotkey.Tick
    Dim Hotkey As Boolean = GetAsyncKeyState(Keys.F5)
    Dim hotkey1 As Boolean = GetAsyncKeyState(Keys.F6)

    If hotkey = True Then
    Hotkey.Start()
    End if

    If hotkey2 = True Then
    Hotkey.Stop()
    End If



    End Sub

    Are you on 64bit?[/php]
    -Rest in peace leechers-

    Your PM box is 100% full.

Page 1 of 2 12 LastLast

Similar Threads

  1. [HELP] Hotkeys
    By Spookerzz in forum Visual Basic Programming
    Replies: 13
    Last Post: 05-05-2010, 01:36 AM
  2. [HELP]Hotkeys[Solved]
    By luckie12 in forum Visual Basic Programming
    Replies: 3
    Last Post: 04-02-2010, 03:38 PM
  3. [HELP]=Hotkeys
    By theavengerisback15 in forum Visual Basic Programming
    Replies: 6
    Last Post: 12-04-2009, 05:21 AM
  4. [HELP] HotKeys
    By Zhhot in forum Visual Basic Programming
    Replies: 3
    Last Post: 11-14-2009, 02:31 PM
  5. [HELP] hotkey #$*/"$#)(*&?"
    By herowarz in forum Visual Basic Programming
    Replies: 5
    Last Post: 02-26-2008, 06:16 AM