PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming use sleep in vbscript for customized Outlook form

Reply

use sleep in vbscript for customized Outlook form

 
Thread Tools Rate Thread
Old 05-12-2007, 01:58 PM   #1
shubhangi
Guest
 
Posts: n/a
Default use sleep in vbscript for customized Outlook form


hi
I need to use sleep() in vbscript for customized outlook form code.I've
Outlook 2003 on WinXp.It seems that with Wscript version 5.6 Wscript.Sleep
doesn't work.Is there any other way to accomplish this?(Instead of getting
current time,adding sleep period to that & looping)
Thanks


  Reply With Quote
Old 05-12-2007, 02:38 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: use sleep in vbscript for customized Outlook form

Where do you see a Sleep() method in scripting? Sleep() is a Win32 API call
as far as I know and you can't use Win32 API calls from VBScript code. A
loop or use of a 3rd party timer control that you test to make sure it's
compatible with a custom form are your options with VBScript which is what
you have to use with custom form code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"shubhangi" <shubhangi@implicitweb.com> wrote in message
news:%23u0o1b0NIHA.5860@TK2MSFTNGP04.phx.gbl...
> hi
> I need to use sleep() in vbscript for customized outlook form code.I've
> Outlook 2003 on WinXp.It seems that with Wscript version 5.6 Wscript.Sleep
> doesn't work.Is there any other way to accomplish this?(Instead of getting
> current time,adding sleep period to that & looping)
> Thanks
>



  Reply With Quote
Old 05-12-2007, 05:58 PM   #3
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: use sleep in vbscript for customized Outlook form

Also, why would you ever want to use sleep on the main (or any other)
thread?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:O5Skpz0NIHA.4912@TK2MSFTNGP06.phx.gbl...
> Where do you see a Sleep() method in scripting? Sleep() is a Win32 API
> call as far as I know and you can't use Win32 API calls from VBScript
> code. A loop or use of a 3rd party timer control that you test to make
> sure it's compatible with a custom form are your options with VBScript
> which is what you have to use with custom form code.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "shubhangi" <shubhangi@implicitweb.com> wrote in message
> news:%23u0o1b0NIHA.5860@TK2MSFTNGP04.phx.gbl...
>> hi
>> I need to use sleep() in vbscript for customized outlook form code.I've
>> Outlook 2003 on WinXp.It seems that with Wscript version 5.6
>> Wscript.Sleep doesn't work.Is there any other way to accomplish
>> this?(Instead of getting current time,adding sleep period to that &
>> looping)
>> Thanks
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off