My Windows VBScript opens an InternetExplorer.Application object, and runs through some navigation. At one point the page I'm working with displays a dialog box in which I must click "OK" or "Cancel." Is there a way to tell the VBScript to click "OK" when the dialog box pops up?
views:
221answers:
1
+1
A:
VBScript isn't very good at dealing with GUI functions, at least, it is not even remotely close to something like AutoIT; anyway, that said there is a sendkeys function in VBScript, but the problem is that you can't do an "on event" type of call, you basically have to use a timer, so it really isn't a good solution, but as far as I know it's all you've got, at least natively to VBS.
So maybe you could kick off your IE object, then throw in a wait timer and then sendkeys. WAY hokey... but it could work.
unrealtrip
2010-05-10 21:14:27