Looking for some help. I m abit confused since the script portion works fine when I go through it line by line via the puttin a breakpoint below the else.
here's the code,
Code: Select all
wwo>Fixed Ops Sales Manager
if>WW_RESULT=FALSE
let>fName=OpenFixedOps - cannot find FOSM.
gosub>WriteToLog
else
gosub>WriteToLog
setfocus>Fixed Ops Sales Manager
let>count=1
Label>CheckLoadFosm
fip>%SCRIPT_DIR%\BMP_DIR\FOSMCloseBtn.bmp,WINDOW:Fixed Ops Sales Manager,10,0,x,y,n
fip>%SCRIPT_DIR%\BMP_DIR\FOSMRecord.bmp,WINDOW:Fixed Ops Sales Manager,10,0,r,s,p
if>{(%n%>0) and (%p%>0)}
**BREAKPOINT**
gettime>end
let>fName=OpenFixedOpsImageSearch
gosub>WriteToLog
setfocus>Fixed Ops Sales Manager
let>SRTResult=TRUE
else
if>count>10
goto>CheckLoadFosm
add>count,1
wait>1.5
else
let>fName=OpenFixedOps - Cannot find Close and Record button/label
gosub>WriteToLog
endif
endif
endif
the above if statement is where the it failed if I just let the program run. But if i take the breakpoint above the two FIP, and step through the code it pass without a problem.
anyone experiencing this?
Thanks,
Hoang