Code : Tout sélectionner
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", $aService[0])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    ControlSend("Session B - [24 x 80]", "", "", $Facturecut[0])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    ControlSend("Session B - [24 x 80]", "", "", $Facturecut[1])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", $aCode_produit[0])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    Sleep (200)
$aPrix_achat[0] = StringReplace($aPrix_achat[0],".", ",")
Sleep (200)
$aPrix_achat[0] = StringReplace($aPrix_achat[0]," ", "")
Sleep (200)
$aPrix_achat[0] = StringReplace($aPrix_achat[0],"€", "")
    ControlSend("Session B - [24 x 80]", "", "", $aPrix_achat[0])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", $aPrix_achat[0])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    Sleep (200)
$aDate_survenance[0] = StringReplace($aDate_survenance[0],"/", "")
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", $aDate_survenance[0])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    Sleep (200)
$Date_validite_us = _DateAdd('d', 91, _NowCalcDate()); additionne des jours (d), 91 jours, date au format YYYY/MM/DD
Sleep (200)
$Date_validite = StringRegExpReplace($Date_validite_us, "\A(\d*)/(\d*)/(\d*)","$3/$2/$1")
Sleep (200)
$Date_validite = StringReplace($Date_validite,"/", "")
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", $Date_validite)
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{TAB}")
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", $aNum_sinistre[0])
    Sleep (200)
    ControlSend("Session B - [24 x 80]", "", "", "{ENTER}")
    Sleep (200)