- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
WScript.Sl eep Method
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-21-2011 01:57 PM
What is the correct syntax for calling Wscript.Sleep?
This works fine outside of MAS:
WScript.Sleep 500
But it throws an error when inside of a MAS script. It says "Invalid/unknown property name". It doesn't like the WScript token.
I guess I have to create an object first, but what object do I create?
Thanks.
Re: WScript.Sl eep Method
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-21-2011 02:42 PM
I've done this by calling another script. One could loop on a timer, but that burns CPU. I would also like to know if anyone else has done this in the initial script file.
Re: WScript.Sl eep Method
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-24-2011 06:48 AM
That did work, calling another script, this one calling WScript.Sleep...
Set objShell = CreateObject("WScript.Shell")
objShell.run "C:\MAS90V4\4.4\MAS90\CM\Script\Sleep.vbs", 1, true
The Sleep.vbs script contains one line, which looks like...
WScript.Sleep 500
Doing it this way seems kind of silly though.
If anyone knows of a way to get their script to sleep directly, when the script is running in the context of a UDS, it would be great if you could share it.
Thanks.
Aaron


