I am using a pre-built script from this forum to record my mouse clicks. After recording this is the code:
My goal is to shift only the first click down 50 pixels after each loop and the script will run for 50 loops.
If someone could assist it would be much appreciated. I understand a y-coordinate might need to be defined and a line added before the first click, but programming is not my forte. I know logically what needs to be added but not the language.
Thank you very much.
Code: Select all
Loop, 50
{
SetTitleMatchMode, 2
CoordMode, Mouse, Window
tt = Issues
WinWait, %tt%
IfWinNotActive, %tt%,, WinActivate, %tt%
Sleep, 600
MouseClick, L, 1464, 604 ; Select task line (I want to shift this command down 50 pixels after each loop)
Sleep, 600
MouseClick, L, 3428, 1769 ; Select location details line
Sleep, 600
MouseClick, L, 3428, 1769,,, D ; Begin highlighting
Sleep, 1000
MouseClick, L, 3456, 1757,,, U ; End highlighting
Sleep, 600
MouseClick, R, 3439, 1766 ; Open paste menu
Sleep, 600
MouseClick, L, 3082, 1285 ; Select paste
Sleep, 600
}