Presentations


Presentations

 

Boston-PIG / Python Meetup March 9th 2006

 

I gave my first presentation on pywinauto at this meeting. It went reasonably well I think even though most people seemed to be *NIX people :-) (and thus pywinauto is of little use to them).

 

Here is the presentation (saved from Powerpoint)

 

Discussions on pywinauto at the meeting

 

There is currently only two groups of methods that are insecure in this way TypeKeys() - because it just types to the active window (though it does set it to the correct window when it starts typing - so you could only have this problem if the window pops up while TypeKeys is typing!). The second group are the methods that end with "Input" e.g. ClickInput(), DoublClickInput(), etc - these methods find the coordinates for the control and then click there - if between finding the control coordinates and clicking a window pops up (unlikely!) with a control at the point we are clikcing (even more unlikely) then it is possible that we would click that other control.

 

There are two possible ways of fixing these:

 

Another point relating to that is that it might be interesting to document those methods that can be called without the window being the foreground window (so it might be possible to have a pywinauto script work in the background - while you use a different application) - though that is not recommended for most use cases!.

 

Other then that I can't think of other discussion items other then general stuff - (maybe I should have taken notes!)