Jump to content
Sign in to follow this  
Hell4Ge

Mouse X1 Button & _isPressed wont work

Recommended Posts

Hell4Ge

#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

Share this post


Link to post
Share on other sites
Kjodiz

#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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×