Need to change script to run in background

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
drees5
Posts: 1
Joined: 12 Apr 2021, 13:43

Need to change script to run in background

12 Apr 2021, 13:50

Hey, I've made a simple script that drags the mouse around an area from the top left to bottom right then returns to the top and repeats. The script works perfectly however I'd like to run it in the background so I can use the computer for other thing while it works in the background.

Code: Select all

F6::
MouseMove, 10, 200

sleep 200
loop{
MouseGetPos, xpos, ypos
if (ypos < 400) {
MouseClickDrag, left, 0, 0, 930, 0, 20, R
sleep 100
MouseClickDrag, left, 0, 0, 0, 20, 20, R
sleep 100
MouseClickDrag, left, 0, 0, -930, 0, 20, R
sleep 100
MouseClickDrag, left, 0, 0, 0, 20, 20, R
}
else {
MouseMove, 10, 200
sleep 200
}
}


F7::
pause
I've had a look into some things such as ControlClick and ControlSend for background tasks but neither of them seem to suit my needs (I think!).

Any help would be much appreciated :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, Ruediger Loos and 330 guests