How to get Google All url's from Google Chrome using C# -
how can url's google chrome. example if there 2 different instance running on computer , each instance contain multiple url's. how can list of all.right can 1 active url tab.
automationelement elm = automationelement.fromhandle(p.mainwindowhandle); automationelement elmurlbar = null; elmurlbar = elm.findfirst(treescope.descendants, new propertycondition(automationelement.nameproperty, "adresse und suchleiste")); if (elmurlbar != null) { automationpattern[] patterns = elmurlbar.getsupportedpatterns(); if (patterns.length > 0) { valuepattern val = (valuepattern)elmurlbar.getcurrentpattern(patterns[0]); } }
is possible url's.source code should c# compatible. i'm not native english speaker. did best ask question. please don't mark negative.
Comments
Post a Comment