Background Script help

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jaredy00
Posts: 2
Joined: 02 Feb 2017, 20:23

Background Script help

09 Dec 2018, 11:24

Is there a way to run a specific script for specific program that is minimized in the background so I can do other things in the computer?

Code: Select all

j::
loop
{
SendRaw, ^work
Sleep, 1000
Send, {ENTER}
Sleep, 1000
SendRaw, ^dep all
Sleep, 1000
Send, {ENTER}
Sleep, 27000
}
Using the Window spy program this is the window i want the script running in
#unbelivaboat-commands - Discord
ahk_class Chrome_WidgetWin_1
ahk_exe Discord.exe
neokix
Posts: 36
Joined: 10 May 2017, 07:50
Contact:

Re: Background Script help

10 Dec 2018, 00:49

Hi. I'm not sure this works, but you can use "ControlSend" to send texts and hotkeys to the program that are running background.
It works most of the times, but sometimes doesn't. But try replace your "SendRaw" to this anyway.

https://autohotkey.com/docs/commands/ControlSend.html

You need to look at the bottom for examples, and also read remarks. Hope this helps!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, iamMG, Theda and 172 guests