ifwinnotactive with ahk_group not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
becritical
Posts: 15
Joined: 23 May 2016, 03:28

ifwinnotactive with ahk_group not working

01 Apr 2017, 07:45

I am trying to disable a hot key only when it's triggered in specific windows.

GroupAdd f2group, ahk_class ATL:ExplorerFrame ;xplorer2_64.exe
GroupAdd f2group, ahk_class XLMAIN ;excel.exe

#IfWinNotActive ahk_group f2group
F2::Send, #2
#IfWinActive
;return

Why is this code not working? I have tried both with #ifWinActive and also with return.

However this code is working perfectly
#IfWinNotActive ahk_class XLMAIN
F2::Send, #2
#IfWinActive

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 109 guests