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:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help With PlusWnd.GetControlText
quote:
Originally posted by pedro_cesar
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>


Can you post the rest of the XML? Did you change the Window ID? If so then you need to correct your OnWindowIdEvent_CtrlClicked()


quote:
Originally posted by pedro_cesar
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!");
}


Just making your routine better
code:
function stealDP(path){
    for (var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext()){
        if (e.item().DisplayPicture !== ''){
            Interop.Call('user32', 'CopyFileW', e.item().DisplayPicture, path + '\\' + e.item().Email + '.png', false);
        }
    }
}

quote:
Originally posted by pedro_cesar
How do I pass correctly what was typed in "pathEdit" to a variable so later I can use that in the StealDp function?
Make a global variable

code:
var this_is_a_global_variable;
function _this_is_a_function(){
    var this_is_a_local_variable;
}

This post was edited on 06-05-2007 at 04:53 PM by matty.
06-05-2007 04:45 PM
Profile E-Mail PM 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