What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » CommonDialog help

CommonDialog help
Author: Message:
Otacon
New Member
*


Posts: 11
Joined: Oct 2008
O.P. CommonDialog help
Ok, so I'm using this code:
jscript code:
function BrowseForPm(InitialDir)
{
    BrowseFilter = "Text Files (*.txt)|*.txt|All Files|*.*";
    var BrowseDialog = new ActiveXObject("UserAccounts.CommonDialog")
    BrowseDialog.Filter = BrowseFilter;
    BrowseDialog.InitialDir = InitialDir;
    BrowseDialog.Flags = "&H4";
    BrowseDialog.ShowOpen()
    return BrowseDialog.FilePath;
    pm = BrowseDialog.FilePath;
}

The dialog shows up fine, but it seems like the file path isn't being saved to the variable. Does anyone know what the problem is? I've been trying to make a dialog that works for days, searched this entire forum for anything related to CommonDialog and found nothing helpful.

Also, this type of dialog has been replaced with a new kind of dialog in Windows Vista, something called ItemDialog, so it won't even show up. So does anyone know the code that would be equivalent to this for the new Vista ItemDialog, because this won't work(I actually tested it just in case).

Thanks in advance for all your help.

This post was edited on 11-24-2008 at 06:47 PM by Otacon.
11-24-2008 06:46 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
CommonDialog help - by Otacon on 11-24-2008 at 06:46 PM
RE: CommonDialog help - by MeEtc on 11-24-2008 at 06:57 PM
RE: CommonDialog help - by Matti on 11-24-2008 at 06:59 PM
RE: CommonDialog help - by Otacon on 11-24-2008 at 07:12 PM
RE: CommonDialog help - by Matti on 11-24-2008 at 07:38 PM
RE: CommonDialog help - by Otacon on 11-24-2008 at 07:57 PM
RE: CommonDialog help - by matty on 11-24-2008 at 08:03 PM
RE: CommonDialog help - by Otacon on 11-24-2008 at 08:16 PM
RE: CommonDialog help - by Spunky on 11-24-2008 at 08:48 PM
RE: CommonDialog help - by matty on 11-24-2008 at 09:20 PM
RE: CommonDialog help - by Otacon on 11-24-2008 at 09:23 PM
RE: CommonDialog help - by Matti on 11-25-2008 at 05:20 PM
RE: CommonDialog help - by Otacon on 11-25-2008 at 06:02 PM
RE: CommonDialog help - by matty on 11-25-2008 at 06:27 PM
RE: CommonDialog help - by Otacon on 11-25-2008 at 06:29 PM
RE: CommonDialog help - by CookieRevised on 04-11-2011 at 07:51 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On