Disable Autohotkey on certain program

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
aprilka
Posts: 17
Joined: 09 Dec 2015, 05:54

Disable Autohotkey on certain program

03 Sep 2020, 04:49

How can I Disable Autohotkey on certain program
Can I write some line about this
I need this for VirtualDJ, cos this app has many shortcuts

ahk_class vdjWin
ahk_exe virtualdj.exe
ahk_pid 13952
Rohwedder
Posts: 7718
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Disable Autohotkey on certain program

03 Sep 2020, 06:13

Hallo,
use:

Code: Select all

#IfWinNotActive ahk_exe virtualdj.exe
aprilka
Posts: 17
Joined: 09 Dec 2015, 05:54

Re: Disable Autohotkey on certain program

05 Sep 2020, 11:55

I put the line but nothing happened
I want autohotkey to stop all the keybord shortcuts, when virtual dj is active

any other option ?
User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: Disable Autohotkey on certain program

07 Sep 2020, 03:52

The line must be above the first hotkey that must be disabled. See also https://www.autohotkey.com/docs/commands/WinActive.htm.

Another method is to set a timer which keep checking if your window is active and if so, disables all hotkeys via the Suspend command. But the method mentioned by Rohwedder is prefered.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: arrondark, Bing [Bot], DRS and 137 guests