| View previous topic :: View next topic |
| Author |
Message |
WutKindOfCheeseIsTheMoon? Guest
|
Posted: Wed Aug 27, 2008 6:05 am Post subject: Mouse Button Not Detected / Help with Doubleclick Script |
|
|
I have a Logitech G5 mouse (the old kind with only one thumb button) and I used the AutoHotkey recorder to find what the button is, but it seems to be undetectable.
With Logitech's driver I can change the thumb button to senda keystroke. So I can have the thumb button send the keystroke [ and it will trigger AutoHotkey with whatever I told it to do. Is there an unused or unique key I can use so I can still retain function of all the keys on my keyboard?
Also, of all the click / mouse commands, is there one that is most efficient or speediest or just one that is the most preferred? I want to make the thumb button send left clicks as fast possible. I used to have a script that does something similar, and I remember every now and then it would wig out and keep doing it even though I depressed the key. Hopefully the suspend command will fix this if it happens  |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 1496
|
Posted: Wed Aug 27, 2008 8:58 am Post subject: |
|
|
Under Logitech's mouse configgermajigger, set the thumb button to "generic button", or "mouse4", or whatever it may be called. Then AHK can detect it with the XButton1 hotkey. _________________ My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags ! |
|
| Back to top |
|
 |
TheMoonIsNotMadeofSwiss Guest
|
Posted: Wed Aug 27, 2008 8:36 pm Post subject: |
|
|
| [VxE] wrote: | | Under Logitech's mouse configgermajigger, set the thumb button to "generic button", or "mouse4", or whatever it may be called. Then AHK can detect it with the XButton1 hotkey. | I'm not sure if this works, it still isn't detected by the recorder. But maybe if it was put into a script it would work? I installed uberOptions to try and fix it but the Generic button still doesn't seem to do anything within the recorder.
I guess the script should be like this?
| Code: | XButton1::
Loop
{
GetKeyState, state, XButton1, P
if state=U
break
Sendinput {Click down}
Sleep 10
Sendinput {Click up}
Sleep 10
} |
|
|
| Back to top |
|
 |
|