Script that writes to a specific window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Moo
Posts: 2
Joined: 06 Jun 2019, 15:32

Script that writes to a specific window

06 Jun 2019, 15:40

I'm trying to write a script that will type something every x seconds, but only to a specific window. I'm new to scripting so I'm not sure if this is even possible. I have the part written to type something every x seconds, I just need something that will make it only type to a specific window. This is what I'm using.

F1::pause, toggle

F2::
Loop,
TypeWords:
Loop
{
SendInput {!}work{Enter}
Sleep 1000
}
return
AHKStudent
Posts: 1472
Joined: 05 May 2018, 12:23

Re: Script that writes to a specific window

06 Jun 2019, 19:21

ControlSend is Your Friend!
Moo
Posts: 2
Joined: 06 Jun 2019, 15:32

Re: Script that writes to a specific window

06 Jun 2019, 19:57

AHKStudent wrote:
06 Jun 2019, 19:21
ControlSend is Your Friend!
Thanks! Do you know how exactly I would incorporate that in the code I already have? And how would I specify the name of the window?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Google [Bot], OrangeCat and 177 guests