I am trying to write a short program that can basically click a mouse (over say the scan button for a scanner) every 2 minutes for a few hours. I now have a program that can do the clicking, but I am having trouble figuring out the loop (I literally started using AutoIt today). I want the file name of each scan to change (otherwise it is overwritten) to scan01, scan02, etc. Any suggestions?
[ autoit ]
Opt("MouseCoordMode",0) MouseClick("left", 1180,200,3) ;figure out how to rename file Sleep(60000) ; 60 seconds so the scanner can finish before the program tries to move and rename the file FileMove("C:\Users\TJCochran\Documents\doc.jpg", "C:\Users\TJCochran\Desktop\Bacteria Scans\Scan", 0) Sleep(120000) ; 2 minutes