merci d'avance à tous et pour info je me sert des position X Y car je me sert du logiciel connu SAP qui ne me permet pas d'utiliser le ID
Code : Tout sélectionner
ElseIf $sData = "260666964" Then
Send ( "!{F4}")
Sleep(100)
;Symptômes client
BlockInput (1)
Mouseclick ("left", 821, 467, 1, 0)
Send ("NFACT")
;Destination
Send("{TAB 2}")
Send ("RETOUR EXPEDITEUR")
;Direction
Send("{TAB 2}")
Send ("REPARATION SIMPLE")
;Précision
Mouseclick ("left", 190, 579, 1, 2)
Sleep (200)
Mouseclick ("left", 211, 578, 1, 0)
;Devis
Mouseclick ("left", 118, 264, 1, 5)
Mouseclick ("left", 210, 297, 2, 5)
;Symptome client
Mouseclick ("left", 112, 489, 1, 5)
Send("CA10")
;Enregistrer
Mouseclick ("left", 234, 51, 1, 0)
BlockInput (0)
ElseIf $sData = "260669423" Then
Send ( "!{F4}")
Sleep(100)
;Symptômes client
BlockInput (1)
Mouseclick ("left", 821, 467, 1, 0)
Send ("NFACT")
;Destination
Send("{TAB 2}")
Send ("RETOUR EXPEDITEUR")
;Direction
Send("{TAB 2}")
Send ("REPARATION SIMPLE")
;Précision
Mouseclick ("left", 190, 579, 1, 2)
Sleep (200)
Mouseclick ("left", 211, 578, 1, 0)
;Devis
Mouseclick ("left", 118, 264, 1, 5)
Mouseclick ("left", 210, 297, 2, 5)
;Symptome client
Mouseclick ("left", 112, 489, 1, 5)
Send("CA10")
;Enregistrer
Mouseclick ("left", 234, 51, 1, 0)
BlockInput (0)