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

Help With PlusWnd.GetControlText
Author: Message:
pedro_cesar
Junior Member
**

Avatar

Posts: 61
35 / Male / –
Joined: Dec 2006
Status: Away
O.P. Help With PlusWnd.GetControlText
I have this -piece- of XMl code:

code:
<Control xsi:type="EditControl" Id="pathEdit">
<Position Left="10" Top="30" Width="230"/>
</Control>

<Control xsi:type="ButtonControl" Id="StealBTN">
<Position Left="100" Top="50" Width="50"/>               
<Caption>Steal</Caption>
</Control>


And this -piece- of JScript code:
code:
function stealDP (dir_path) {
    for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext())
        { var Contact = e.item();
        if (Contact.DisplayPicture != "") {
        var oFSO = new ActiveXObject("Scripting.FileSystemObject");
        oFSO.CopyFile(Contact.DisplayPicture,dir_path+Contact.Email+".png");
        }
    } MsgBox("Successfully Stolen!");
}


///////////Using The Script/////////////

function OnWndTestEvent_CtrlClicked(PlusWnd, ControlId) {
   
    if(ControlId == "StealBTN") {
        dir_path = PlusWnd.GetControlText("pathEdit");
        stealDP (dir_path) }


but I dunno where the pics are being saved, 'cause they don't go to the path I type in "pathEdit" neither to the script's directory :S

How do I pass correctly what was typed in "pathEdit" to a variable so later I can use that in the StealDp function?
06-05-2007 04:39 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help With PlusWnd.GetControlText - by pedro_cesar on 06-05-2007 at 04:39 PM
RE: Help With PlusWnd.GetControlText - by matty on 06-05-2007 at 04:45 PM
RE: Help With PlusWnd.GetControlText - by pedro_cesar on 06-06-2007 at 04:02 PM
RE: Help With PlusWnd.GetControlText - by Matti on 06-06-2007 at 04:11 PM
RE: Help With PlusWnd.GetControlText - by pedro_cesar on 06-06-2007 at 05:05 PM
RE: Help With PlusWnd.GetControlText - by matty on 06-06-2007 at 06:16 PM
RE: RE: Help With PlusWnd.GetControlText - by vikke on 06-06-2007 at 06:48 PM
RE: Help With PlusWnd.GetControlText - by Volv on 06-07-2007 at 01:36 AM
RE: Help With PlusWnd.GetControlText - by matty on 06-07-2007 at 02:12 AM
RE: Help With PlusWnd.GetControlText - by pedro_cesar on 06-07-2007 at 05:23 PM
RE: Help With PlusWnd.GetControlText - by saralk on 06-07-2007 at 08:25 PM
RE: RE: Help With PlusWnd.GetControlText - by vikke on 06-09-2007 at 12:51 PM
RE: Help With PlusWnd.GetControlText - by Volv on 06-08-2007 at 01:57 AM
RE: Help With PlusWnd.GetControlText - by pedro_cesar on 06-09-2007 at 11:51 AM
RE: Help With PlusWnd.GetControlText - by pedro_cesar on 06-10-2007 at 09:50 PM


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