in reply to Re: Assist human unobtrusively in a 3rd party Windows GUI
in thread Assist human unobtrusively in a 3rd party Windows GUI
To expand a bit, Win32::GuiTest includes the spy.pl and spy--.pl scripts, which dump the structure of available windows. If you can find the "RESET" button through this, you can automatically click it and then restore the focus to the original window. My advice is to not send mouse clicks but to use keyboard navigation/hotkeys or to send window messages with the ID of the target control to activate it. Be sure to log all the actions of your assisting program to a file so you can find what situation caused the program to act unexpectedly, later.
If the application does paint its own controls, such as to have "fancy" buttons (for no good reason), you will have to take screenshots and compare the screenshots, which also can work but is fragile if the font or screen scale changes.
Another low-effort thing to try is AutoHotkey, which has its own quirky programming language. I wouldn't want to write any form of logic in it, but if AutoHotkey can do it then you can later replicate the mechanism AutoHotkey uses with Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Assist human unobtrusively in a 3rd party Windows GUI
by Marshall (Canon) on Dec 15, 2020 at 22:46 UTC | |
by Corion (Patriarch) on Dec 16, 2020 at 07:09 UTC | |
by Anonymous Monk on Dec 16, 2020 at 13:23 UTC |