greenmachine Posted March 27, 2006 Posted March 27, 2006 [...] By the way, if the file name exists, it will go into an error loop as it will keep asking if I want to overwrite it but it will keep saying NO so it will keep going into a loop. How do I overcome that? Don't say no?
tradertt Posted March 27, 2006 Author Posted March 27, 2006 What I meant was that a Window will pop up - File already exists - Do you want to replace it? YES NO It will automatically click on NO and goes back to the save as screen and it will go in a loop forever. How can I make it click YES or add an additional alphabet at the end of the filename if it goes into this loop Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online
greenmachine Posted March 27, 2006 Posted March 27, 2006 Check for the "File already exists" window and send !y (for yes) or whatever key is required. Or, make a loop adding (1), (2) onto a file name until it is created. ;[...] code to save it the first time, assume file name is saved in var $FileName If WinExists ("File already exists") Then; probably won't work exactly like that because it likely isn't its own window Do Send ("!n") $i = 1 $FileName &= "(" & $i & ")" ; save routine $i += 1 Until Not WinExists ("File already exists"); or alternative method, until FileExists ($FileName) EndIf Very pseudocode-ish, but it's an idea.
tradertt Posted March 27, 2006 Author Posted March 27, 2006 Thank you. If anyone has any other ideas, please do let me know Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online
tradertt Posted March 27, 2006 Author Posted March 27, 2006 Haiz... tried reading through the help but cannot seem to do the autoit with the ADD A LETTER AT THE END OF THE FILENAME> Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online
Moderators SmOke_N Posted March 27, 2006 Moderators Posted March 27, 2006 http://www.autoitscript.com/forum/index.php?showtopic=21048You'll find most of your answers here, that way this thread isn't 1000 posts long Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now