Shyke Posted November 7, 2005 Share Posted November 7, 2005 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 More sharing options...
Valik Posted November 7, 2005 Share Posted November 7, 2005 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted November 7, 2005 Moderators Share Posted November 7, 2005 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 More sharing options...
Valik Posted November 7, 2005 Share Posted November 7, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now