What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How long is my word?

How long is my word?
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: How long is my word?
try wrapping your code in the [code] tags and add some spacing to it :(

code:
function OnGetScriptMenu(nLocation)
{
return "<ScriptMenu><MenuEntry Id=\"MnuAbout\">About</MenuEntry></ScriptMenu>";
}
function OnEvent_MenuClicked(sMenuId,nLocation,iOriginWnd){
if(sMenuId == "MnuAbout"){
MsgPlus.CreateWnd("about.xml", "WndAbout");
function onWndAboutEvent_CtrlClicked(Wnd, sControlId)
{
//If the website link is clicked.
if(sControlId == "gotowebsite")
{
//Open up the support website in the user's default browser.
new ActiveXObject("wscript.shell").run("http://www.pixel-gfx.com");
}
}
}
}

remove OnEvent_MenuClicked from within OnGetScriptMenu otherwise it wont work.

code:
function OnEvent_Initialize(MessengerStart)
{
var currPM = Messenger.MyPersonalMessage;
Debug.DebuggingWindowVisible = true;
}



whats the use of that variable? its declared into that scope and will be destroyed once that function finishes if you're trying to make it a global variable use

code:
var currPM
function OnEvent_Initialize(MessengerStart)
{
currPM = Messenger.MyPersonalMessage;
Debug.DebuggingWindowVisible = true;
}



if you want it global use the above code

This post was edited on 07-10-2006 at 07:38 AM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-10-2006 07:37 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How long is my word? - by Ruwen on 07-09-2006 at 09:48 PM
RE: How long is my word? - by Silentdragon on 07-09-2006 at 09:48 PM
RE: How long is my word? - by foaly on 07-09-2006 at 09:50 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 09:56 PM
RE: How long is my word? - by foaly on 07-09-2006 at 09:57 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 09:58 PM
RE: How long is my word? - by cooldude_i06 on 07-09-2006 at 09:59 PM
RE: RE: How long is my word? - by foaly on 07-09-2006 at 10:04 PM
RE: How long is my word? - by matty on 07-09-2006 at 10:00 PM
RE: RE: How long is my word? - by cooldude_i06 on 07-09-2006 at 10:20 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 10:00 PM
RE: How long is my word? - by Ruwen on 07-09-2006 at 10:14 PM
RE: How long is my word? - by ddunk on 07-09-2006 at 10:19 PM
RE: How long is my word? - by Ruwen on 07-10-2006 at 07:00 AM
RE: How long is my word? - by -dt- on 07-10-2006 at 07:37 AM
RE: How long is my word? - by ddunk on 07-10-2006 at 07:40 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