Please enable JavaScript to view this site.

ESL Documentation

Navigation: ESL Documentation > ESL 3270 Support > ECS Subroutines

Controlling the Emulator Window

Scroll Prev Top Next More

There may be times when you may need to go in and out of the emulator window easily. For instance, if the ECS code was not programmed for a particular session, you can interact with the screen directly in the emulator. The following subroutines provided by ESL interact with the emulator window:

EcsSetEmulatorWindow

EcsSetEmulatorWindow allows you to control the appearance and characteristics of an emulator window. Through the use of status flags, you can alter the visibility, focus, and minimization/maximization of the emulator window. Also, you can utilize certain combinations of various status flags.

EcsEmulate

EcsEmulate causes the emulator to become the active window enabling you to "hot key" to the emulator without entering commands. Once the emulator window is brought to the foreground, the window remains in control until you minimize the window. Since the emulator window is not modal, you can select your ESL application and bring it to the foreground, leaving the emulator in the background and maximized. However, the emulator window remains in control. You cannot use your application until you minimize the emulator window.

EcsEmulateAndWatch

EcsEmulateAndWatch brings the emulator window to the foreground until it encounters a known screen. When a specified screen is encountered, ESL causes the emulator to relinquish control to the ESL program.  You must define which screens cause ESL to regain control by creating a screen ID file.

In order for these subroutines to work properly make sure that you meet the 3270/5250 configuration requirements.