[Tutor] 200 dollar questions!

elis aeris hunter92383 at gmail.com
Sun Jul 1 00:17:28 CEST 2007


http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=mo
use_event<http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=mouse_event>
http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=ke
ybd_event<http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=keybd_event>
http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=Ge
tFocus<http://search.msdn.microsoft.com/search/results.aspx?view=msdn&qu=GetFocus>


I am using pywin32, for python 2.5 on windows xp.


What I want to do is these:


handle = Gethandle ("window_name")

"window_name"   =  "123.txt"  with notepad, for example.

it should return a list if there are more than one with the same name.


and then



GainFocus(handle)

Keyboard_event ( "hello python!")
Mouse_event (x,y, left, 2)

the (x,y) = should be relative to the active window and independent of the
window's position.
2 as in clicking twice.


Last,  maximize, minimize, resize, move, kill,

above(handle)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070630/572d80c4/attachment.html 


More information about the Tutor mailing list