Partially duplicate hotkeys in different script files

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
samuelsaari
Posts: 17
Joined: 08 Nov 2017, 07:32

Partially duplicate hotkeys in different script files

Post by samuelsaari » 28 Oct 2021, 10:31

I have a hotkey for Alt + Ctrl.

I also have multiple hotkeys for Ctrl + Alt + "random third key.

Code: Select all

<!LCTRL:: Msgbox, This fires when the other hotkey is run from another script
Return
If these two blocks of code are the same script, everything works nicely.

Code: Select all

^!t:: Send,[I would like to run this only]
Return


^!a::
Send, C:\ - Also would like to run this only 
Return
If they are in different script files—which is what we want—the MsgBox is launched midway the send command.

The problem occurs only with certain special characters. In this case [ and \. Wrapping them around {braces} won't help.

Any idea how to fix this and why this is happening?

samuelsaari
Posts: 17
Joined: 08 Nov 2017, 07:32

Re: Partially duplicate hotkeys in different script files

Post by samuelsaari » 28 Oct 2021, 10:42

I think I figured it out. It has something to do with input level. I don't fully understand it but it seems like it is ignoring something now.

Code: Select all

#InputLevel 1
^!t:: Send,[I would like to run this only]
Return


^!a::
Send, C:\ - Also would like to run this only 
Return
#InputLevel 0

Post Reply

Return to “Ask for Help (v1)”