tags:

views:

376

answers:

2

How to automatically answer yes in a dialog box in VB script ?

+1  A: 

The best way to do it is to use AutoIt instead (or something similar). VBScript does not provide the way to do this natively.

EBGreen
+1  A: 

SendKeys might do what you want:
http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx

gkrogers
Ehh...very hit or miss in my experience, but you are right that it is as close as vbscript comes.
EBGreen