I am working on a desktop application using Nitro where a search for an expression is done and OCRExtractrelative is used to retrieve the number of times it is found. It works fine when the number of times the expression is found has two or more digits. However, when it has only one digit, OCRExtratcRelative cannot extract the value and returns blank. I tried to have a specific image and OCRExtractRelative for only one digit with several different positions for the green and pink boxes but, unfortunately, it doesn’t work. This is one issue.
I thought of using the prompt command to solve the previous issue, instead of reading the number of times using OCRExtractRelative. The user would type the result of the search if the number is not extracted by the OCR. However, the pop-up of the prompt command does not show on top of the Nitro screen, the icon of UI Vision on the taks bar starts to blink. The problem with this is that when the user switches to UI Vision most of the times the pop-up isn’t there. When the pop-up can be reached, after the answer, the macro crashes because it is not on Nitro. In other words, to avoid this, how the prompt pop-up can be shown on top of Nitro, instead of on top of UI Vision desktop? This is a second issue that came up when I tried to work around the first.
Thanks in advance!