I am attempting to not allow multiple instances of the client to run at the same time. I have a shortcut on the Windows desktop that users LOVE to press. This then opens multiple versions of the client, thus creating multiple reports, database entries, etc…
I have tried the following in the STARTUP Global Script:
isClientRunning = fpmi.system.getSystemFlags() & fpmi.system.CLIENT_FLAG if isClientRunning: if fpmi.gui.errorBox("Application is Already Active"): fpmi.system.exit()
I do want to inform the pesky button pusher that there is a reason that the application is not maximised infront of them. I can use just the fpmi.system.exit and that works fine, however I would like to have an error/warning/messagebox inform the operator that this instance will close.
Is there a way to capture the “OK” from fpmi.gui.errorBox?
Is there a better method to accomplish this task.
Also, I do have autologon enabled, so the application will start automatically.