Thread: pause in script
View Single Post
  #5  
Old February 27th 06, 07:28 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default pause in script

Am Sun, 26 Feb 2006 19:46:04 GMT schrieb Joel Allen:

Then thatīs VBScript and you canīt use Win32 API calls as Ken mentioned.

The WSH has a sleep method that you can use.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


I am in the Script Editor of my custom task form. Not sure if thats VB
script or not.

Thanks,
Joel

"Michael Bednarek" wrote in message
...
On Fri, 24 Feb 2006 09:46:19 -0500, Ken Slovak - [MVP - Outlook] wrote
in microsoft.public.outlook.program_vba:

Although if this is truly script code (VBScript) none of the Win32 API
calls
can be used.


I pondered that, too. But the name of this newsgroup is
microsoft.public.outlook.program_vba and the original message wasn't
crossposted, so I thought it might help.

"Michael Bednarek" wrote in message
...
On Thu, 23 Feb 2006 07:38:11 -0800, Joel Allen wrote in
microsoft.public.outlook.program_vba:

I just want to add a 5 second pause in my script. Can someone point me
to
some sample code - I couldn't find the command?

This is what I use:
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
and then
Sleep 5000 ' Sleep 5 seconds


--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"

Ads