Jump to content
Sign in to follow this  
sharrakor

How can I set the middle mouse button for use with HotKeySet?

Recommended Posts

sharrakor

Is there a way to do this? I've tried a few methods, to no avail...

hotkeyset(mouseclick("middle"),"myexit");this does not work, of course.

sleep(9000)

Func MyExit()
    Exit 
EndFunc

For people who want to copy and paste it to test.

Share this post


Link to post
Share on other sites
PsaltyDS

Is there a way to do this? I've tried a few methods, to no avail...

hotkeyset(mouseclick("middle"),"myexit");this does not work, of course.

sleep(9000)

Func MyExit()
    Exit 
EndFunc

For people who want to copy and paste it to test.

The middle mouse button is not a "key" for HotKeySet(). You could run an AdLibEnable() function to monitor _IsPressed("04").

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
Authenticity

Nope, even "left" won't work because it's not how it works, read the help file, what is not stated as allowed either explicitly or implicitly it's not allowed. By system design you can't bind some keys or combination as hot-key

Share this post


Link to post
Share on other sites
sharrakor

I did read the help file. I didn't list the middleclick as an impossibility so I was hoping there was a way.

I will look into AdLibEnable() Psalty. Thanks for the fast responses!

Edited by sharrakor

Share this post


Link to post
Share on other sites
sharrakor

Sweet, thanks skruge. Will look into that.

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  

×