xiaop...@gmail wrote:

>     if ((handlex !="")&& win.ontop(handlex)) do
>         *Keys {to handlex} {ad}
>         ;win.keys("{ad}")
>     endif
> 

handlex is the name of a variable that holds the target window handle.
Try one of

do("keys {to "++handlex++"}{ad}")

win.keys("{to "++handlex++"}{ad}")

Reply via email to