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:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: CommonDialog help
That's very simple.
jscript code:
    return BrowseDialog.FilePath;
    pm = BrowseDialog.FilePath;
You are returning before setting the variable, that means you end the function right there. Everything else that comes afterwards won't be executed. So, this is very simple to fix: first set the pm variable, then return its value.
jscript code:
   pm = BrowseDialog.FilePath;
   return pm;
As for your second question: yes, have a look at matty's reply to Browse For File featuring an implementation of GetOpenFileName which works both on XP and Vista. You'll probably want to change some things, like getting it out of the OnEvent_Initialize function and such.

If you're having trouble with this, we'll help you with that, but it's better to experiment with it a bit first and try things yourself - it really is the best way to learn programming. :)

This post was edited on 11-24-2008 at 06:59 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-24-2008 06:59 PM
Profile E-Mail PM Web 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