Delphi: Start another program and clicks its buttons
$30-250 USD
Paid on delivery
Implement in Delphi 11 (or compatible), a simple program that will take as an input a filename. The filename is a full path to another program, say, "c:\program files\foobar\[login to view URL]" and the program shall execute this file, test.exe. Let's call the started file as the client.
The program shall then monitor any windows the client creates and looks for buttons. Do notice that the new windows can be also created by another process that the client creates.
The button search shall work by finding the button caption text, and the buttons to look for are 'yes', 'ok', 'finish', 'start' and 'next'. If one such button is found, it is clicked by the program. If none of these are found, then, an Enter key is sent instead, which we will hope will trigger the client's default action.
If no such button is detected, we shall wait a maximum of 10 seconds and then terminate the client. After each button click (or Enter key send), there shall be a wait period of 5 seconds before the button search loop resumes again.
The program shall run as long as the above loop is running.
You can assume that while this program is running, the user is not doing anything, e.g. starting any other programs. You can also assume this program is started in a system stage where no other third party software are running in the system, i.e. only the Windows desktop is running. Therefore, any newly created windows with interesting buttons should be considered.
Project ID: #36436086
About the project
Awarded to:
6 freelancers are bidding on average $186 for this job
Hello! I'm a Delphi programmer with 20+ years of experience. And I'm well familiar with WinAPI, so I can do this.