1
votes

I have a AHK instance that has #U as a hotkey trigger for a series of actions. It works correctly in this script.

But when I set up a separate AHK script to press that hotkey, it launches the Windows 10 hotkey for settings instead, even when I run it as Administrator. Other hotkeys also fail across scripts

My goal is to have a separate AHK script run to press that hotkey when as I need it scheduled.

1

1 Answers

1
votes

Try something like this:

Script1.ahk:

#MenuMaskKey vk07

#a:: SendInput b

Script2.ahk:

#MenuMaskKey vk07

#InputLevel 1
$Numpad0:: SendInput {LWin down}a{LWin Up}  ; sends b, because of script1

#InputLevel 0   ; reset #InputLevel to default

For details read in the manual about the #InputLevel directive.