What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [release] Who's online

Pages: (5): « First « 1 [ 2 ] 3 4 5 » Last »
[release] Who's online
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: [release] Who's online
Just been trying some things out for you (none of which worked). ALT codes don't seem to go into the script very well (It'd be ALT+0015 for carriage return). I was thinking about sendkeys to create a variable with a carriage return in it, but theres not an open window :p
<Eljay> "Problems encountered: shit blew up" :zippy:
08-27-2006 11:17 PM
Profile PM Find Quote Report
Zeh
Full Member
***

Avatar
DC 4 EVER!

Posts: 136
Reputation: 1
35 / Male / –
Joined: Aug 2006
RE: [release] Who's online
Ok so the changes I made to the script based on what alexp2_ad are working great! Now I've haded a line saying "Next count in 10 minutes". But I wanted to add some code to instead off saying allways 10 minutes to say the minutes left based on what you have chosen. Anyone knows how to do this?
[Image: Zeh.png][Image: x copy.jpg]
| Windows Live Messenger Beta Tester | Windows Live Mail Beta Tester |
08-28-2006 04:05 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: [release] Who's online
This'll do it, I put the time in a variable you set at the top:

EDIT: See below post...

This post was edited on 08-28-2006 at 04:37 PM by alexp2_ad.
08-28-2006 04:15 PM
Profile E-Mail PM Find Quote Report
Zeh
Full Member
***

Avatar
DC 4 EVER!

Posts: 136
Reputation: 1
35 / Male / –
Joined: Aug 2006
RE: [release] Who's online
Ok thkz! It's working great! :)
[Image: Zeh.png][Image: x copy.jpg]
| Windows Live Messenger Beta Tester | Windows Live Mail Beta Tester |
08-28-2006 04:22 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: [release] Who's online
Actually, use this... it uses minutes or seconds as appropriate, and rounds the number if it's decimal:

code:
var ThirtyMins = 1800000;
var SixtyMins = 3600000;
var FiveMins = 300000;
var TenMins = 600000;

// SET THE TIME YOU WANT TO USE HERE!
var mytime = ThirtyMins;

function OnEvent_Initialize(bMessengerStart){
    if(!bMessengerStart){ OnEvent_SigninReady(Messenger.MyEmail); }
}

function OnEvent_SigninReady(sEmail){
    var contacts = Messenger.MyContacts;
    var online = 0;
    var offline = 0;
    for(var e = new Enumerator(contacts); !e.atEnd(); e.moveNext()){
        item = e.item();
        if(item.Status != 1 && item.Status != 0){ online++; } else { offline++; }
    }
    MsgPlus.DisplayToastContact('Contact Counter', '[c=green]Online: '+online+'[/c]'+'[c=red]Offline: '+offline+'[/c]','Next count in '+TimeLength(mytime));
    MsgPlus.AddTimer('reload', mytime) //Repalce with SixtyMins if you want an hour
}

function OnEvent_Timer(sTimerId){
    if (sTimerId == 'reload'){
        OnEvent_SigninReady(Messenger.MyEmail); //Simply call the function so you dont duplicate code
    }
}

function TimeLength(time){
    if(time >= 60000){ return Math.round(time/60000)+" minutes"; }
    else{ return Math.round(time/1000)+" seconds"; }
}
08-28-2006 04:40 PM
Profile E-Mail PM Find Quote Report
Zeh
Full Member
***

Avatar
DC 4 EVER!

Posts: 136
Reputation: 1
35 / Male / –
Joined: Aug 2006
RE: [release] Who's online
I didn't understand what you just did but It's still the same. lol
[Image: Zeh.png][Image: x copy.jpg]
| Windows Live Messenger Beta Tester | Windows Live Mail Beta Tester |
08-28-2006 04:51 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: RE: [release] Who's online
quote:
Originally posted by Zeh
I didn't understand what you just did but It's still the same. lol

It means if you put in 30 minutes and 20 seconds it would round the bit on the toast to 30 minutes and not some space sapping number.

And if you put just 30 seconds, it'll have it in seconds instead of 0.5 minutes.
08-28-2006 04:58 PM
Profile E-Mail PM Find Quote Report
Zeh
Full Member
***

Avatar
DC 4 EVER!

Posts: 136
Reputation: 1
35 / Male / –
Joined: Aug 2006
RE: [release] Who's online
Ok I see but to put 30 seconds I would have to create a new var telling what the script what is 30 seconds just like the vars in the beggining of the script. Right?
[Image: Zeh.png][Image: x copy.jpg]
| Windows Live Messenger Beta Tester | Windows Live Mail Beta Tester |
08-28-2006 05:02 PM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
36 / Male / –
Joined: May 2004
Status: Away
RE: RE: [release] Who's online
quote:
Originally posted by Zeh
Ok I see but to put 30 seconds I would have to create a new var telling what the script what is 30 seconds just like the vars in the beggining of the script. Right?

Yes.  Or just set mytime = 30000;  and cut the middle man.
08-28-2006 05:05 PM
Profile E-Mail PM Find Quote Report
Zeh
Full Member
***

Avatar
DC 4 EVER!

Posts: 136
Reputation: 1
35 / Male / –
Joined: Aug 2006
RE: [release] Who's online
Ok. Thkz. You really know your scripting well! Eheh.
[Image: Zeh.png][Image: x copy.jpg]
| Windows Live Messenger Beta Tester | Windows Live Mail Beta Tester |
08-28-2006 05:07 PM
Profile E-Mail PM Find Quote Report
Pages: (5): « First « 1 [ 2 ] 3 4 5 » Last »
« Next Oldest Return to Top Next Newest »


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