|
Post by gregory on Jan 18, 2023 10:33:42 GMT
Hello,
I'm trying to do Select Window by name to focus on it but can't. My final goal is that this is part of the bigger code when in some moment new window appear on screen (new email message) and I must wait for it some miliseconds, but don't know how long should I wait so I decided to add statement when I check if mentioned window was created by email client and if YES ten focus on it (Select Window) But it can not focus on it.
Code:
1 | IF | WINDOW TITLE | Untitled - Message (HTML) | EXIST | SELECT WINDOW BY NAME | Untitled - Message (HTML)
What's wrong ?
but instead of detect image I need Select Window but earlier wait for it for a while until mail client will create it.
If I select one line responsible for selecting (line 56 on video) then it select mail window and focus on it. While in whole program it constantly does not select this window and thus line 58 (Else) and 59 (jumping up) are executed. Normally I want this scenario (Else) when mail client is generating that expected window and after that select it and go with further lines of code, so it should find mentioned window what not happend unfortunately, but why ?
Here is shown how it should work I think, it wait for window and later it finish and allow me go next parts of code
|
|