I have a customer with an old AS/400 terminal emulation. They have a program that will run a script in the emulator with parameters passed through. For instance, if you call the emulator like this:
In what context are they trying to use this program? If they want to use it in an IVR then AFAIK they have to wrap it in a web service and call it from a Data Action or Bridge action. I have never heard of a way to call out to a program from any of our client applications, but I am not as familiar with them to be certain.
There isn't any way for PureCloud to invoke a desktop app out of the box. This is an inherent limitation of running inside of a web browser. You'll need to write a desktop app to perform the pop. One way to do that would be a desktop app that lives in the system tray that listens for the appropriate notifications for the agent and invokes the process you want based on those notifications.
Basically, trying to do a screen pop to a local software program that accepts DDE-type input. I can pop using a batch file, but need it to be in a PureCloud script.
Our approach to a similar problem was to write a Chrome extension that used native messaging to communicate with a desktop application without UI that served as a bridge to an emulator. The extension was listening to PureCloud notifications.
Unfortunately this is subject of intellectual property. Anyway the extension is very specialized but the general idea is as follows.
User interaction is limited to Browser Action i.e. users can only click the extension icon. The actual behavior depends on the extension state.
Initial click opens the PureCloud login page in a separate tab and starts the native bridge to emulator.
Consecutive click ensures the PureCloud tab is open and the native bridge is connected.
The extension receives notifications from the following topics.
v2.users.{userId}.presence to get notifications on user status change; this topic needs subscription
v2.users.{userId}.conversations to get notifications on call state changes; this topic needs subscription
channel.metadata to receive WebSocket heartbeat notifications; this topic does not need subscription
Depending on notifications the extension passes through some data to the emulator.