This might be a dumb question but here goes. I have a windows-based application that has a pop-up window asking me to confirm all the changes or some of the changes and then click on OK to continue. This task is repeated around 10,000 times (once for each confirmation of a change). Is there anyway to program Windows API or PowerShell (not sure which one is correct in this context) via Excel vba to just click on the accept all changes button in the pop-up and then the OK button. Currently I have to stare in front of the screen for a day or so waiting for the popup to appear then I click Enter (default answer is already highlighted) >> Tab (highlight the OK button) >> Enter (to confirm).

If this is not possible then any other options are welcomed.

Thanks.

abousetta