07-17-2012, 03:12 PM
Hello,
I am working on changing an accessible object array element into a different name without changing the whole array. I have an idea of what it should look like, but I know it is wrong, and will not work as I want it to. This is what I have so far:
I am working on changing an accessible object array element into a different name without changing the whole array. I have an idea of what it should look like, but I know it is wrong, and will not work as I want it to. This is what I have so far:
int w=win("Calculator" "SciCalc")
Acc a.Find(w "WINDOW" "Calculator" "class=SciCalc" 0x1005)
ARRAY(Acc) b
Acc Backspace
str name
str role
str data
int i
int x y cx cy
a.GetChildObject(-1 "" "" "" 16)
for i 0 b.len
,name=b[i].Name
,b[i].Role(role)
,b[i].Location(x y cx cy)
,if objectrole="PUSHBUTTON"
,,if x=291 y=125 cx=65 cy=29
,,,b[i]=Backspace
,data.formata("%i %s %s %i[]" i objectrole objectname x y cx cy)