--- In [email protected], "labica" <lab...@...> wrote:
>
> 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)
> 

Try this:

*Keys %d
wait.for (50)
*Clip Copy
wait.for (50)
result = clip.get

It works in Chrome and IE.

Jose

Reply via email to