Jump to content

Extra Mouse Buttons


Shyke
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...