01-30-2014, 01:08 AM
Try:
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
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