[python-win32] Selecting OK button in dialog

niki niki at vintech.bg
Thu Oct 11 12:41:21 CEST 2007


mjohnson wrote:
> I enumerate through the windows until I find the one I want, then using 
> I click the OK button.
> 
> If I watch the execution on the screen I can see the OK button depressed 
> then released, but nothing happens.  The spooky part is that if I then 
> move the mouse over the dialog with the OK button then the action is 
> performed.
> 
> I guess there is something else needed, perhaps focus.
> 
> All hints and tips gratefully received, thanks

Try this: press mouse on dialog button, button comes down and stays. 
Nothing happens yet. Then drag mouse without releasing. After mouse 
leaves button area see what happens. Releasing mouse outside button has 
no effect.

HTH

Niki



More information about the python-win32 mailing list