Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
test if accessible object = "object not found"
#4
Try:



Code:
Copy      Help
int w=win("WinName" "WinClass")
Acc a.Find(w "PUSHBUTTON" "Log On" "class=*.BUTTON.*[]wfName=buttonLogin" 0x5)
if a.a
,out "exists"
if !a.a
,out "doesn't exist"


make sure you uncheck error if not found (so no flag 0x1000) but don't then trap the err with an ;err at the end of the acc statement or else it will always return true even when not present


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)