Skip to content

OperaJM Remote UI

The OperaJM Remote UI exposes the running graphical interface over HTTP. An integration can capture the screen, inspect active areas, and send mouse or keyboard input. The browser control page uses the same interface.

Start the Remote UI

Launch wopera.exe with -remotegui <port> to expose the Remote UI endpoints on the specified port. For example, to use port 9002, run this in Command Prompt from the OperaJM installation directory.

wopera.exe -remotegui 9002

Open http://localhost:9002/ for the endpoint reference or http://localhost:9002/control for browser control. Use the host and port of the target OperaJM session. Requests to the mouse and keyboard endpoints act on that live session.

Endpoints

HTTP GET Result
/ Opens the server home page and endpoint reference.
/control Opens the browser control page.
/info Returns XML with the application and API versions, current language, screen dimensions, endpoint parameters, and supported key names.
/screen Waits until OperaJM is idle and returns a screen capture. The default is PNG. For JPEG, request /screen?format=jpg&quality=75.
/areas Returns XML for active screen areas, including types, IDs, and bounds where available.
/mouse?x=<x>&y=<y>&event=<event> Sends a click using pixel coordinates from the capture's top-left corner. The event is lclick, rclick, or cclick.
/keyboard?key=<key> Sends a supported key name, such as Enter, ESC, Left, or Right. Encode spaces and plus signs in key names, as in Page%20Down and Ctrl%2BEnter.

Inspect and control a session

  1. Read /info to identify the active build, interface language, screen size, and supported keys.
  2. Capture /screen and identify the current dialog, highlighted item, or focused control. Use /areas if you need control bounds. Base click coordinates on the original screenshot dimensions.
  3. Send one input, then call /screen again. OperaJM returns the next screenshot when it is idle. Use that screenshot to confirm the input's effect and choose the next action.
  4. If an input request times out, capture the current screen before retrying. A successful input response confirms that the server accepted the request. The screenshot shows the result in the application.

For example, with a menu that has a dropdown highlighted, press Enter to open it. Capture the result. Use Left or Right to move to an adjacent menu, then ESC to close the dropdown. Check the screen after each key.

Document the interface

For a menu inventory, record top-level menus from left to right and their entries from top to bottom. Preserve the displayed wording, language, and capitalization. Identify dimmed entries and menus with no dropdown.

For a function guide, record the menu path, window title, visible controls, and purpose. In the documented interface, green Add, red Delete, and purple Modify buttons identify a table-management screen. If a menu entry could run an operation immediately, describe it from the visible menu or status text and mark it as unopened. Record the OperaJM build and interface language so readers can reproduce the walkthrough.

Use the browser control page

Open /control and click the screen to capture the keyboard. Press Ctrl+Shift+Space to release it. The page maps clicks in the scaled display to the original screen coordinates. It polls every two seconds while idle. After accepted input, it refreshes immediately and polls at 300 ms intervals for up to one second.