Would it not be easier...
This is only a problem if you're going to take a screenshot faster than every second or for over a 100 year period, even then you could stick a millisecs() on the end to fix that problem.
SaveBuffer FrontBuffer(), "Screenshot " + currentdate() + " " + currenttime() + ".bmp"This will also date/time stamp your screenies.
This is only a problem if you're going to take a screenshot faster than every second or for over a 100 year period, even then you could stick a millisecs() on the end to fix that problem.