Shoutbox

Using/setting time in script - 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: Using/setting time in script (/showthread.php?tid=66338)

Using/setting time in script by CrAzY_KeBaB on 09-16-2006 at 09:25 PM

How would i go about setting the time according to that users computer in a script? I wan't to make a practice script that simply continuosly updates the time in the P.M. How do i go about doing this.

NOTE: I am a C++ programmer, so please don't assume i can't build it, i just need to know the commands and how to continuously update it without using too many resources from a sustained while(1) loop.


RE: Using/setting time in script by Huhu_Manix on 09-16-2006 at 09:41 PM

Tadaaaa !

code:
function OnEvent_Initialize(MessengerStart){
MsgPlus.AddTimer("name", 1000); // 1 second
}

function OnEvent_Timer(id){
if(id=="name"){
   // ...
   MsgPlus.AddTimer("name", 1000);
}
}

RE: Using/setting time in script by CrAzY_KeBaB on 09-16-2006 at 10:03 PM

Thanks.