Remap ?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jrachr
Posts: 543
Joined: 01 Mar 2021, 17:33

Remap ?

Post by jrachr » 22 Mar 2023, 08:28

Good Day all.This should be easy but I can't get it. All I want to do is remap ? to/ and vice versa but it simply won't work. This is what I have.Any idea's?

Code: Select all

/::?
?::/
Return

RussF
Posts: 1264
Joined: 05 Aug 2021, 06:36

Re: Remap ?

Post by RussF » 22 Mar 2023, 10:33

Try this:

Code: Select all

#Requires AutoHotkey v1.1.33+

/::Send {text}?
?::Send {text}/
Russ

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Remap ?

Post by mikeyww » 22 Mar 2023, 10:48

Yes, the problem occurs because remaps use blind mode to include modifiers. RussF's answer fixes that because blind mode is not used there.

Code: Select all

#Requires AutoHotkey v1.1.33
#UseHook
/::Send ?
?::Send /
#UseHook Off

RussF
Posts: 1264
Joined: 05 Aug 2021, 06:36

Re: Remap ?

Post by RussF » 22 Mar 2023, 10:53

Thank you @mikeyww, I couldn't fully explain why it worked, just knew that it did! :lol:

Russ

jrachr
Posts: 543
Joined: 01 Mar 2021, 17:33

Re: Remap ?

Post by jrachr » 22 Mar 2023, 11:46

@Russ,@Mikey

Work's like a charm.Tk's for further explanation Mikey. Cheer's

Post Reply

Return to “Ask for Help (v1)”