so if I understand you correctly, when my dialog window opens I can get gui to automatically push the close button in the top right ?.
Is it possible you can point me in the right direction as to what function or command I will need to use to achieve this.
harry | [reply] |
Hi Harry!
Well it depends on what your dialog-box looks like. Usually you have an "okay" and "cancel" button or something. Then you could use the PushButton/PushChildButton-Function which works great. But of course you have to do a findwindow() etc before, read the POD for more info.
Another way is to solve the problem via sendkeys(), you could send ALT+SPACE and then c to close it via the drop-down-menu. If all of this doesn't work, have a look at other Win32:: Modules, I currently don't remember the name but there is one which helps you to kill an app what should help also.
giant
| [reply] |