944,033 Members | Top Members by Rank

Ad:
Oct 7th, 2009
0

Does Anybody Has a Solution for this

Expand Post »
dim hwnd as long

I am using FindWindow function to find whether Internet Explorer is open or not .

hwnd = FindWindow(vbnullstring,"Google - Microsoft Internet Explorer")

the problem is it easily find most of the windows , but in few cases for example if i type something in google search and if i navigate to any of the resulting page then if i call the hwnd function its unable to find it .

My Question Is i cannot go on giving different string like

"Google - Microsoft Internet Explorer"
"search engine - Google Search - Microsoft Internet Explorer"

so is there a way to to give something which finds all opened IE whatever the toolbar text it has .
Similar Threads
Reputation Points: 6
Solved Threads: 0
Junior Poster in Training
coollife is offline Offline
85 posts
since Aug 2009
Oct 7th, 2009
0
Re: Does Anybody Has a Solution for this
i assume your task is to find whether an instance of IE is open or not.
In that case you can loop thro the current processes that is running in your system and look for process named "iexplore.exe". This is the exe that says your system is running an IE or not
Reputation Points: 10
Solved Threads: 0
Newbie Poster
saphar is offline Offline
6 posts
since Mar 2009
Oct 12th, 2009
0
Re: Does Anybody Has a Solution for this
u want close ie or when ie in google?
if you want close ie u must check prossecc not window
Reputation Points: 10
Solved Threads: 10
Junior Poster in Training
omoridi is offline Offline
72 posts
since Sep 2009
Oct 12th, 2009
-1
Re: Does Anybody Has a Solution for this
Wrong method.
Official method is with COM
Reputation Points: -76
Solved Threads: 14
Junior Poster
marco93 is offline Offline
132 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Printing an ADO recordset into Excel
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Compare 2 text file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC