If WinActive works not as intended on AHK v2

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
scharyu
Posts: 9
Joined: 20 Oct 2021, 07:14

If WinActive works not as intended on AHK v2

28 May 2023, 06:25

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...
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: If WinActive works not as intended on AHK v2

28 May 2023, 07:18

the problem is ure not using #HotIf
User avatar
PENchanter
Posts: 10
Joined: 06 Sep 2021, 16:13

Re: If WinActive works not as intended on AHK v2

17 Nov 2023, 16:21

Hey there, @swagfag. Any chance we can off-forum chat somewhere? :) I am apparently too new here to do that here. :|

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: emp00, WarlordAkamu67 and 47 guests