Re: 200 dollar questions!
2007-06-30 23:14:49 GMT
"elis aeris" <hunter92383 <at> gmail.com> wrote
> I am using pywin32, for python 2.5 on windows xp.
> What I want to do is these:
>
> handle = Gethandle ("window_name")
Try FindWindow(), it returns a handle given a class/window title
> "window_name" = "123.txt" with notepad, for example.
That looks like the title to me...
> it should return a list if there are more than one with the same
> name.
Nope, it only returns one, but enumWindows will give you a list
(or more accurately will yield a list if called repeatedly)
> GainFocus(handle)
I think you need SetFocus() here
> 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.
(Continue reading)
RSS Feed