How to send a compsite key to window

Gabriel Genellina gagsl-py2 at
Mon May 25 04:03:20 EDT 2009

En Thu, 21 May 2009 09:38:26 -0300, zhouhaifeng <mypromise at>

> just like "ctrl + A",
> I want to select all the text in a window, now , I operate right menu to
> get it, but it can not work all the time.
> so I want to send "ctrl + a" to the window

I'd do it in a different way: asuming it is an edit control, send the
control an EM_SETSEL message with start=0, end=-1.

Gabriel Genellina

More information about the Python-list mailing list