Sign in to follow this  
Followers 0
Wargames

How to Start a au3 by pressing the middle mouse button.

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



#3 ·  Posted (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 by Azu

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  
Followers 0