Jump to content

Recommended Posts

Posted

#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

Posted (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 by Kjodiz

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...