PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
use sleep in vbscript for customized Outlook form
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
use sleep in vbscript for customized Outlook form
![]() |
use sleep in vbscript for customized Outlook form |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

