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