- 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: (/showthread.php?tid=61758)
by Zayl on 06-27-2006 at 04:43 PM
Hello, I'm searching scripts/plug-ins to do this, or maybe somedy can do these things :
- Imitate
- Show de video played in the personal msg (with a little icon "vidéo" that replaces the headspeakers
- Show the uptime (how many hours, minutes, secondes you computer is on) in the personal msg
- I'll try to explain it cause I don't know the word for, you know when you have a special event, you put in your nickname or personal msg : J-2 I go to Canada (in French), that means "2 days before I go to Canada", well if we could have something that show how many hours, minute left before the special event comes ( "In Live"). Configuring it before
- Something to show what game you are playing (with steam), it was possible on MSN Messenger with the "Xfire plugin" for MsgPlus but now we have MP!L and it does no accept plugings but scripts...
Thks for your replies
Zayl
by Zayl on 06-27-2006 at 08:43 PM
A little up !
by upsfeup on 06-27-2006 at 08:55 PM
Humm some considerations:
- Imitate
Someone is already trying to do this. Search for the thread.
- Show de video played in the personal msg (with a little icon "vidéo" that replaces the headspeakers
I don't think that this can be done with the script engine. There is no access to the text/icon displayed. It's read-only as far I could tell.
- Show the uptime (how many hours, minutes, secondes you computer is on) in the personal msg
This migh be doable.. maybe with a function call to get the uptime. But i think It my to much CPU intensive to update it every second. I would have to search a tad more!
-The Very Long one
Like a countdown timer. Again might be doable. Same thing as point above.
-Game playing
I have no idea....
by JonnyT on 06-27-2006 at 09:02 PM
for uptime you could use this:
code: /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <darktempler@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with my code. If we meet some day, and you think
* this code is worth it, you can buy me a beer in return - Matt Labrum (-dt-)
* ----------------------------------------------------------------------------
*/
function getUptime(){
var uptime = wmi('Win32_OperatingSystem').LastBootUpTime;
var start = dateTimetoRealTime(uptime).getTime();
var now = new Date().getTime();
var secs = Math.round((now - start) / 1000);
var st = '';
var days = removeDec(secs / 86400);
if(days >= 1){
if(days == 1){
st += days + ' day ';
}else{
st += days + ' days ';
}
secs = secs - (days * 86400);
}
var hours = removeDec(secs / 3600);
if(hours >= 1){
if(hours == 1){
st += hours + ' hour ';
}else{
st += hours-1 + ' hours ';
}
secs = secs - (hours * 3600)
}
var mins = removeDec(secs / 60);
if(mins >= 1){
if(mins == 1){
st += mins + ' minute ';
}else{
st += mins + ' minutes ';
}
secs = secs - (mins * 60);
}
st += 'and ' + secs + ' seconds'
return st;
}
by deAd on 06-27-2006 at 09:04 PM
quote: Originally posted by upsfeup
- Show de video played in the personal msg (with a little icon "vidéo" that replaces the headspeakers
I don't think that this can be done with the script engine. There is no access to the text/icon displayed. It's read-only as far I could tell.
There isn't a video icon anyways. You'd just set the standard psm to the video name and a in front.
quote: - Show the uptime (how many hours, minutes, secondes you computer is on) in the personal msg
This migh be doable.. maybe with a function call to get the uptime. But i think It my to much CPU intensive to update it every second. I would have to search a tad more!
the Computer Details script has uptime, put it on a timer for one minute. Most likely WLM will not be able to connect to the servers and update it every second anyways.
quote: -The Very Long one
Like a countdown timer. Again might be doable. Same thing as point above.
Done already...but not sure where to get it
by upsfeup on 06-27-2006 at 09:35 PM
I'm currently working on the uptime... maybe a few more minutes...
by upsfeup on 06-28-2006 at 03:49 AM
Ok! This is stupid.. but I accidentely deleted the files while putting them on plsc file
Is 5 am and no undelete program can recover them! I'm going to sleep!
by Tartooob on 06-28-2006 at 06:08 AM
quote: Originally posted by JonnyT
for uptime you could use this:
code: /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <darktempler@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with my code. If we meet some day, and you think
* this code is worth it, you can buy me a beer in return - Matt Labrum (-dt-)
* ----------------------------------------------------------------------------
*/
function getUptime(){
var uptime = wmi('Win32_OperatingSystem').LastBootUpTime;
var start = dateTimetoRealTime(uptime).getTime();
var now = new Date().getTime();
var secs = Math.round((now - start) / 1000);
var st = '';
var days = removeDec(secs / 86400);
if(days >= 1){
if(days == 1){
st += days + ' day ';
}else{
st += days + ' days ';
}
secs = secs - (days * 86400);
}
var hours = removeDec(secs / 3600);
if(hours >= 1){
if(hours == 1){
st += hours + ' hour ';
}else{
st += hours-1 + ' hours ';
}
secs = secs - (hours * 3600)
}
var mins = removeDec(secs / 60);
if(mins >= 1){
if(mins == 1){
st += mins + ' minute ';
}else{
st += mins + ' minutes ';
}
secs = secs - (mins * 60);
}
st += 'and ' + secs + ' seconds'
return st;
}
How to use this exactly ? Can you make a script please.
by Mr. Bougo on 06-28-2006 at 06:11 AM
The script already exists...
http://shoutbox.menthix.net/showthread.php?tid=61024
by Zayl on 06-28-2006 at 09:19 AM
Nooo! You don't understand !!
I said :
quote: Originally posted by Zayl
Show the uptime (how many hours, minutes, secondes you computer is on) in the personal msg
=> IN YOUR PERSONAL MSG !!
by upsfeup on 06-28-2006 at 04:39 PM
As anyone picked the uptime in psm thingy? I don't know if i have the the pacience to do it again after yesterday accident.
|