Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » How to check whether application is running
Re: How to check whether application is running [message #38781 is a reply to message #38778] Wed, 16 January 2013 21:32 Go to previous message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi all,

I use the following code using SysInfo package:


bool QSkillsWin::IsSingleInstance()
{
    if(GetWindowIdFromCaption(GetTitle().ToString())>0)return true;
	  else return false;
}

GUI_APP_MAIN
{
	SetLanguage(GetSystemLNG());
	SetLNGCharset(GetSystemLNG(),CHARSET_UTF8);
	
	if(QSkillsWin().IsSingleInstance())
	{
		Exclamation("[=*A4@5 "+DeQtfLf(t_("QSkills s'exécute déjà !"))+"]");
		return;
	}
	 else QSkillsWin().Run();
}



hope this could be helpful

Cheers

Biobytes

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TopWindow minimum size
Next Topic: Timeout on PromptYesNo?
Goto Forum:
  


Current Time: Wed May 08 19:49:38 CEST 2024

Total time taken to generate the page: 0.02527 seconds