CounterAct (11-14-2009),FlashDrive (12-07-2009),Pixie (10-02-2009),XGelite (10-12-2009)
Add this right after "Public Class Form1"
Code:Public Const MOD_ALT As Integer = &H1 'Alt key Public Const WM_HOTKEY As Integer = &H312 Public Declare Function RegisterHotKey Lib "user32" (ByVal hwnd As IntPtr, ByVal id As Integer, ByVal fsModifiers As Integer, ByVal vk As Integer) As Integer Public Declare Function UnregisterHotKey Lib "user32" (ByVal hwnd As IntPtr, ByVal id As Integer) As Integer Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) If m.Msg = WM_HOTKEY Then Dim id As IntPtr = m.WParam Select Case (id.ToString) Case "9" 'Code here End Select End If MyBase.WndProc(m) End Sub Private Sub Form1_FormClosing(ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing Call UnregisterHotKey(Me.Handle, 9) Call UnregisterHotKey(Me.Handle, 10) End Sub
Add this to the Form Loading
The hotkey will work even if form isnt in focus, aka it will work ingame.Code:Call RegisterHotKey(Me.Handle, 9, MOD_ALT, Keys.C) 'Replace Keys.C with the Hotkey you want
CounterAct (11-14-2009),FlashDrive (12-07-2009),Pixie (10-02-2009),XGelite (10-12-2009)
Good Job Bro
[IMG]https://i324.photobucke*****m/albums/k357/Win32Trojan/Untitled-1-4.gif[/IMG][IMG]https://i324.photobucke*****m/albums/k357/Win32Trojan/Untitled-1-4.gif[/IMG][IMG]https://i324.photobucke*****m/albums/k357/Win32Trojan/Untitled-1-4.gif[/IMG]
Hazedup is the best there ever was
Thanks man
only it doesnt work in VB08
Last edited by XGelite; 10-12-2009 at 03:52 PM.
didnt work
Omg no workin vb......Sorry i dont know vb....i only know c++
Mr.Anderson.................
Eh, this one has more complicated coding than it needs.. >_>
I got an easier code =3
GetAsyncState Much?! God it is a hella lot easier than that shit
Any donations would help
Originally Posted by Bombsaway707Originally Posted by BloodOriginally Posted by Alby-kunOriginally Posted by AliOriginally Posted by CodeDemon[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]
Wait i got it.
But again. When i let go of the key. The prgram stops.
Can someone please help me stop this?
I WANT IT TO STAY ON!!!