File extensions in Save Dialog

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Dominic_Fichera
Pro Scripter
Posts: 82
Joined: Mon Mar 24, 2014 12:15 pm

File extensions in Save Dialog

Post by Dominic_Fichera » Sat Jul 26, 2014 7:17 am

Hi All,

I am having a go at pretty much "recreating" notepad, just for experience.

I currently have a dialog with a "save" button which will bring up the file browse and let me save. This works fine, but I want to know how I will be able to add "file extensions" into it.

For example, in windows when you save a file, you type the file name, but underneath it, there is a dropdown menu which says ".txt", "all files", ".doc" etc.

I want to include an option for ".txt" and "all files".

I currently have the below:

SRT>doSave
SetDialogProperty>TextEditor,Save,DoBrowse,True
GetDialogProperty>TextEditor,Save,Filename,str_Filename
GetDialogProperty>TextEditor,TextEditor,text,varText
WriteLn>%str_Filename%,nWLNRes,varText
END>doSave

Thank you! :)))

Dominic Fichera

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts