I made some code. It works but too stupid.....
-------------------------------------------------------------------
@get_url
local k,han,result
result="can't find url"
han= win.handle("active")
for (i=0; i<20 and k<0; i=i+1)
k=find(win.childtextbyindex(han,i),"http")
if (k > -1) do
;;result=win.handlefromindex(han,i) ;; url's handle
result=win.childtextbyindex(han,i) ;; url
endif
endfor
quit(result)
--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> --- In [email protected], "labica" <labica@> wrote:
> >
> > How can I get Google Chrome's Url??????
> >
>
> Set focus on Google and send keystrokes to focus the address bar and copy its
> contents to the clipboard. Ctrl+L focuses the address bar.
>
> Probably can be done without the clipboard with COM plugin and Accessibility
> interface properties.
>
> Regards,
> Sheri
>