| View previous topic :: View next topic |
| Author |
Message |
ef666ef
Joined: 13 Jun 2005 Posts: 2
|
Posted: Tue Jun 14, 2005 11:31 pm Post subject: Problem with ~ and left mouse button |
|
|
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 |
|
 |
AiKscroll
Joined: 06 Jun 2005 Posts: 179 Location: Northern Virginia
|
Posted: Wed Jun 15, 2005 12:37 am Post subject: |
|
|
work for me. try recompiling it. works....sometimes _________________ _AiK |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Wed Jun 15, 2005 1:24 am Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Wed Jun 15, 2005 10:19 pm Post subject: |
|
|
| -Of course, should've tried that. Thanks! |
|
| Back to top |
|
 |
|