How to click on specific text from OCR'd area?

How can I make a macro that OCRs a certain area, then clicks the part of that area that contains text stored in a variable?

For example, I want to OCR an area of the screen like this:

In this case, the variable would be "Constant Power", in which case the macro should double click that row.

image

However, in another case, the variable might be "Lowpass" (notice how the position of the variable changes within the list).

image

Either use BTT or use my macro MoveMouseToWord which is posted on another thread.

In other words, I don't think there's any good way to do what you want using KM.

1 Like

Linking the MoveMouseToWord macro.