I am having problems with setting focus on a PGP decryption dialog box.
My code below works fine interactively on the client PC. However, it
does not set the focus when I schedule the VBScript on the server. I
would greatly appreciate any suggestion. Thank you.
'Process PGP decryption of GM/Fidelity enrollment file
Wscript.Sleep 9000 'Pause 9 seconds
PGP = WshShell.Run ("M:\ohw06027.elg.pgp")
'Send keystrokes to PGP active window
WScript.Sleep 6000 'Pause 6 seconds
WshShell.SendKeys "999999" 'Send passphrase keystrokes