Results 1 to 3 of 3
  1. #1
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine

    [Tutorial]Using Hotkeys VB 08

    This first did not work for me, when I had Windows XP Home edition, but now I have Windows XP Professional Edition, and now the hotkeys work!

    So here is a tutorial.

    First add these to your form
    Code:
    1 TextBox
    1 Timer

    Change Timer1 to Enabled = True


    Code:

    Code:
    Public Class Form1
        Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
        Dim result As Integer
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If GetAsyncKeyState(Keys.F8) Then
                MsgBox("Hotkeys - Working")
            End If
        End Sub
    And if that does not work, then try this one:

    Code:
    Public Class Form1
        Public Declare Function GetAsyncKeyState Lib "user64" (ByVal vKey As Long) As Integer
        Dim result As Integer
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If GetAsyncKeyState(Keys.F8) Then
                MsgBox("Hotkeys - Working")
            End If
        End Sub

    If you have any problems, PM me, and make sure to tell me what you got in the error list.
    *DO NOT POST HERE TO TELL ME IF PROBLEMS, I MAY NOT READ THIS MUCH!*

  2. #2
    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,971
    My Mood
    Happy
    First code is for Windows 32bit and secound 64bit!
    -Rest in peace leechers-

    Your PM box is 100% full.

  3. #3
    K4GE's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Posts
    311
    Reputation
    13
    Thanks
    65
    My Mood
    Inspired
    Didn't i already post this like a month ago....
    wow...
    -.-

Similar Threads

  1. [TUTORIAL] Using reCAPTCHA in PHP
    By AceKill3r in forum PHP Programming
    Replies: 0
    Last Post: 03-23-2011, 01:50 AM
  2. [TUTORIAL] Using FindPattern() To Get Addresses
    By J in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 09-06-2010, 03:48 AM
  3. How do I use hotkey Hacks on laptop
    By 1545 in forum Combat Arms Help
    Replies: 2
    Last Post: 07-01-2010, 05:58 AM
  4. [Tutorial]Global Hotkey[Leeched]
    By Invidus in forum Visual Basic Programming
    Replies: 18
    Last Post: 03-29-2010, 04:24 PM
  5. [Leeched] Tutorial Using Webcams
    By Bombsaway707 in forum Visual Basic Programming
    Replies: 22
    Last Post: 02-23-2010, 09:31 PM

Tags for this Thread