How to send a compsite key to window
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon May 25 04:03:20 EDT 2009
En Thu, 21 May 2009 09:38:26 -0300, zhouhaifeng <mypromise at sina.com>
escribió:
> 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.
http://msdn.microsoft.com/en-us/library/bb761661(VS.85).aspx
--
Gabriel Genellina
More information about the Python-list
mailing list