Quick question on FinalBuilder vbscript

I have a simple question. I need a simple VBScript that presses the button for me automatically. When a windows message is prompted from the action, I need to use VBScript to click the OK button for me automatically. I was thinking to put it under AfterAction. Does anyone know how to write it? I searched in Google, no useful info found there. Thanks a lot!

Hi Eric,

I don’t think this can be done with VBScript.

.t8

You might be able to achieve it using the SENDKEYS() method of the WshShell object.

Thank you very much for the response. If it can’t be done with vbscript, is there any action type I can use to achieve it?

Hi Ken,

Thanks a lot for the answer. Would you please be more specific? I never used WshShell before. Are there any prerequisites, like environment setup before I can use it?

Got it! Thanks guys. SendKeys() works. I appreciate your help!