11-28-2014, 02:14 PM
Hi all,
I have an issue that I really don't understand. It seems pretty easy and basic, but I can't get it to work.
I am trying to automate the installation of a program. It is basically doing Alt-N for NEXT and a few spaces to select the default options.
There is a problem in the installer and on the last window where it says that it was installed successfully, the window doesn't have the focus. There is a Finish button that can be used with either Enter or Alt-F when the window has focus. I do not have access to that program's code and cannot change this focus issue.
So, what I did to trick it was to do an Alt-Tab on the Finish window, then another Alt-Tab to get back to it. This way, it has the focus and I can finish the install.
The Alt-Tab is working perfectly when I test the macro in Quick Macro.
When I generate a EXE, the Alt-tab fails.
I have tried to increase/decrease the Pauses before and between the Alt-Tab key but it doesn't help either. I tried to run the EXE as admin or not, without any changed to this behaviour.
I am not sure if this can help, but here is my code.
I have an issue that I really don't understand. It seems pretty easy and basic, but I can't get it to work.
I am trying to automate the installation of a program. It is basically doing Alt-N for NEXT and a few spaces to select the default options.
There is a problem in the installer and on the last window where it says that it was installed successfully, the window doesn't have the focus. There is a Finish button that can be used with either Enter or Alt-F when the window has focus. I do not have access to that program's code and cannot change this focus issue.
So, what I did to trick it was to do an Alt-Tab on the Finish window, then another Alt-Tab to get back to it. This way, it has the focus and I can finish the install.
The Alt-Tab is working perfectly when I test the macro in Quick Macro.
When I generate a EXE, the Alt-tab fails.
I have tried to increase/decrease the Pauses before and between the Alt-Tab key but it doesn't help either. I tried to run the EXE as admin or not, without any changed to this behaviour.
I am not sure if this can help, but here is my code.