Jump to content

Recommended Posts

Posted

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!

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

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...