vb.net - Check for already open browser and URL -


is there way check open browser windows specific url's in vb.net process.start not open new browser windows? example, if have pinterest open, want send new search open window textbox.

my code opens new window every time:

system.diagnostics.process.start("iexplore.exe", "https://www.pinterest.com/search/pins/?q=" & net.webutility.urlencode(textbox1.text)) 

this snippet should you.

it browse through windows explorer's windows internet explorer instances contain search query (squery) , asks user enter search query.

the used reference found @ (%windir%\system32\shdocvw.dll)

sub main()         dim shellwins shdocvw.shellwindows         dim explorer shdocvw.internetexplorer          shellwins = new shdocvw.shellwindows         dim squery string = "https://www.pinterest.com/search/pins/?q="         each explorer in shellwins             if explorer.application.name = "internet explorer" , explorer.locationurl.contains(squery)                 explorer.navigate(squery & inputbox("pinterest", "", nothing, nothing))             end if         next          shellwins = nothing         explorer = nothing     end sub 

enter image description here


Comments