ChillFacToR032 Posted August 13, 2008 Share Posted August 13, 2008 How can I listen for mouse clicks in AutoIt? Link to comment Share on other sites More sharing options...
JFee Posted August 13, 2008 Share Posted August 13, 2008 Well you can use the GUIGetMsg() if it is detecting clicks inside your GUI. Regards,Josh Link to comment Share on other sites More sharing options...
ChillFacToR032 Posted August 13, 2008 Author Share Posted August 13, 2008 Its not inside a GUI... What if I wanted to keep a count of how many times the left mouse button was clicked in a certain time interval? Link to comment Share on other sites More sharing options...
Vindicator209 Posted August 13, 2008 Share Posted August 13, 2008 (edited) _IsPressed but put a do...until loop right after so it doesn't count it like a hundred times like this: $count = 0 While 1 If _IsPressed(01,$dll) Then $count +=1 Do Sleep(100) Until Not( _IsPressed(01,$dll)) EndIf Wend just add a timer and your ready to go =D (not tested though) Edited August 13, 2008 by VindicatorOmega [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
ChillFacToR032 Posted August 13, 2008 Author Share Posted August 13, 2008 Thanks, _IsPressed was the one i was looking for 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