I want to make a script that runs on a window that is in the background.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SwlDex
Posts: 1
Joined: 22 Jul 2021, 13:08

I want to make a script that runs on a window that is in the background.

Post by SwlDex » 26 Jun 2022, 06:18

Hey! I would need help making a script.
The point of the script is so that it runs a command on a window, while im using another one, so that window is in the background.
The script would probably be something like

Code: Select all

{

Send, u{!}work
Send {Enter}
Sleep 1000
Send, u{!}dep all
Send {Enter}
Sleep 1860000
repeat

}
[Mod edit: [code][/code] tags added.]

but able to still type without being the main window.

Thanks to anyone that responds to this thread.

User avatar
mikeyww
Posts: 26937
Joined: 09 Sep 2014, 18:38

Re: I want to make a script that runs on a window that is in the background.

Post by mikeyww » 26 Jun 2022, 06:55

Welcome to this AutoHotkey forum!

Would have a look at :arrow: ControlSend and Loop.

If you and AHK are both typing at the same time, actions can collide.

Post Reply

Return to “Ask for Help (v1)”