Hotkey scope limitation Topic is solved
Hotkey scope limitation
Is it possible to limit the scope of a hotkey to a single application?
--
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Re: Hotkey scope limitation Topic is solved
The following two references should do what you are after:
https://autohotkey.com/docs/Hotkeys.htm#Context
https://autohotkey.com/docs/commands/_IfWinActive.htm
https://autohotkey.com/docs/Hotkeys.htm#Context
https://autohotkey.com/docs/commands/_IfWinActive.htm
Re: Hotkey scope limitation
Hi Franktic,
I can't make it work:
Nothing happen…
I can't make it work:
Code: Select all
#IfWinActive ahk_class Publisher
#F18::MsgBox Hello there!
--
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Re: Hotkey scope limitation
Use AHK's window spy to check the class. On Publisher 2007 it's MSWinPub.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Hotkey scope limitation
Thanks!
It's the same in Pub 365.
It's the same in Pub 365.
--
Windows 11
AHK 1.1.35.00
Adventure 3.0.4
Windows 11
AHK 1.1.35.00
Adventure 3.0.4