J'ai élaboré ton script au complet.
Créé ton fichier texte et nomme le : "tonfichiertexte.txt"
Place dans tonfichiertexte.txt les 3 lignes :
abc.exe | ABC est lancer v1.1
deff.exe | DEFF est lancer v3.1
ghih.exe | GHIH est lancer v0.1
Ensuite exécute ce script :
Code : Tout sélectionner
$readline1 = FileReadLine("tonfichiertexte.txt", 1) ; On lit la première ligne
$readprocess1 = StringMid($readline1, 1, 7) ; On extrait les 7 premiers caractères concenant le nom du processus
if ProcessExists($readprocess1) Then ; On test si le processus lu auparavant existe
$readcomment1 = StringMid($readline1, 11, 30) ; On extrait le commentaire à afficher
MsgBox(0, $readcomment1, $readcomment1) ; On affiche le commentaire
EndIf
$readline2 = FileReadLine("tonfichiertexte.txt", 2) ; On lit la seconde ligne
$readprocess2 = StringMid($readline2, 1, 8) ; On extrait les 8 premiers caractères concenant le nom du processus
if ProcessExists($readprocess2) Then ; On test si le processus lu auparavant existe
$readcomment2 = StringMid($readline2, 12, 32) ; On extrait le commentaire à afficher
MsgBox(0, $readcomment2, $readcomment2) ; On affiche le commentaire
EndIf
$readline3 = FileReadLine("tonfichiertexte.txt", 3) ; On lit la dernière ligne
$readprocess3 = StringMid($readline3, 1, 8) ; On extrait les 8 premiers caractères concenant le nom du processus
if ProcessExists($readprocess3) Then ; On test si le processus lu auparavant existe
$readcomment3 = StringMid($readline3, 12, 32) ; On extrait le commentaire à afficher
MsgBox(0, $readcomment3, $readcomment3) ; On affiche le commentaire
EndIf