What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Need Help with my First Script

Need Help with my First Script
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Need Help with my First Script
I don't have much time to debug it, but here are a few things which I can say about good practice:

1) Your status doesn't have anything to do with it.

2) Don't use the OnEvent_Initialize() function to read in the XML. As you can read in the scripting documentation, the OnEvent_Initialize() function should return as quickly as possible and is not a good place to do process intensive tasks.

Instead use the OnEvent_SigninReady() function to do that. It also makes more sense because if you are never going to sign in, it is useless to read in the XML and set things up.

3) Before using ChatWnd.SendMessage you should always check if you can actually send a message by using ChatWnd::EditChangeAllowed. Again, see official scripting documentation.

Now, the above pointers don't realy fix anything. But they will prevent possible problems in the long run.

4) There is probably something wrong with the ActiveX object you use. Try to get some documentation about it and study it carefully.

This post was edited on 11-24-2009 at 05:18 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-24-2009 05:14 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Need Help with my First Script - by SamV522 on 11-24-2009 at 04:54 PM
RE: Need Help with my First Script - by SourSpud on 11-24-2009 at 04:58 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 05:00 PM
RE: Need Help with my First Script - by SourSpud on 11-24-2009 at 05:02 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 05:12 PM
RE: Need Help with my First Script - by CookieRevised on 11-24-2009 at 05:14 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 05:43 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 06:10 PM
RE: Need Help with my First Script - by matty on 11-24-2009 at 06:20 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 06:24 PM
RE: Need Help with my First Script - by Spunky on 11-24-2009 at 06:25 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 06:32 PM
RE: Need Help with my First Script - by matty on 11-24-2009 at 06:53 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 07:16 PM
RE: Need Help with my First Script - by matty on 11-24-2009 at 07:19 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 07:23 PM
RE: Need Help with my First Script - by SamV522 on 11-24-2009 at 07:55 PM
RE: Need Help with my First Script - by Spunky on 11-24-2009 at 08:00 PM
RE: Need Help with my First Script - by matty on 11-24-2009 at 08:29 PM
RE: Need Help with my First Script - by CookieRevised on 11-24-2009 at 08:35 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