Results 1 to 7 of 7
  1. #1
    Germany's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Question [Help]Hotkey Functions

    I wanted to create this...

    Code:
        Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
            Dim MouseMoverOn As Boolean
            MouseMoverOn = GetAsyncKeyState(ComboBox1.Text)
            If MouseMoverOn = True Then
                Timer1.Enabled = True
            End If
        End Sub
    I know that it doesnt work but can someone tell me how to let GetAsyncKeyState get the Keys from ComboBox1 ?

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    On Comx_textchanged

    Code:
    Dim MouseMoveron as Boolean
    
    If ComboBox1.Text = "F1" Then
    MouseMoverOn = GetAsyncKeystate(Keys.F1)
    Elseif ComboBox1.Text = "F2" Then
    MouseMoverOn = GetAsyncKeystate(Keys.F2)
    ElseIf ComboBox2.Text = "F3" Then
    MouseMoverOn = GetAsynckeystate(Keys.F3)
    End if
    
    If MouseMoverOn = True Then
    Timer1.enabled = true
    end if
    And so on...should actually work...IMO



  3. #3
    Germany's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    wow its a big code x)
    But its the best Solution =)

  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Is it working properly?



  5. #5
    Germany's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Yeah the Code works but its so much work ... =(

  6. #6
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    much?

    LoL.

    It's not that much

    My CoD6 trainer has like 4500+ lines of code



  7. #7
    Germany's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    =)
    But thanks for this tipp

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