Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tough One: VBScript for keystroke emulation on a Java applet

Status
Not open for further replies.

rycamor

Programmer
Jun 3, 1999
1,426
US
Hi all,

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.

The terminal 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. I am hoping, through some combination of WSH/COM/VBscript, to come up with a way to control that terminal.

Part II: things might be moving into the realm of the possible --

The terminal itself has several mouse-activated menus, and one of them allows the user to record a macro and then play that macro back. The only problem is that there is no way to save that macro between sessions (It's supposed to be done server-side, embedded in the applet parameters). If I were to be able to write a script that would open the macro menu, and actually input the text of the macro, then from there run the macro as many times as the user wants, that would be great.

Failing that, I am hoping there is a way to control that window itself with VBScript, and handle the whole range of keystroke activities the user would normally do by hand.

Can anyone point me in the right direction for this? Any simple examples of controlling windows from .VBS files, etc... Any keystroke emulation routines?

All suggestions appreciated, Thanx
 
rycamor,

I'm not familiar with AS400 terminals. Does the AS400 terminal understand HTTP protocol? If so, you should be able to use HTTP syntax to access the AS400.

How is IE access that terminal?


Fengshui1998
 
I guess I need to explain a little more: I am not able to contact the actual AS400 terminal. 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.

But the main fact is, I am not at all concerned with AS400 terminal protocols, etc... since that is handled by Java. All I want is to emulate what the user would do on the actual desktop.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top