---- Posted December 24, 2018 Share Posted December 24, 2018 I'm trying to capture the J key While 1 If _IsPressed ("4A") Then MsgBox ($MB_OK, "", "") While _IsPressed("4A") Sleep(10) WEnd EndIf WEnd So it should pull up a msgbox when I press J but it doesn't Ive also tried without the quotes on 4A that doesn't work either While 1 If _IsPressed (4A) Then MsgBox ($MB_OK, "", "") While _IsPressed(4A) Sleep(10) WEnd EndIf WEnd I tested this with the A key and it works fine While 1 If _IsPressed (41) Then MsgBox ($MB_OK, "", "") While _IsPressed(41) Sleep(10) WEnd EndIf WEnd Link to comment Share on other sites More sharing options...
---- Posted December 24, 2018 Author Share Posted December 24, 2018 Disregard this I'm retarded and had another script open that was intercepting the J key Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now