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 

Problem with ~ and left mouse button

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



Joined: 13 Jun 2005
Posts: 2

PostPosted: Tue Jun 14, 2005 11:31 pm    Post subject: Problem with ~ and left mouse button Reply with quote

I've problem getting the left mouse button act as a hotkey when keeping its native function with prefix ~. Case study gives:

Code:
These cases works:

RButton::send q
RButton & a::send q
LButton::send q
LButton & a::send q
~RButton::send q
~RButton & a::send q

These cases do not work:

~LButton::send q
~LButton & a::send q

Why doesn't ~ work with the left mouse button?
Back to top
View user's profile Send private message
AiKscroll



Joined: 06 Jun 2005
Posts: 179
Location: Northern Virginia

PostPosted: Wed Jun 15, 2005 12:37 am    Post subject: Reply with quote

work for me. try recompiling it. works....sometimes
_________________
_AiK
Back to top
View user's profile Send private message AIM Address
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed Jun 15, 2005 1:24 am    Post subject: Reply with quote

I think the problem with the LButton hotkeys is that apps tend to ignore keystrokes while the left mouse button is down. You can see this by quitting all scripts and then activating an editor. Hold down the left mouse button and then try typing a key: nothing happens (at least not in Word or Metapad).

To work around this, try using KeyWait to wait for the mouse button to be released before sending the key:
Code:
~LButton::Send q

~LButton & a::
KeyWait LButton
Send q
return
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Wed Jun 15, 2005 10:19 pm    Post subject: Reply with quote

-Of course, should've tried that. Thanks!
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