Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect if IE is running ?
Message
 
À
16/08/2003 08:41:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00820736
Message ID:
00820754
Vues:
24
Kouakou,

Here is a function that will determine if there are any instances of Internet Explorer running on a computer. One caveat, however, is that certain other applications, including windows explorer in Windows XP will use IE embedded for functionality, display, etc... without any actual IE windows being visible. Hope this functions helps.
FUNCTION IsIeRunning

	LOCAL llError, loObject, lcOnError, llIeRunning

	llIeRunning = .t.
	llError = .f.
	lcOnError = ON('error')

	ON ERROR llError = .t.

	loObject = GETOBJECT(,"internetexplorer.application")

	IF llError
		llIeRunning = .f.
	ENDIF

	ON ERROR &lcOnError

	RELEASE loObject

	RETURN llIeRunning
	
ENDFUNC
regards,

JE

>how to detect if internet is running ?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform