The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: xPL cm11 Service


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: Making xPLHal scripts sleep


  • Subject: RE: Making xPLHal scripts sleep
  • From: John B
  • Date: Tue, 20 May 2003 07:25:00 +0000

> One way would be to grab the time, add 30 secs, loop until time
reached.

True, but I don't want to waste any CPU time by having the script
constantly
looping checking the time.

> As far as I know sleeping should be fine, other scripts will continue
to
> run.

Cool.

> <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht";>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht</a>
> ml/vtorifunctions.asp
>
> Is useful for vbscript functions.

WScript.Sleep(period) works in VBScript files, but not inside xPLHal - I
suspect
the WScript object doesn't exist in xPLHal.

> Or I can add a sys.sleep(<seconds>) function, if that would be
better?

That's looking like the best approach, thanks.

Regards,

John






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.