Results 1 to 3 of 3
  1. #1
    Legendary Ghost's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    MPGH
    Posts
    14
    Reputation
    10
    Thanks
    58

    How to put hotkey in visual basic with screen shots !

    Hello !
    How to make a visual basic hotkey with a timer and some screen shots ..etc !!
    It's an easy tutorial but we want to test it first before use it on your own project for no get errors and no destroy your project if you did some wrong thing in coding ....
    1-Open visual basic [ No need screen shots ]
    2-New project and name it any name u want [ No need screen shots ]
    3-Add 1 button and 1 timer [ No need screen shots ]
    3-name the button ''test [ No need screen shots ]
    5-Go to timer properties and make timer enabled = True :
    6-Go to Form1 and ''Public class form1'' and below that code put this code :
    Code:
        <System.Runtime.InteropServices.DllImport("user32.dll")> _
        Private Shared Function GetAsyncKeyState(ByVal vkey As System.Windows.Forms.Keys) As Short
        End Function
    6-Go and code button !! and write :
    Code:
    MsgBox("Hotkey working !!")
    [for if the hotkey worked you will know !]
    7-Go and code timer !! and write :
    Code:
    Dim hotkey As Boolean
    hotkey = GetAsyncKeyState(Keys.KeyName)
    If hotkey = True Then
    ButtonNumber.PerformClick()
    End If

    All code :

    All Form :

    Hope this tutorial help you !!

  2. The Following 2 Users Say Thank You to Legendary Ghost For This Useful Post:

    Sazor98 (02-16-2013),yousefaliq (03-01-2013)

  3. #2
    Iqie's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Posts
    681
    Reputation
    173
    Thanks
    467
    Better make a button trainer .
    This tutorial suck . We need a tutorial of hotkey . Not button .

  4. #3
    medo.soleman's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    that's perfect

Similar Threads

  1. [Visual Basics Tutorial] how to make injector for visual basic express
    By frekesh1 in forum Programming Tutorials
    Replies: 2
    Last Post: 10-11-2012, 02:00 PM
  2. How to put hotkeys on features
    By AnthoDN in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 11
    Last Post: 08-10-2010, 02:41 AM
  3. Hotkeys in Visual Basics 6.0
    By Pixie in forum Visual Basic Programming
    Replies: 0
    Last Post: 11-14-2009, 02:56 PM
  4. [TUT] How to Print Text in Visual Basic
    By Mr. Jingles in forum Visual Basic Programming
    Replies: 0
    Last Post: 09-08-2009, 08:23 PM
  5. [Tutorial] How to set hotkeys to your basic hacks.
    By wr194t in forum Visual Basic Programming
    Replies: 4
    Last Post: 11-08-2007, 03:44 AM