Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing #s in window.
#5
Remove the text

Acc a
a=acc("" "STATICTEXT" "My stuff" "Static" "" 0x1001)

If then finds other object, try to use coordinates, or id (select id=... item in Find Accessible Object dialog, Class dropdown).

Then get text into a variable. Then repeatedly get text into another variable and compare. Break the loop when differs.

Code:
Copy      Help
Acc a
a=acc("" "STATICTEXT" "My stuff" "Static" "" 0x1001)
str s1 s2
s1=a.Name
;wait by repeatedly checking name
rep
,0.1
,s2=a.Name
,if(s2~s1) break ;;stop when different
;...


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)