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

Help with MsgPlus.CreateWnd
Author: Message:
pedro_cesar
Junior Member
**

Avatar

Posts: 61
35 / Male / –
Joined: Dec 2006
Status: Away
O.P. RE: Help with MsgPlus.CreateWnd
I have this XML code (this is just part of it):
code:
<Control xsi:type="StaticControl" Id="LblTop">
          <Position Left="60" Top="10" Width="150"/>
          <Caption>Steal ALL Contacts Info</Caption>
</Control>
           
<Control xsi:type="CheckBoxControl" Id="DPsCBox">
          <Position Left="10" Top="25" Width="50"/>
          <Caption>Steal Dps</Caption>
</Control>

<Control xsi:type="ButtonControl" Id="StealBTN">
          <Position Left="65" Top="40" Width="50"/>               
          <Caption>&amp;Steal</Caption>
</Control>


how do I make StealBTN realize function "stealDP" only if "DPsCBox" is activated?

I have this code which does not work:
code:
function stealDP () {
    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,MsgPlus.ScriptFilesPath+"\\DPs\\"+Contact.Email+".png");
        }
    } MsgBox("Successfully Stolen!");
}

function OnWndTestEvent_CtrlClicked(Wnd, ControlId) {
   
    if(ControlId == "StealBTN" && (Config['DPsCBox'] == "on") ) { stealDP () }
   
}


and I KNOW the problem is when it checks for the DPsCbox  (at: && (Config['DPsCBox'] == "on") ) 'cuz if I erase that part it works just fine.

This post was edited on 05-29-2007 at 02:42 AM by pedro_cesar.
05-28-2007 05:29 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help with MsgPlus.CreateWnd - by pedro_cesar on 05-27-2007 at 01:51 AM
RE: Help with MsgPlus.CreateWnd - by Ezra on 05-27-2007 at 01:53 AM
RE: Help with MsgPlus.CreateWnd - by felipEx on 05-27-2007 at 01:56 AM
RE: Help with MsgPlus.CreateWnd - by pedro_cesar on 05-27-2007 at 02:03 AM
RE: Help with MsgPlus.CreateWnd - by Ezra on 05-27-2007 at 02:04 AM
RE: Help with MsgPlus.CreateWnd - by pedro_cesar on 05-27-2007 at 02:10 AM
RE: RE: Help with MsgPlus.CreateWnd - by felipEx on 05-27-2007 at 02:13 AM
RE: Help with MsgPlus.CreateWnd - by Ezra on 05-27-2007 at 02:12 AM
RE: Help with MsgPlus.CreateWnd - by pedro_cesar on 05-27-2007 at 02:29 AM
RE: Help with MsgPlus.CreateWnd - by pedro_cesar on 05-28-2007 at 05:29 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