0

I am trying the following but only the first part works:

*^!;::
Send <
return

*^!`:::
Send >
return

Apparently it is not the proper way to escape the colon ":". Do you have any idea on how to do this?

Jesper
  • 1,611
  • 13
  • 10
Erwin Mayer
  • 18,076
  • 9
  • 88
  • 126
  • Short info for people find this. You escape (catch) the colon with an apostroph in AHK `\`:` not with `;:` – Avatar Nov 18 '18 at 09:33

1 Answers1

2

Erwin,

Try this:

+*^!;::
Send >
return

I assume here that the : character is actually shift ; on your keyboard.

By using the + and ; it should work.

Robert Ilbrink
  • 7,738
  • 2
  • 22
  • 32
  • Actually I would like {RIGHT ALT} + the ":" key (on a French keyboard layout) to produce >. The above code works with ; to produce <, but for some reason it does not work with :. – Erwin Mayer Feb 03 '12 at 15:39
  • Erwin, I can't test this on my keyboard. Have you tried using ScanCodes e.g. RAlt & SC027:: (for the ; character on my kb) works. – Robert Ilbrink Feb 03 '12 at 16:38
  • 1
    I know, but I can't find the SC for the column. This is something you need to do on your PC with the AutoHotKey ScanCode application. When I do this, it will show the scan code for Shift and an other scancode for the semicolumn. To get the ScanCodes, right-click on the AHK icon, then [Open], then [Ctrl]+k, then press :, then [F5] to see the ScanCode in column 2. Salut. – Robert Ilbrink Feb 03 '12 at 18:08
  • 3
    P.s. the ScanCode for : on a French keyboard might be SC034, but I am not sure. – Robert Ilbrink Feb 03 '12 at 18:13