Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find image below selected text
#1
Hello,

I want to know if it is possible to search for a text and after that, find the first 'captured' image below that text. This because in the page more than once this image is shown i only want the first one below Smile

Thanks for the time in advance!
#2
Macro Macro2447
Code:
Copy      Help
;find text as accessible object
int w=win("Quick Macros" "QM_Editor")
Acc a.Find(w "OUTLINEITEM" "Macro2444" "class=SysTreeView32[]id=2202" 0x1005)
;get object bottom in window client area
RECT ro rc
a.Location(0 ro.top 0 ro.bottom); ro.bottom+ro.top
DpiMapWindowPoints 0 w +&ro 2
;find image below the object
GetClientRect w &rc; rc.top=ro.bottom
scan "image:hBEFB13A3" w rc 1|2|16


Forum Jump:


Users browsing this thread: 1 Guest(s)