Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checking text: x identical following lines (text + color) since x minutes
#2
Try dialog "Window text". To find it: floating toolbar -> 5-th button -> Window text. It creates code that can get window text and text color. Works not with all windows. In the dialog select "Get array". Click Select; move the mouse to the window/control; press Shift; click Test. If works with that window, must show red rectangles around all text items. Click OK. It inserts several lines of code in the macro, and also prints some sample code; select the sample code and drag-drop to the macro. Example:

Macro Macro109
Code:
Copy      Help
int wMain=win("Test" "CabinetWClass")
int w=child("" "DirectUIHWND" wMain 0x0 "accName=Items View") ;;list 'Items View'
WindowText wt.Init(w)
wt.Capture
for _i 0 wt.n
,WTI& t=wt.a[_i]
,out F"0x{t.color} {t.txt}" ;;pure red color is 0x0000FF; black is 0x000000.


Messages In This Thread
RE: Checking text: x identical following lines (text + color) since x minutes - by Gintaras - 12-23-2018, 03:40 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)