AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mouse Button Not Detected / Help with Doubleclick Script

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
WutKindOfCheeseIsTheMoon?
Guest





PostPosted: Wed Aug 27, 2008 6:05 am    Post subject: Mouse Button Not Detected / Help with Doubleclick Script Reply with quote

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 Smile
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 1496

PostPosted: Wed Aug 27, 2008 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message
TheMoonIsNotMadeofSwiss
Guest





PostPosted: Wed Aug 27, 2008 8:36 pm    Post subject: Reply with quote

[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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group