On Mon, Sep 13, 2010 at 4:02 PM, Michel Claveau - MVP
<enleverlesx_xx...@xmclavxeaux.com.invalid> wrote:
> Re!
>
> Sorry for time, but I am very busy...
>
>
> With Python + Pywin32, you can force the activation of a window (before
> send some keys...)
> See:
>  win32gui.SetForegroundWindow(w_handle)
>
> or
>  win32gui.SetActiveWindow(w_handle)
>
>
>
> For to find a windows (and his handle), see:
>  win32gui.EnumWindows()
>  win32gui.GetWindowTex()
> or
>  win32gui.FindWindowEx()

Thanks! I have found a simple workaround: sending Alt+Tab to R
Console. Tomorrow I will test your solution. I can't do it right now
because I don't have a real machine running Windows here.

Best regards,

Jakson
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to