I`m creating macro for my accounting program, i work on a terminal online. Everything would be fine except sometimes a window appears that wants me to approve my actions and i can`t get macro to identify this window. When i record or use find window i get the main window program instead of the one that pops up. I`d like my macro to check if the window appears and click accept, else follow the normal routine.
All quickmacros tools recognize this window as("Terminals" "WindowsForms10.Window.8.app.0.378734a") but it`s just the main window.
I suspect it may be child window. Try to drag it out of the main window. If it is child window, the part of it that does not overlap with the main window will be invisible. If it is child window, use function child() or id() instead of win().
OK, i just installed QM on remote computer. I guess QM doesnt reconize windows well when working on remote desktop.
I have one more question, how to reconize window whith the same handle but completly diferent meaning? i have the same window pop up but the content and actions are different. to check for the first win pop up i used ifa, for the second i just used scan (print scrn first). I wondered if there is another solution, like reconize buton with spec action or sth.
If QM runs in remote computer, it should recognize windows well. If QM runs in local computer that controls the remote computer, it cannot recognize windows in the remote computer, because in local computer whole remote view is just an image, not windows. That is why your macro finds the window that displays the image.
----
Quote:I have one more question...
Try function WinC.
Or get window handles with GetWindowList, then search for a child window or accessible object or html element in each window.
Let's say there are two "Untitled - Notepad" windows. One contains text "one", another contains text "two". How to find the window that contains "one"?