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

My first script.
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: My first script.
When you sign out while that script is running, your script goes *poof* kaput...


...


PS1: redundant code:
function OnEvent_Signin(email) {
     if (email == Messenger.MyEmail) {

email will always be Messenger.MyEmail btw


PS2: useless code: You don't need to include empty functions:
function OnEvent_Initialize(MessengerExit) {}
function OnEvent_Uninitialize(MessengerExit) {}


PS3: exercise code: try to optimize the updateMessage function like so:
1) get the filesize
2) get a random number from 1 to filesize
3) start reading from that offset until the next new line
4) use that next new line as your new message

tip: don't forget about methods like Skip()...


;)

This post was edited on 11-30-2006 at 01:55 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-30-2006 01:45 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
My first script. - by devilz-fury on 11-29-2006 at 06:39 PM
RE: My first script. - by andrey on 11-29-2006 at 06:58 PM
RE: My first script. - by CookieRevised on 11-30-2006 at 01:45 AM
RE: My first script. - by Menthix on 11-30-2006 at 01:50 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