What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » script sleep command

Pages: (2): « First « 1 [ 2 ] Last »
script sleep command
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: RE: script sleep command
quote:
Originally posted by Gareth_2007
quote:
Originally posted by Felu
code:
Interop.Call("Kernel32", "Sleep", 100);
That what you looking for?

cheers that what i wanted

I'm sorry but that is not what you wanted... please do not ever use that...

It will effectivly halt everything on Messenger, not just your script. See all the posts above...
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 03:31 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: script sleep command
The best thing you could do is to use the MsgPlus timers, which was also mentioned earlier in this thread (therefore, always read the whole topic ;)). An example would look like this:
code:
function OnEvent_SignIn(Email) {
   if(Email == "someone@hotmail.com") {
      MsgPlus.DisplayToast("Welcome", "Hello there!");
      MsgPlus.AddTimer("SignIn_Sleep", 1000); //1000 milliseconds = 1 second
   }
}

function OnEvent_Timer(TimerId) {
   if(TimerId == "SignIn_Sleep") {
      MsgPlus.DisplayToast("Welcome", "How are you today?");
   }
}
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
03-07-2007 05:33 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: script sleep command
quote:
Originally posted by Mattike
The best thing you could do is to use the MsgPlus timers, which was also mentioned earlier in this thread (therefore, always read the whole topic ;)).
Actually no, the best thing todo is use the already available properties and methods for the MS Agent object. With those you can control everything, including a delay and/or waiting until something is finished, etc.

quote:
Originally posted by CookieRevised
Also, there are especially commands and methods to instructs MS Agent to wait and do other stuff.

http://msdn.microsoft.com/library/default.asp?url...pacontrol_7qng.asp

Also, if you use the speak commad, it already should say the entire text before it does anything else.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 05:38 PM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] 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