Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if an application is running
Message
De
15/05/2003 09:47:22
 
 
À
15/05/2003 06:55:07
Joao Godinho
Fredesenvolv, Lda
Lisbon, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00788593
Message ID:
00788676
Vues:
18
	IF CheckWin('App window title')    &&window title
	   MESSAGEBOX('The app is already running',48+4096)
	   RETURN .F.
	ENDIF


	FUNCTION CheckWin
	PARAMETER tcTitle

	* Routine which sees if an application is active by looking for its
	* Window title
	* expC1 Window title

	DECLARE INTEGER FindWindow in Win32API as FindWindow STRING, STRING

	RETURN IIF(FindWindow(0,tcTitle)>0,.T.,.F.)
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform