I would like to create a mechanism to press the OK button, for example, when a random error is displayed while a macro is running for a long time (about 10 hours).
I want to be able to press the OK button as many times as I want to get rid of the error and let the macro continue running for a long time.
Please lend me your help.
Thank you very much for your help.
Hi @RYO. I'm not sure I understand your objective, but maybe this macro will help.
DOWNLOAD Macro File: Randomly Generate and Trap a KM Action Error.kmmacros (12 KB) Note: This macro was uploaded in a DISABLED state. It must be ENABLED before it can be run. If it does not trigger, the macro group might also need to be ENABLED.
Technically the IF statement is not required, but I put it there because it gives you the opportunity to move the mouse to "deactivate" the macro. Remember to deactivate both of the FAILURE flags in the Press Button statement.