AutoHotkey Community

It is currently May 26th, 2012, 12:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: September 17th, 2008, 8:01 pm 
Offline

Joined: September 17th, 2008, 7:38 pm
Posts: 19
Image

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

Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 17th, 2008, 9:53 pm 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
You could try:

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

_________________
"Anything worth doing is worth doing slowly." - Mae West
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 17th, 2008, 9:59 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3329
Location: Simi Valley, CA
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 1st, 2009, 9:46 am 
Offline

Joined: September 17th, 2008, 7:38 pm
Posts: 19
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Morpheus, RUBn, SKAN, sks, StepO and 19 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group