Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Array Names
#1
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:
Code:
Copy      Help
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)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)