Wargames Posted November 1, 2006 Share Posted November 1, 2006 Hi, I've been using au3 now for a couple of days. This is amazing, thanks. I want to either 1) detect the press of the scroll wheel mouse button (Dell Optical Scroll Mouse) from an au3 script (while sitting there in the background polling or sleeping consuming minimal resources), or 2) execute the au3 script when the middle mouse button is pressed. Any help would be appreciated, I will seek the solution on my own and post it here if nobody helps me first. Thanks! Link to comment Share on other sites More sharing options...
cppman Posted November 1, 2006 Share Posted November 1, 2006 (edited) #Include <misc.au3> Do sleep(10) until (_IsPressed('04')) ;Put your main code here MsgBox(0, "", "Blah!") Edited November 1, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Azu Posted November 1, 2006 Share Posted November 1, 2006 (edited) Hi, I've been using au3 now for a couple of days. This is amazing, thanks. I want to either 1) detect the press of the scroll wheel mouse button (Dell Optical Scroll Mouse) from an au3 script (while sitting there in the background polling or sleeping consuming minimal resources), or 2) execute the au3 script when the middle mouse button is pressed. Any help would be appreciated, I will seek the solution on my own and post it here if nobody helps me first. Thanks!#include<misc.au3> while 1 if _ispressed("04") then run(@comspec&" /c Start YourAutoItScript.au3") sleep(2000) endif wend Edit: Aww you beat me to it lol Edited November 1, 2006 by Azu 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