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:
Gareth_2007
Junior Member
**


Posts: 21
Joined: Mar 2007
O.P. script sleep command
im looking for a script wait command! any ideas? cheers
03-07-2007 01:09 AM
Profile E-Mail PM Find Quote Report
Voldemort
Veteran Member
*****

Avatar

Posts: 3504
Reputation: 49
– / – / Flag
Joined: Jul 2005
Status: Away
RE: script sleep command
Can you elaborate as to what a 'wait command' is?
*All posts are a purely speculative hypothesis based on abstract reasoning.
Not my daughter, you bitch!
[Image: ico-mollytrix16.gif]
03-07-2007 01:11 AM
Profile E-Mail PM Find Quote Report
Gareth_2007
Junior Member
**


Posts: 21
Joined: Mar 2007
O.P. RE: script sleep command
well i need to pause the code for a few second to let merlin finish what he is saying be for the action it completed

on java forums i have seen Thread.sleep(1000);  but that does not work :( any ideas? cheers
03-07-2007 01:12 AM
Profile E-Mail PM Find Quote Report
Dennis Mike
Junior Member
**

Avatar

Posts: 59
Reputation: 2
34 / Male / –
Joined: Jan 2007
RE: script sleep command
MsgPlus.AddTimer("time",1000)     
this is what you want?
03-07-2007 02:47 AM
Profile PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: script sleep command
code:
Interop.Call("Kernel32", "Sleep", 100);
That what you looking for?
03-07-2007 03:15 AM
Profile E-Mail PM Web Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: RE: script sleep command
quote:
Originally posted by Felu
code:
Interop.Call("Kernel32", "Sleep", 100);
That what you looking for?

100 or another value represents the milliseconds ;)
03-07-2007 05:16 AM
Profile E-Mail PM Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: script sleep command
quote:
Originally posted by Felu
code:
Interop.Call("Kernel32", "Sleep", 100);
That what you looking for?
never use that : <, it freezes messenger which is a evil thing to do, use timers instead
[Image: dt2.0v2.png]      Happy Birthday, WDZ
03-07-2007 06:07 AM
Profile PM Web Find Quote Report
Volv
Skinning Contest Winner
*****

Avatar

Posts: 1233
Reputation: 31
35 / Male / Flag
Joined: Oct 2004
RE: script sleep command
You should never use sleep in any program (not just scripts), including VB6 (which is probably where you got the idea from).
03-07-2007 08:31 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: script sleep command
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.


----------

As said before, never ever use a sleep command in code.

;)


---------

Here is a script I've made for someone. It was originally posted in another thread with much more detailed explanation, but unfortunatly the guy who requested this has removed that thread...

PS: there are also some other scripts on the forums which use MS Agent, so you could search for those too and take a look at them (search on "agent").

.plsc File Attachment: Merlin.plsc (2.93 KB)
This file has been downloaded 138 time(s).

This post was edited on 03-07-2007 at 11:01 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-07-2007 10:58 AM
Profile PM Find Quote Report
Gareth_2007
Junior Member
**


Posts: 21
Joined: Mar 2007
O.P. RE: script sleep command
just been looking at that merlin script! what does merlin do its not in english cheers
quote:
Originally posted by Felu
code:
Interop.Call("Kernel32", "Sleep", 100);
That what you looking for?



cheers that what i wanted
03-07-2007 12:57 PM
Profile E-Mail 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