EmEditor (text editor) Forum Index Questions and Answers about Macros
Save/Open file dialog | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| slyder | Posted on: 8/27/2008 6:28 am |
Just popping in ![]() ![]() Joined: 8/27/2008 From: Posts: 1 |
Save/Open file dialog Is it possible to open save/open file dialog.
I've found working example only for Open Directory dialog: var oShell = new ActiveXObject("Shell.Application"); var oFolder = oShell.BrowseForFolder(0, 'Caption', 0, 'c:\\'); try{ var oFolderItem = oFolder.Items().item() result = oFolderItem.Path } catch(e){ alert(e.description) } alert(result); I've tryed: var ComDlg = new ActiveXObject("MSComDlg.CommonDialog"); ComDlg.Filter = "All Files(*.*)|*.*"; ComDlg.FilterIndex = 1; ComDlg.Flags = 0x200 | 0x1000 | 0x80000; ComDlg.MaxFileSize = 512; ComDlg.ShowOpen(); but EmEditor couldn't create such ActiveX object. Thanks |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |


