Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing #s in window.
#1
I got this number in a window. "123" or "1563". never the same.

so I basically need a macro that looks for a change in text.

I need a function that will perform an action, like shutdown macro, when that number changes to, like "1423"
thanks for your input.
#2
can you give us more info on the window?
  • create a new macro
    click on the "windows/controls/menus" icon on the floating qm toolbar
    then click "window actions".
    on the right side you'll see "drag" with an aiming reticle under it. drag that onto the top of the window
    click ok
    send that info to us
#3
Acc a=acc("53,091" "STATICTEXT" "My stuff" "Static" "" 0x1001)
#4
what program is opening this? is this a text document? usually the window tittle changes with the file name.
#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
;...


Forum Jump:


Users browsing this thread: 1 Guest(s)