Sign in to follow this  
Followers 0
Shyke

Extra Mouse Buttons

4 posts in this topic

I was wondering how I could get AutoIt to allow my fifth mouse button to be targetable to send the "r" key?

HotKeySet("{space}", "reload"); I want this to be my fifth mouse button that triggers...

While 1
    Sleep(1)
Wend

Func Reload()
    Send("/")
EndFunc

Share this post


Link to post
Share on other sites



Depending on the mouse, there should be software that allows you to re-program the buttons on the mouse. Such a program would like allow you to send a keystroke when a mouse button is pressed.

Share this post


Link to post
Share on other sites

allow you to send a keystroke when a mouse button is pressed.

After you've done that... check out his subtle hint for IsPressed.Au3 (If I'm not mistaken it's in the newest beta under #include <Misc.au3>.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I wasn't hinting at anything. The solution I was trying to provide was that its not necessary to use AutoIt at all to convert a mouse button event into a keyboard event provided there is software for that particular mouse which offers the functionality to re-bind the buttons. I know that SetPoint is the program for Logitech mice. Most mice with multiple buttons will provide such software.

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