Shoutbox

[Help/ Early Preview] Myspace integration - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Help/ Early Preview] Myspace integration (/showthread.php?tid=62612)

[Help/ Early Preview] Myspace integration by BstrdSmkr on 07-05-2006 at 08:20 PM

now thanks to Pai, i've got the menu up and running and even some primative (albeit useless....) toasts popping off :D the problem i'm having now is that i can't get any response back from the preferences window, no control clicked event, no nothing :^) nothing registers in the debugger after the menu clicked event.  everything in in unicode, and the window ID is correct to the best of my knowledge. below is my code:

code:

/*
* Hook to Prefs Window
*/

function OnnwaPrefsEvent_CrtlClicked(nwaWnd, ControlId)
{
    if(ControlId == "BtnOK")
    {
        nwaWnd.Close(1);
        SaveSettings(Messenger.MyEmail);
    }
//    nwaLogin            = PlusWnd.GetControlText("nwalogininput");
//    nwaPassword         = PlusWnd.GetControlText("nwapasswordinput");
//
//    nwaMailInterval     = PlusWnd.GetControlText("nwamailinput")     * 60000;
//    nwaRequestInterval  = PlusWnd.GetControlText("nwarequestsinput") * 60000;
//    nwaBulletinInterval = PlusWnd.GetControlText("nwabulletininput") * 60000;
//    nwaEventInterval    = PlusWnd.GetControlText("nwaeventsinput")   * 60000;
//    nwaBlogInterval     = PlusWnd.GetControlText("nwablogsinput")    * 60000;
//    SaveSettings(Messenger.MyEmail);
}



I've commented out those lines b/c they're useless until i can get something back from the windows. any help is greatly apprieciated!

and my current script pack is attached to sate curriosity :)
RE: [Help/ Early Preview] Myspace integration by craig2k5 on 07-05-2006 at 08:21 PM

wouldnt it be better if u posted the script file? then it would be a bit easier (A)


RE: [Help/ Early Preview] Myspace integration by Stigmata on 07-05-2006 at 08:23 PM

you cannot upload .js files


RE: [Help/ Early Preview] Myspace integration by MisterFreak on 07-05-2006 at 08:28 PM

You could pack it in a .plsc file =)


RE: [Help/ Early Preview] Myspace integration by BstrdSmkr on 07-10-2006 at 11:03 PM

new problems/solution, see first post :)


RE: [Help/ Early Preview] Myspace integration by Pai on 07-11-2006 at 12:50 AM

You forgot to close the "<ScriptMenu>" ...

Add to the end:

code:
menu += '</ScriptMenu>';

RE: [Help/ Early Preview] Myspace integration by :No-Frost: on 07-11-2006 at 03:44 AM

what this does???


RE: [Help/ Early Preview] Myspace integration by Keikonium on 07-11-2006 at 04:02 AM

Having not tried it, and not having a myspace (well, I do, but I never use it... ever :|), looking at the script I would say it notifies you on New Mail, friend requests, bullitins, events, and blogs.

It looks as tho it adds these to a drop down in the Plus! menu, and you can click them and it will let you know if you have any new notifications.

Just a guess, and if this is what it does, well done BstrdSmkr :o! Very cool. Like a personal RSS :)


RE: [Help/ Early Preview] Myspace integration by BstrdSmkr on 07-11-2006 at 04:16 AM

Keikonium is right on the money here.  Although ideally once all the bugs are worked out, it will pop off a toast whenever you have a new message on your Myspace.com account.  Sadly, as of the moment, its still just a tease, i'm still having trouble getting the dynamic menu working, it doesn't seem to want to add to the menu unless it's defined in scriptmenu.xml : \ i added the </Scriptmenu> tag, but it's still not showing up.  any ideas?   newest version uploaded to 1st post

and thanks for the compliment btw :D


RE: [Help/ Early Preview] Myspace integration by Pai on 07-11-2006 at 11:11 AM

Try this:

code:
function OnGetScriptMenu(Loc) {

/*
* Create Plus Menu
*/

var menu = '<ScriptMenu>';
menu += '<MenuEntry Id="MnuChkAll">Check All Now</MenuEntry>';
menu += '<MenuEntry Id="MnuInbox">Inbox</MenuEntry>';
menu += '<MenuEntry Id="MnuRequest">Friend Requests (' + nwaNewRequestCounter  + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuBulletin">Bulletins ('      + nwaNewBulletinCounter + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuEvent">Events (' + nwaNewEventCounter    + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuBlog">Blogs ('         + nwaNewBlogCounter     + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuOptions">Options...</MenuEntry>';
menu +=   '</ScriptMenu>';

  return menu;

}

RE: RE: [Help/ Early Preview] Myspace integration by BstrdSmkr on 07-13-2006 at 02:04 AM

quote:
Originally posted by Pai
Try this:

code:
function OnGetScriptMenu(Loc) {

/*
* Create Plus Menu
*/

var menu = '<ScriptMenu>';
menu += '<MenuEntry Id="MnuChkAll">Check All Now</MenuEntry>';
menu += '<MenuEntry Id="MnuInbox">Inbox</MenuEntry>';
menu += '<MenuEntry Id="MnuRequest">Friend Requests (' + nwaNewRequestCounter  + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuBulletin">Bulletins ('      + nwaNewBulletinCounter + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuEvent">Events (' + nwaNewEventCounter    + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuBlog">Blogs ('         + nwaNewBlogCounter     + ')</MenuEntry>';
menu += '<MenuEntry Id="MnuOptions">Options...</MenuEntry>';
menu +=   '</ScriptMenu>';

  return menu;

}


thanks Pai, worked like a charm! i keep servin' em up and you guys keep battin' em down lol I can always find something new to screw up. see first post for the new round of Q&A and the newest script pack! :)
RE: [Help/ Early Preview] Myspace integration by BstrdSmkr on 07-17-2006 at 04:16 AM

this script has been Beta-ed in this thread:   http://shoutbox.menthix.net/showthread.php?tid=63408

this thread can be locked/moved/etc