here's what I have so far, works only for the first line of the file, then ##NOFILE## error.
Thanks in advance for any and all suggestions.
Gil
Code: Select all
If>InldNum>1
GoSub>GetInldFileData
Wait>sw
SRT>GetInldFileData
Let>k=0
Label>Start
Let>k=k+1
ReadLn>C:\CP_Macros\JohnW\Europe\Inland\%InldFileName%,k,strLine
If>strLine=##EOF##,end
Separate>strLine,comma,InldFileName
Let>vInvAmt=InldFileName_1
Let>vExpAmt=InldFileName_2
Let>vVcode=InldFileName_3
Send>vInlandSC
Press Tab * 3
Send>vInvAmt
Press Tab * 2
Send>vExpAmt
Press Tab
Send>vVcode
Press Tab
Wait>sw
Let>FIP_SCANPIXELS=ALL
FindImagePos>%SCRIPT_DIR%\InldSCCode.bmp,SCREEN,0,1,XArr,YArr,numFound
If>numFound=0
MessageModal>Image Not Found
Exit>0
Endif
Endif
MouseMove>XArr_0,YArr_0
LClick
Wait>.50
Goto>Start
Label>end
End>GetInldFileData