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 

What am I doing wrong?

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



Joined: 12 Feb 2008
Posts: 4

PostPosted: Wed Feb 13, 2008 7:30 pm    Post subject: What am I doing wrong? Reply with quote

I'm using:

/::^m

to make the / key send ctrl+m

It works. But then I lose the ability to type a question mark, which is on the same / key.

rain
Back to top
View user's profile Send private message
BioBrain



Joined: 13 Feb 2008
Posts: 15
Location: Jakarta-Indonesia

PostPosted: Wed Feb 13, 2008 7:39 pm    Post subject: Reply with quote

try

~/:: ^m
Back to top
View user's profile Send private message Yahoo Messenger
ManaUser



Joined: 24 May 2007
Posts: 906

PostPosted: Wed Feb 13, 2008 7:46 pm    Post subject: Reply with quote

That doesn't seem to make a difference. But this does:
Code:
/::Send ^m
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2737
Location: Australia, Qld

PostPosted: Thu Feb 14, 2008 5:34 am    Post subject: Reply with quote

See Remapping Keys and Buttons.
Quote:
When a script is launched, each remapping is translated into a pair of hotkeys. For example, a script containing a::b actually contains the following two hotkeys instead:
Code:
*a::
SetKeyDelay -1   ; If the destination key is a mouse button, SetMouseDelay is used instead.
Send {Blind}{b DownTemp}  ; DownTemp is like Down except that other Send commands in the script won't assume "b" should stay down during their Send.
return

*a up::
SetKeyDelay -1  ; See note below for why press-duration is not specified with either of these SetKeyDelays.
Send {Blind}{b Up}
return

Code:
; this internally uses two hotkeys: */ and */ up
/::^m

; this does not use *
/::Send ^m

Hotkey wrote:
* Wildcard: Fire the hotkey even if extra modifiers are being held down.

If I may ask, where did you learn of the key::key (remap) syntax? This seems to be a recurring issue, and I'd like to know which part of the help file may be improved to make the solution more obvious...
Back to top
View user's profile Send private message
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