Page 1 of 1

If WinActive works not as intended on AHK v2

Posted: 28 May 2023, 06:25
by scharyu
I have a script that disables several hotkeys and Windows button when a game is launched. The script was created on AHK v1, but now I have AHK v2 installed and tried to convert v1 script to v2.

How it used to look like:
Spoiler
Then I converted it to v2:
Spoiler
It actually works in term of disabling the hotkeys. But the problem is that these hotkeys are always disabled if the script is launched, but they have to be disabled only if a specific app is launched/active.

Where is the problem? It seems for me that it should work properly...

Re: If WinActive works not as intended on AHK v2

Posted: 28 May 2023, 07:18
by swagfag
the problem is ure not using #HotIf

Re: If WinActive works not as intended on AHK v2

Posted: 17 Nov 2023, 16:21
by PENchanter
Hey there, @swagfag. Any chance we can off-forum chat somewhere? :) I am apparently too new here to do that here. :|