1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| FNfile = FreeFile
Open fic_capture For Output As FNfile
Close #FNfile
FNfile = FreeFile
Open Fic_script For Output As #FNfile
Print #FNfile, "[SENDFONC] FONC='CLEAR';"
Print #FNfile, "[SEND] Pos=9999; Data='TI040 3';"
Print #FNfile, "[SENDFONC] FONC='ENTER';"
Print #FNfile, "[SEND] Pos=508; Data='" & cp & "';"
Print #FNfile, "[SEND] Pos=668; Data='" & mot & "';"
Print #FNfile, "[SEND] Pos=1413; Data='1';"
Print #FNfile, "[SENDFONC] FONC='ENTER';"
Print #FNfile, "[ECRAN] Pos=1865; Stop=1868; Data='" & fic_capture & "';"
Close #FNfile
retourAria = Aria(Fic_script, ACTIVATE_WIN, nRet, "")
FNfile = FreeFile
Open fic_capture For Input As #FNfile
Input #FNfile, str
Close #FNfile
On Error GoTo No_proposition
nbResult = CDbl(str)
i = 0
While i < nbResult And i < 20
Rows(pos + 1).Insert Shift:=xlDown
FNfile = FreeFile
Open fic_capture For Output As FNfile
Close #FNfile
FNfile = FreeFile
Open Fic_script For Output As #FNfile
Print #FNfile, "[SEND] Pos=" & (i + 3) * 80 + 1 & "; Data='s';"
Print #FNfile, "[SENDFONC] FONC='ENTER';"
Print #FNfile, "[ECRAN] Pos=161; Stop=1980; Data='" & fic_capture & "';"
Print #FNfile, "[SENDFONC] FONC='PF7';"
Close #FNfile
retourAria = Aria(Fic_script, ACTIVATE_WIN, nRet, "") |
Partager