1 Attachment(s)
[Tutorial] How To Mack HotKeys On VB
How To Mack HotKeys On VB
By TheRedEye
Tools needed:
1. Visual Basic 5/6.
2. Brain.
3. My previous tutorial.
https://www.mpgh.net/forum/tutorials/...%5Btutorial%5D
4. Ascii Table.
Necessary Knowledge:
1. Basic programming
2. Understanding my previous tutorial.
https://www.mpgh.net/forum/tutorials/...%5Btutorial%5D
Part One - Adding One Hotkey
Open up your form, right click on the form "View Code" then write:
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Now Select a Timer and put it on the form - it will be timer1
Then go to the Timer properties and look for Interval -
Set the Interval value to 100
Now Double click on the timer and write this code:
Code:
If GetAsyncKeyState(112) <> 0 Then
Msgbox "Hotkey - F1"
End If
If GetAsyncKeyState(17) <> 0 Then
Msgbox "Hotkey - Ctrl"
End If
run the program and try to press on F1 and ctrl key. bobo
Part Two - Adding 2 Or More Hotkeys
do the exact the same introductions of part one but put this code under the timer:
Code:
If GetAsyncKeyState(16) <> 0 And GetAsyncKeyState(17) <> 0 And GetAsyncKeyState(112) <> 0 Then
MsgBox "Hotkeys - Shift + Ctrl + F1"
End If
Done.
Some Asciis:
1 = Left Click
2 = Right Click
16 = Shift
17 = Ctrl
18 = Alt
From 112 - 123 = From F1 - F12
Copyright
TheRedEye.
give me some reputation dudes!
Bonus:
Scope Hack Using Right Click That I Made With HotKeys