[python-win32] 回复: The program passes on Win7 but fails on Win8

2013-01-03 Thread 震坤 蔡
Thanks for your reply. For the program I have written: print "abc" hWindow = win32gui.FindWindow('MsiDialogCloseClass', None) if hWindow <> 0:     print hWindow     hButton = win32gui.FindWindowEx(hWindow, 0, 'Button', '&Next >')     if hButton <> 0:     print hButton         win32gui.SendMessa

Re: [python-win32] 回复: The program passes on Win7 but fails on Win8

2013-01-03 Thread Tim Roberts
震坤 蔡 wrote: > Thanks for your reply. > For the program I have written: > print "abc" > hWindow = win32gui.FindWindow('MsiDialogCloseClass', None) > if hWindow <> 0: > print hWindow > hButton = win32gui.FindWindowEx(hWindow, 0, 'Button', '&Next >') > if hButton <> 0: > print hBut

[python-win32] 回复: 回复: The program passes on Win7 but fails on Win8

2013-01-03 Thread 震坤 蔡
I have changed the third parameter, but it still did not work on Win8. print "abc" hWindow = win32gui.FindWindow('MsiDialogCloseClass', None) if hWindow <> 0:     print hWindow     hButton = win32gui.FindWindowEx(hWindow, 0, 'Button', '&Next >')     if hButton <> 0:     print hButton     w