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

Browse Help
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Browse Help
This is the code I used for Screenshot Sender 4

code:
function BrowseForFolder(sTitle){
    var BrowseInfo = Interop.Allocate(32);
    var foldertitle = Interop.Allocate((255+1) * 2);
    BrowseInfo.WriteDWORD(8, foldertitle.DataPtr);
    var pTitle = Interop.Allocate((sTitle.length+1) * 2);
    pTitle.WriteString(0, sTitle, false);
    BrowseInfo.WriteDWORD(12, pTitle.DataPtr);
    BrowseInfo.WriteDWORD(16, 1);
    var pidl = Interop.Call('shell32', 'SHBrowseForFolder', BrowseInfo);
    var folderpath = Interop.Allocate((255+1) * 2);
    Interop.Call('shell32', 'SHGetPathFromIDList', pidl, folderpath);
    return folderpath.ReadString(0, false)+'\\';
}

//Usage

    Debug.Trace(BrowseForFolder('Pick a Folder'));
10-15-2006 09:37 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Browse Help - by TYL3R on 10-15-2006 at 07:03 PM
RE: Browse Help - by matty on 10-15-2006 at 09:37 PM
RE: Browse Help - by TYL3R on 10-15-2006 at 10:23 PM
RE: Browse Help - by deAd on 10-15-2006 at 10:54 PM
RE: Browse Help - by Ezra on 10-15-2006 at 11:08 PM
RE: Browse Help - by TYL3R on 10-15-2006 at 11:18 PM
RE: Browse Help - by matty on 10-15-2006 at 11:25 PM
RE: Browse Help - by TYL3R on 10-15-2006 at 11:31 PM
RE: Browse Help - by matty on 10-15-2006 at 11:36 PM
RE: Browse Help - by TYL3R on 10-16-2006 at 01:03 AM
RE: Browse Help - by deAd on 10-16-2006 at 02:15 AM
RE: Browse Help - by matty on 10-16-2006 at 03:45 AM
RE: Browse Help - by TYL3R on 10-16-2006 at 04:05 AM
RE: Browse Help - by roflmao456 on 01-18-2007 at 01:08 PM
RE: Browse Help - by TYL3R on 01-19-2007 at 03:36 AM
RE: Browse Help - by Felu on 01-19-2007 at 10:27 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