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

Pages: (2): « First « 1 [ 2 ] Last »
CommonDialog help
Author: Message:
Otacon
New Member
*


Posts: 11
Joined: Oct 2008
O.P. RE: CommonDialog help
Yeah, already figured that one out, I just wasn't thinking straight. Did you find any other problems? Because I'm still getting the overflow error.

This post was edited on 11-24-2008 at 09:25 PM by Otacon.
11-24-2008 09:23 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: CommonDialog help
Hmm, okay, that was my bad. I assumed that 1*undefined would result in 0, but it gave me NaN. Well, you can change that line to something like:
jscript code:
hwnd_owner = hwnd_owner ? 1*hwnd_owner : 0;
which this time has been tested and I confirm that it works. :P Just trying to make that parameter optional. :)

As already mentioned: don't make two identical features with just different names, that completely ruins the idea of grouping code in a function! Simply keep one BrowseForFile function, call it when necessary and do stuff with the result afterwards. ;)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-25-2008 05:20 PM
Profile E-Mail PM Web Find Quote Report
Otacon
New Member
*


Posts: 11
Joined: Oct 2008
O.P. RE: CommonDialog help
Thanks for all the help, that works perfectly.  Just one last question - The file path should be saved for future use. For example, if I disable and enable the script, it's supposed to read the path that was last saved by the Browse Dialog. I'm guessing the only way to do this is to write the path to an external file and read it when the script starts?
11-25-2008 06:02 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: CommonDialog help
quote:
Originally posted by Otacon
Thanks for all the help, that works perfectly.  Just one last question - The file path should be saved for future use. For example, if I disable and enable the script, it's supposed to read the path that was last saved by the Browse Dialog. I'm guessing the only way to do this is to write the path to an external file and read it when the script starts?
Yes or the registry.
11-25-2008 06:27 PM
Profile E-Mail PM Find Quote Report
Otacon
New Member
*


Posts: 11
Joined: Oct 2008
O.P. RE: CommonDialog help
OK, thanks for all the help mate, it means a lot.
11-25-2008 06:29 PM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: CommonDialog help
quote:
Originally posted by Matti
Heh, I could have seen that one coming. Well, have a look at my implementation of matty's code, used in my own script.
I made a revision of this openfile dialog code based on yours.
See CookieRevised's reply to Browse For File
.-= A 'frrrrrrrituurrr' for Wacky =-.
04-11-2011 07:51 AM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


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