Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Renaming a File in a loop

$
0
0
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

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>