10-01-2018, 01:51 AM
it appears that your working with some type if treeview application
i would try and redo these lines
avoid using xy coordinates if all possible
in the lines below see if you can find the specific element your trying to click
and instead of a.Mouse
maybe try
something like
example of selecting a desktop item
or here is an example of selecting and putting a check mark in a treeview item in CCleaner
Try if at all possible not to use x y positions if you can
i would try and redo these lines
avoid using xy coordinates if all possible
Acc a43.Find(w4 "CLIENT" "" "class=TdxEdit[]xy=66 140" 0x1005) ;;这是订法
Acc a41.Find(w4 "CLIENT" "" "class=TdxEdit[]xy=247 140" 0x1005) ;;这是印张
Acc a42.Find(w4 "CLIENT" "" "class=TdxEdit[]xy=209 36" 0x1005) ;;注意这是采集订单的名称in the lines below see if you can find the specific element your trying to click
and instead of a.Mouse
maybe try
something like
example of selecting a desktop item
int w=win("Desktop" "CabinetWClass")
Acc a.Find(w "LISTITEM" "New folder (2)" "class=DirectUIHWND" 0x1035)
a.Select(1|2)int w=win("CCleaner" "PiriformCCleaner")
Acc a.Find(w "OUTLINEITEM" "Internet History" "class=SysTreeView32[]id=1068" 0x1005)
a.Select(1|2)
a.Mouse(1 -2)Try if at all possible not to use x y positions if you can
