Here’s the scenario:
I have an Applet that fires on the Send event and executes a control dialog. When a user clicks a button on this dialog, it launches a third party Shell application object. This application retrieves a string from the user and copies it to the clipboard. When the application exits, the Applet auto-pastes it from the clipboard.
Here’s the problem:
The Applet dialog window hides itself when the shell application is launched and it doesn’t return until the application exits. However, users who tab back to the message view while the application is still running are able to click SEND, which results in GW freezing (the Applet is still waiting for the application to close before it can continue running the script).
OPTION 1: How can I keep the applet dialog window from hiding whenever the shell application is launched? If I launch the shell asynchronously, I can still see the applet window, but then the auto-paste feature doesn’t work because the Applet pastes from the clipboard before the application has a chance to copy to it.
OPTION 2: Can I launch the shell from a second Applet chained to the first one? And can I do this asynchronously from a button-click, so that I can see both Applet views? This would indirectly prevent users from tabbing back to the message view clicking SEND.
Note: Having the users manually paste the string from the clipboard is not an option.
Any ideas on how I can make this work?
- You must be logged in to reply to this topic.