SyMenu Forum

SyMenu

 

HomeGeneral discussion & questions

Talk about SyMenu or post suggestions, requests, or how-to questions

'One Instance Only' behavior Messages in this topic - RSS

pgeo2000
pgeo2000
Posts: 1


16/05/2012
pgeo2000
pgeo2000
Posts: 1
Hello,
I just found SyMenu and it looks great so far!
However, I have one question - if 'One Instance Only' is checked and you try to start the application the second time, an error is shown - which I find not very useful. Wouldn't it be better to just switch to that application instead, without any error message ? In this case, you could start/switch to that application faster and easier.
Thank you.
link
Gianluca
Gianluca
Administrator
Posts: 1274


16/05/2012
Gianluca
Gianluca
Administrator
Posts: 1274
It is a really difficult thing.
Consider that every application starts at least one process and this makes possible to check if it is already started, but only some application works with an active window.
Think about to SyMenu for example. During its activity SyMenu sleeps on your task bar and pop up when you call it.
In case similar to this I should call the application to try to put in foreground its main windows but what if I can't find one... And this is only an problem but there are others.

SyMenu to accomplish "the one instance only" feature currently works checking the process list and trying to find a process originated from the executable file your are trying to launch.
Consider that this method is not 100% safe because there are some programs that uses an executable file to launch another one (some portable programs for example). In this case SyMenu can't check the existence of the process and relaunches the program again.
link



UGMFree © 2002-2024
PayPal BTC TON