Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6147
    slyder
    Member

    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

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.