Hello KimPenta. Thanks for your quick response.
I've tried like this:
{
wdwMsg = Sys.Process("FPw5").Window("#32770", "FPW : Mensagem", 1);
timeout = wdwMsg.WaitWindow("*", "*", -1, 1000)
if (timeout.Exists) {
MessageDlg("An error happenned. Check Logs for more information!", mtError, mbOK, 0);
wdwMsgResult = Sys.Process("FPw5").Window("#32770", "FPW : Mensagem", 1).Window("Static", "*", 2);
Log.Error(wdwMsgResult.WndCaption);
Runner.Stop();
}
}
And received the following error log:
| Cannot obtain the window with the window class '#32770', window caption 'FPW : Mensagem' and index 1. See Additional Information for details. |
On Additional Info says that "The window with the specified attributes does not exist"
Double click on the LogError moved me to the line where I am creating the wdwMsg variable:
wdwMsg = Sys.Process("FPw5").Window("#32770", "FPW : Mensagem", 1);
Hope you can help me.