Hell4Ge Posted March 16, 2012 Posted March 16, 2012 #RequireAdmin #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed(0x05, $dll) Then MsgBox(0,"_IsPressed", "End Key Pressed") ExitLoop EndIf WEnd DllClose($dll) I tried to check it also in C++ in VS11 Beta
Kjodiz Posted March 16, 2012 Posted March 16, 2012 (edited) #RequireAdmin #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed(23, $dll) Then MsgBox(0,"_IsPressed", "End Key Pressed") ExitLoop EndIf WEnd DllClose($dll) Don't have the opportunity to test atm, but I think it'll work EDIT: Used wrong key in _IsPressed Edited March 16, 2012 by Kjodiz
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