Overview: wrapper.single_invocation.notify Properties |
||||||||||||||||||||||||||||
When single invocation is enabled, the Wrapper will check that there is no other instance running with the same value of the wrapper. Starting from version 3.5.28, it is possible to give the focus to a window of the running application instead of showing the error message. This will work out of the box without any additional coding. Another solution offers more flexibility by allowing you to execute custom actions in response to the second invocation. If your application has several windows, you will be able to select exactly which one to show up. You may also want to trigger completely different actions like showing a custom message or sending a notification by email. This solution is based on event handling and requires some coding.
NOTEThese new features require that the second instance of the Wrapper be launched from the same user as (or a user with higher privileges than) the first instance. If the first instance is running as a service, unless it is interactive, it is not able to display a GUI. It is thus not possible to give the focus to any window, but a second instance with enough privileges will still be able to trigger different actions as long as they don't involve the GUI. Starting with Windows Vista and Server 2008, a service is not allowed to interact with the user's desktop. In this case, the service will not be able to give focus to a desktop application.
|
Reference: Single Invocation |
|