Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
single instance run
#10
Quote:Probably it's the OnScreenDisplay problem in exe. Need to wait until OSD closed

Using the mes function still doesn't work  Huh
 
Code:
Copy      Help
if(GetLastError=ERROR_ALREADY_EXISTS) ;;another instance of your exe is running
,;possibly execute some code here
,;sub.osdTip ;;no work
,mes "running!" ;;no work
,ret ;;exit exe

I just want to make it so that when the EXE program is run again, a message pops up to inform the user that the program is already running.
For applications with a system tray icon, this feature is very useful.

If implementing this in QM is too complicated, please skip it. Maybe, at some point in the future, I'll find a solution.


Messages In This Thread
single instance run - by Davider - 06-12-2025, 01:39 AM
RE: single instance run - by Gintaras - 06-12-2025, 02:02 AM
RE: single instance run - by Davider - 06-12-2025, 02:34 AM
RE: single instance run - by Gintaras - 06-12-2025, 02:40 AM
RE: single instance run - by Davider - 06-12-2025, 06:41 AM
RE: single instance run - by Gintaras - 06-12-2025, 07:01 AM
RE: single instance run - by Davider - 06-12-2025, 10:58 AM
RE: single instance run - by Gintaras - 06-12-2025, 11:12 AM
RE: single instance run - by Gintaras - 06-12-2025, 11:20 AM
RE: single instance run - by Davider - 06-12-2025, 09:28 PM
RE: single instance run - by Gintaras - 06-13-2025, 02:03 AM
RE: single instance run - by Davider - 06-13-2025, 10:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)