andybdjuk Posted August 9, 2010 Share Posted August 9, 2010 Hi I am running the script to capture my page but i want to save the capture under a different file name each day, can you help. The scrip I am running is:- private nexttime3 = floor(systime()/86400) * 86400 + 86400 while (1) waituntil(nexttime3) page.capture("Main_Page","C:\Documents and Settings\A Barrow\Desktop\Screen Dumps.jpg") nexttime3 += 86400 endwhile Thanks Link to comment Share on other sites More sharing options...
AzeoTech Posted August 11, 2010 Share Posted August 11, 2010 The file name is in capture() is just a string, so you can assemble it however you want, for example, using the formatdatetime() function: "c:\doc and sets\screendump" + formatdatetime(...) + ".csv". There are several samples of how to do this in the forum for changing logging set names every day. Check the help for how to use the formatdatetime() function. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.