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 

AppsKey::LButton gets stuck after I select things

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bbint



Joined: 17 Sep 2008
Posts: 19

PostPosted: Wed Sep 17, 2008 7:01 pm    Post subject: AppsKey::LButton gets stuck after I select things Reply with quote



Is this ever an issue for people who try to remap a keyboard button to a mouse button?

Back to top
View user's profile Send private message
Serenity



Joined: 07 Nov 2004
Posts: 1271

PostPosted: Wed Sep 17, 2008 8:53 pm    Post subject: Reply with quote

You could try:

Code:
AppsKey::LButton
AppsKey Up::Send, {LButton Up}

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Wed Sep 17, 2008 8:59 pm    Post subject: Reply with quote

Code:
$appskey::LButton
works for me in all respects: single/double click and clickdrag highlight and clickdrag move.

Another program might be trying to hook that key *shrug*. Maybe the appskey's up event is getting through somehow. Anyways, see if
Code:
$*Appskey::
SetMouseDelay, -1
Sendmode, play
If !GetKeyState("LButton")
  Click down
return
$*Appskey Up::Click up
is any better.
_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
bbint



Joined: 17 Sep 2008
Posts: 19

PostPosted: Thu Jan 01, 2009 8:46 am    Post subject: Reply with quote

I figured it out.. it was my use of the Ctrl button

Code:
Appskey::Send {LButton}
RCtrl::Send {RButton}


Sometimes, for some reason, Ctrl gets activated
If you hold down Ctrl and press the left mouse button, you can keep highlighting multiple items
On occasion, Ctrl would execute and be stuck down even though Ctrl is supposed to perform a right-click

I use this to release Ctrl whenever this happens:

Code:
Pause::
Send {Ctrl}
sleep 20
Send {LButton}
return
Back to top
View user's profile Send private message
Display posts from previous:   
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