Jump to content

Recommended Posts

Posted

[...]

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?
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...