Thread: [Help]Hotkeys

Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29
  1. #16
    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 hejsan View Post



    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]


    Yeah that's what we said, but then I checked what timer we're writing code for

    [php]
    Handles Hotkey.Tick
    [/php]

    The code we're writing is for the timer "Hotkey" as soon as he presses F6 this timer is turned off and therefore does not do anything until started again, you CANNOT turn it back on using F5 if the code to turn it back on is contained within the timer YOU JUST TURNED OFF (it won't check whether F5 is pressed because it's not ticking!)

    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)

  2. #17
    /b/oss's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    13,651
    Reputation
    795
    Thanks
    3,547
    w/E doesn't work. fail thread close

  3. #18
    .mokk.'s Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Why do not you two codes, 1.- Hotkeys .-, 2 .- Timer?

    Hotkeys:
    Code:
    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 
                Timer.Start() 
             End if 
    
                If hotkey2 = True Then 
                    Timer.Stop() 
                End If 
        End Sub
    Hotkeys:
    Code:
    Private Sub Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer.Tick 
    
    'Your Code Here       
    
        End Sub
    Because if you use Hotkey when you go to stop it, then you cant check again if you press f5 or f6, since Hotkey shall, dont was initiated again

  4. #19
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    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?
    why u are complicating the source??? i think that
    If GetAsyncKeyState(Keys.F5) Then
    'what u want
    End If

    it's better... why u use boolean??

  5. #20
    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 Sixx93 View Post
    why u are complicating the source??? i think that
    If GetAsyncKeyState(Keys.F5) Then
    'what u want
    End If

    it's better... why u use boolean??
    That's not complicating the source, it's simplifying.

    Assigning GetAsyncKeyState(Keys.F5) to Hotkey1 is a lot easier to use, especially if you name the variable "Start" or something. Especially when you have to use it repetitively.

    Quote Originally Posted by m_t_h View Post
    w/E doesn't work. fail thread close
    The only reason it's a fail thread is because your too stupid to read what we're saying. All of our codes explain your problem correctly and fix it, but you don't fucking listen.

    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)

  6. #21
    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
    w/E doesn't work. fail thread close
    Dear, you need to start with the basics (No offense). You have to start with the forms designer and then you should move on to Coding. You are facing serious problems with GUI controls. I would suggest that you should play with them a bit. By playing with them, I mean mastering their properties. You cannot code if you don't have firm understanding of them. This will be of a greater help to you.

  7. #22
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Also, watch the flame.

  8. #23
    Invidus's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    2,167
    Reputation
    23
    Thanks
    650
    My Mood
    Bored
    Yes indeed, please keep the flaming to VMs or PMs, and still it shouldn't be done.

  9. #24
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    If you are referring to me, then keep in mind that I ain't flaming. I am just giving him some useful advice !!!

  10. #25
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    I think their more referring to me *Points to VM from lolland*

    I'll be good I pwomish

    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. #26
    Snape's Avatar
    Join Date
    May 2008
    Gender
    male
    Location
    Hogwarts
    Posts
    13,893
    Reputation
    855
    Thanks
    3,033
    Flame in mpgh=normal



  12. #27
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    Quote Originally Posted by Cobra View Post
    Flame in mpgh=normal
    true... i've seen it lot of times...some months ago i've released a hack for CA which had no-fog and wallhack only...in that time i had only 7 posts and one noob with 400 posts said that it wasn't my hack.... he flamed to me very hard. then he was banned... lol

  13. #28
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Flame in my section (and lol) = NO

    Watch the flames, that's now a warning


     


     


     



    The Most complete application MPGH will ever offer - 68%




  14. #29
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Quote Originally Posted by Cobra View Post
    Flame in mpgh=normal
    Orly? Since when?
    /sarcasm

    Anyways, no I was not referring to you Hassan, I actually find most of your posts extremely helpful.

    Anyways, let's not derail this thread. Keep it on topic.

Page 2 of 2 FirstFirst 12

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