Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect if IE is running ?
Message
 
To
16/08/2003 08:41:28
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00820736
Message ID:
00820754
Views:
23
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 ?
Previous
Reply
Map
View

Click here to load this message in the networking platform