How do i get this script to work on a window in the background and only that window? I have a game open in the background and I'm trying to prevent it from logging out without me having to check on it periodically.
1::
Loop,
{
Send, {n down}
sleep, 100
Send, {n up}
sleep, 220000
}
Script help needed.
Script help needed.
Last edited by overtyped on 05 Feb 2020, 05:53, edited 1 time in total.
- Yakshongas
- Posts: 590
- Joined: 21 Jan 2020, 08:41
Re: Script help needed.
use the
like this
Code: Select all
if Winactive
Code: Select all
1::
if WinActive, (windown name)
{
Loop,
{
Send, {n down}
sleep, 100
Send, {n up}
sleep, 220000
}
}
Please mark your topics as solved if you don't need any further help. ![✅](//cdn.jsdelivr.net/emojione/assets/3.1/png/64/2705.png)
Need a little more help? Discord : Yakshongas#9893 🕹
![✅](http://cdn.jsdelivr.net/emojione/assets/3.1/png/64/2705.png)
Need a little more help? Discord : Yakshongas#9893 🕹
Re: Script help needed.
Thanks for your help. Sadly for some reason this breaks the script and no longer works.Yakshongas wrote: ↑06 Feb 2020, 12:16use thelike thisCode: Select all
if Winactive
Code: Select all
1:: if WinActive, (windown name) { Loop, { Send, {n down} sleep, 100 Send, {n up} sleep, 220000 } }
Who is online
Users browsing this forum: Spikea and 100 guests