its like making an auto clicker with hotkeys but hotkeys doesnt work if the program is not on top help plox to make the hotkeys work in background , thx
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
dim f1 as boolean f1 = getasynckeystate(keys.f1) if f1 then 'whatever end if
Public Class Form1
Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
i made this onePublic Class Form1
Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16

