What is a work-around for ControlSend,,{key DOWN}?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
cdenq
Posts: 4
Joined: 31 Jul 2021, 09:57

What is a work-around for ControlSend,,{key DOWN}?

Post by cdenq » 31 Jul 2021, 10:01

I am trying to hold down a key in several inactive windows, but it seems like ControlSend is not capable of any {key DOWN} parameters. Any work arounds?
User avatar
mikeyww
Posts: 26931
Joined: 09 Sep 2014, 18:38

Re: What is a work-around for ControlSend,,{key DOWN}?

Post by mikeyww » 31 Jul 2021, 10:13

It worked when all on one line.

Code: Select all

wTitle = ahk_exe notepad.exe
F3::
ControlSend,, {Shift down}, %wTitle%
ControlSend,, abc, %wTitle%
ControlSend,, {Shift up}, %wTitle%
ControlSend,, {Shift down}def{Shift up}, %wTitle%
Return
cdenq
Posts: 4
Joined: 31 Jul 2021, 09:57

Re: What is a work-around for ControlSend,,{key DOWN}?

Post by cdenq » 31 Jul 2021, 12:05

i see, thank you!
Post Reply

Return to “Ask for Help (v1)”