AutoHotkey only working when script window is open

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
eleonoir

AutoHotkey only working when script window is open

17 Jan 2018, 18:01

Hello,

I was trying to use

#F18::send, {LWIN down}{TAB}{LWIN up}
Return

to make F18 open the Windows task view. But it only works when the script window is selected. As soon as I minimize the script window or change to another window, it doesn't do anything.
Any ideas how I could change that? Any help much appreciated
Guest2018

Re: AutoHotkey only working when script window is open

18 Jan 2018, 08:24

Which windows version do you use?
Why did you write #F18?
If you only want to use F18, then you might try it out with the #.

I don't understand why you have a script window anyway.
Normally you compile a script and when you start it, it's only visible in the task bar (which means it's running).
(You can hide the task bar icon, but this is not part of your code.)
Osprey
Posts: 453
Joined: 18 Nov 2017, 05:50

Re: AutoHotkey only working when script window is open

18 Jan 2018, 17:15

If you want F18 to do that on its own, you shouldn't have the # sign in front. That turns it into a Win+F18 hotkey, meaning that pressing F18 alone isn't enough to trigger it.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Nerafius and 105 guests