| Doug Benson |
I have a script that is supposed to launch an application, wait 60 seconds to insure that the window will be up and ready for input, make sure it’s the active window, then pass through Username, input a Tab, Password, then input an Enter to complete the process. It will not recognize the TAB and ENTER special sequences and smooshes the username and password together w/o a tab, and doesn’t do the enter. I’ve tested this with two different Citrix-driven applications and both of them do not recognize the sequences. I’ve also tried this on three different machines: all running Windows XP Pro. w/ SP2 - as I know that VB behavior can vary, even among the same OS version from past experience. I’m not VBscript guru by any stretch, so a “proper” or better way to accomplish this same task would be great.
I can use the same exact script below (outside of the app it runs and AppActivate sequence of course!) to open up a locally installed version of notepad.exe and it utilizes the TAB and ENTER sequences just fine.
VBscript code is as follows:
~~~~~~~~
Set WshShell = WScript.CreateObject(”WScript.Shell”)
WshShell.Run “\\chcnas\apps\Epic\Hyperspace.ica“
WScript.Sleep 60000
WshShell.AppActivate “Hyperspace - Wausau Production Environment“
WshShell.SendKeys “abcde” + “{TAB}” + “123456″ + “{ENTER}”
~~~~~~~~ |