Any way to prevent a command being sent to a specific window / isolate keycommands to be sent only to 1 ?

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
JuicyT
Posts: 18
Joined: 21 May 2023, 06:20

Any way to prevent a command being sent to a specific window / isolate keycommands to be sent only to 1 ?

Post by JuicyT » 18 Nov 2023, 13:49

Hi there,

how would i achieve this ?
Last edited by gregster on 18 Nov 2023, 14:44, edited 1 time in total.
Reason: Moved topic from 'Scripts and Functions (v2)' to help subforum, since this post contains neither script nor function.

User avatar
DuckingQuack
Posts: 221
Joined: 20 Jan 2023, 18:20

Re: Any way to prevent a command being sent to a specific window / isolate keycommands to be sent only to 1 ?

Post by DuckingQuack » 18 Nov 2023, 13:57

#HotIf WinActive("WinTitle")
ControlSend(Key,Control,WinTitle)
You didn't give much in the way of details, but these are two ways to accommodate something along those lines.
https://www.autohotkey.com/docs/v2/lib/_HotIf.htm
https://www.autohotkey.com/docs/v2/lib/ControlSend.htm
Best of Luck,
The Duck

Post Reply

Return to “Ask for Help (v2)”