HELP ME PLZ
When i try to make a hot key i get this error:
Compile Error:
Sub Or Function not Defined
I put this code in timer at interval 1:
Code:Private Sub Timer1_Timer() If GetKeyPress(vbKeyAButton) Then Shape1.BackColor = &HFF& End Sub
help meeeeeeeeeeeeeeeeeeeeee
Well This is useless then noe helps me
OMFG... It WONT WORK I h8 my Self Same Prob
OMG lol vbKeyAButton doesnt exist use vbKeyA
Make sure your timer interval is 1 and use this code:
Code:Private Sub Timer1_Timer() If GetKeyPress(vbKeyA) Then Shape1.BackColor = &HFF& End If End Sub
lol, have u declared the API?
If not on top of the code:
private declare function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
LOL YOU KIDDING ME?
it should be:
Code:If GetKeyPress(vbKeyA) then