How to click 'SHIFT+:' when I click ';' in both AHK 1 and 2?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
usser
Posts: 146
Joined: 22 Oct 2014, 13:03

How to click 'SHIFT+:' when I click ';' in both AHK 1 and 2?

17 May 2023, 04:14

Hello!

How to click 'SHIFT+:' when I click ';' in both AHK 1 and 2?

I am struggling to find how to put ';' in front of a statement like:
;::^;

The key list does not include it!

Thanks!
Rohwedder
Posts: 7746
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to click 'SHIFT+:' when I click ';' in both AHK 1 and 2?

17 May 2023, 04:22

Hallo,
try:

Code: Select all

#Requires AutoHotkey v1.1.33
`;::Send, +{:}

Code: Select all

#Requires AutoHotkey v2.0
`;::Send "+{:}"
usser
Posts: 146
Joined: 22 Oct 2014, 13:03

Re: How to click 'SHIFT+:' when I click ';' in both AHK 1 and 2?

22 May 2023, 05:40

Ah thanks!, missed the escape key :)
Btw, not sure why v2 needs the quotes, it should be a simplification of v1 :(
User avatar
boiler
Posts: 17313
Joined: 21 Dec 2014, 02:44

Re: How to click 'SHIFT+:' when I click ';' in both AHK 1 and 2?

22 May 2023, 06:10

usser wrote: Btw, not sure why v2 needs the quotes, it should be a simplification of v1 :(
It is. It uses expressions throughout instead of the mix of command syntax and expressions that has been the source of much confusion and frustration in v1.

In v2, you can use ' instead of " which can save you some keystrokes.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot], NimRinon and 125 guests