Does Anybody Has a Solution for this

Reply

Join Date: Aug 2009
Posts: 75
Reputation: coollife is an unknown quantity at this point 
Solved Threads: 0
coollife coollife is offline Offline
Junior Poster in Training

Does Anybody Has a Solution for this

 
0
  #1
Oct 7th, 2009
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 .
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 6
Reputation: saphar is an unknown quantity at this point 
Solved Threads: 0
saphar saphar is offline Offline
Newbie Poster
 
0
  #2
Oct 7th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 57
Reputation: omoridi is an unknown quantity at this point 
Solved Threads: 8
omoridi omoridi is offline Offline
Junior Poster in Training
 
0
  #3
Oct 12th, 2009
u want close ie or when ie in google?
if you want close ie u must check prossecc not window
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 118
Reputation: marco93 is infamous around these parts marco93 is infamous around these parts marco93 is infamous around these parts 
Solved Threads: 12
marco93 marco93 is offline Offline
Junior Poster
 
-1
  #4
Oct 12th, 2009
Wrong method.
Official method is with COM
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC