Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Visual Basic Hotkey Function


    ZeaS²/KingClem
     Share

    Recommended Posts

    Add this over Public.... Form1_Load....

    [hide_me]

    	Public Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Int32) As UShort

    [/hide_me]

     

    How to use:

     

    Add this in a Timer:

    [hide_me]

    If GetAsyncKeyState(Keys.KEYHERE) Then
    'FUNCTION HERE
    end if

    [/hide_me]

     

    Credits:

    -BlackDog

    -Microsoft

    Link to comment
    Share on other sites

    • Replies 64
    • Created
    • Last Reply

    Top Posters In This Topic

    Add this over Public.... Form1_Load....

    [ Hidden part. View original post. ]

     

    How to use:

     

    Add this in a Timer:

    [ Hidden part. View original post. ]

     

    Credits:

    -BlackDog

    -Microsoft

     

     

    reply

    Link to comment
    Share on other sites

    Add this over Public.... Form1_Load....

    [ Hidden part. View original post. ]

     

    How to use:

     

    Add this in a Timer:

    [ Hidden part. View original post. ]

     

    Credits:

    -BlackDog

    -Microsoft

    Link to comment
    Share on other sites

    • 2 weeks later...
    • 2 weeks later...
    Add this over Public.... Form1_Load....

    [ Hidden part. View original post. ]

     

    How to use:

     

    Add this in a Timer:

    [ Hidden part. View original post. ]

     

    Credits:

    -BlackDog

    -Microsoft

    Link to comment
    Share on other sites

    Why use a API function when can use an Integrated Event? (sorry for bad english, I'm italian O.o)

     

    In the Form events, use the KeyDown event, wich has these two parameters:

     

    - ByVal sender As Object

    - ByVal e As System.Windows.Forms.KeyEventArgs

     

    Now, the one that cares us is the second, the KeyEvent

     

    To use it,

    Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    	If e.KeyCode = Keys.F5 Then 'or any other key you need
    		MessageBox.Show("Pressed the F5 Key)
    	End If
    End Sub

    For multiple combinations:

    Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
    	If e.KeyCode = Keys.N AndAlso e.Control Then 'press CTRL+N
    		MessageBox.Show("Pressed CTRL+N Keys)
    	End If
    End Sub

    Hope that might help,

     

    Bye xD

    Edited by aleeraser
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.

    ×
    ×
    • Create New...