| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Dokkio Sidebar (from the makers of PBworks) is a Chrome extension that eliminates the need for endless browser tabs. You can search all your online stuff without any extra effort. And Sidebar was #1 on Product Hunt! Check out what people are saying by clicking here.

View
 

Presentations

Page history last edited by PBworks 16 years, 5 months ago

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

  • One item that people seemed interested in was if pywinauto could mess with other windows. For example if a dialog pops up asking if you want to format your hard drive :-) - you definitely don't want pywinauto blindly clicking on that - or pressing "Y{ENTER}" while it is active!

 

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:

  • typkeys setfocus between each key (not sure I like that very much - what if you are typing ALT TAB or something?)
  • ...Input() methods can check before they click that the control at the point they are clicking is the control that should be recieving the click.

 

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!)

Comments (1)

Anonymous said

at 8:35 am on May 26, 2006

The zip file is missing the following file:
pywinauto_bos_9_march.htm

You don't have permission to comment on this page.