I've got a doozy here: I have a customer who uses a Java applet that connects to a remote AS400 terminal, and provides a full emulation of that terminal to the viewer. (it's called OC://WebConnect). The thing they are hoping I can do is create some scripts that will automate certain activities in that terminal. I am not able to contact the actual AS400 terminal directly. The Java applet handles that through an encrypted TCP/IP session. All I want to do is find a way to control the Java applet through client-side VBScript, or whatever means possible. I know that VBScript is sometimes used to open windows and make things happen through WSH, but I don't have any real experience with that. (I understand there is a "SendKeys" behavior, or something like that.)
The AS400 system itself is on a server owned by another, much bigger company, and there is no way at present to ask them to provide any server-side modification and assistance, so I am left trying to solve this client-side.
The Java window is spawned from an Internet Explorer session, but it instantly pops up a separate Java window which only contains the terminal, and some standard application controls, such as File, Edit, etc... I am hoping, through some combination of WSH/COM/VBscript, to come up with a way to control that terminal, and handle the range of keystroke activities the user would normally do by hand.
Is this at all possible? Can anyone at least point me in the right direction for this? Any simple examples of controlling windows and menus from .VBS files, etc... Any keystroke emulation routines? All I want is to emulate what the user would do on the actual desktop.