Hi i have this script running at the moment, over time the mouse seems to drift off usually around the 11th loop meaning halting the process completely. I realize i could pretty easily just work out the Y value for each file, but that a lot of work.
Code: Select all
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Screen
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1
F3::
COPYINATOR:
MousePosX := 345
MousePosY := 116
TheRest:
WinActivate, ahk_exe kubioshrv.exe
Sleep, 333
/*
Press Open
*/
Click, 9, 61 Left, 1
Gosub, MoveLocation
Sleep, 213599
SoundPlay, C:\Users\mbea204\Downloads\Homer - Woohoo! (1).wav
/*
PRESS SAVE
*/
Click, 31, 59 Left, 1
Sleep, 500
Sleep, 19000
/*
SELECT SAVE LOCATION
*/
Click, 913, 1843 Left, 1
Sleep, 500
Sleep, 40000
/*
EXIT
*/
SoundPlay, C:\Users\mbea204\Downloads\front-desk-bells-daniel_simon.wav
Click, 247, 59 Left, 1
Sleep, 500
Goto, TheRest
[b]MoveLocation:
Click, %MousePosX%, %MousePosY%, 0
Sleep, 500
Click, Rel 0, 20 Left, 2
Sleep, 300
CoordMode, %MousePosX%`, %MousePosY%, Screen
MouseGetPos, 345, MousePosY
Return[/b]
Thanks in advance!