GetFileOpenDlgTitle GetFolder

GetFileSaveDlgTitle


The GetFileSaveDlgTitle function returns the current title used for Save As dialogs.

Syntax

sTitle = GetFileSaveDlgTitle()

bullet.gif    where sTitle is a string.

bullet.gif    On success, the current title is returned.

bullet.gif    On failure, "Save" is returned.

Remarks

This command is normally used with the companion SetFileSaveDlgTitle method for manipulating the title of the Save As dialog to tune it to specific cases.

Example

This script sets the dialog title on 2 occasions, then restores it to the default.

sOldTitle = GetFileSaveDlgTitle()

-- fetch the original title

SetFileSaveDlgTitle("Save Image 1")

-- set a new title

sName1 = GetFileName()

-- uses the new title

  ...

 

SetFileSaveDlgTitle("Save Image 2")

-- change the title again

sName2 = GetFileName()

-- uses the second title

  ...

 

SetFileSaveDlgTitle(sOldTitle)

-- restore the original title

Related Topics

SetFileSaveDlgTitle

SetFileOpenDlgTitle

GetFileName

 


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.