From c0db61660d1265afcdb0283506d35c0c23edb3ce Mon Sep 17 00:00:00 2001 From: jopazerty Date: Mon, 10 Mar 2025 13:18:10 +0100 Subject: [PATCH] prout --- moveyourPOP.au3 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/moveyourPOP.au3 b/moveyourPOP.au3 index 3748978..10c5cb6 100644 --- a/moveyourPOP.au3 +++ b/moveyourPOP.au3 @@ -24,6 +24,7 @@ #include #include #include +#include _Singleton(@ScriptName) ;commentaire de test pour git @@ -55,7 +56,7 @@ GUICtrlCreateLabel("Domaine(s) :", 390, 25, 75, 30) GUICtrlSetColor(-1, $color) GUICtrlSetTip(-1, "Séparez les domaines par un |", "Domaines à rechercher") GUICtrlSetCursor(-1, 4) -$searchDoamin = GUICtrlCreateInput("ac-nice.fr|ac-aix-marseille.fr", 470, 21, 140, 25) +$searchDoamin = GUICtrlCreateInput("ac-nice.fr", 470, 21, 140, 25) GUICtrlSetFont(-1, 10, 500, Default, "Segoe UI") $refresh = GUICtrlCreateLabel("🔄", 610, 20, 30, 33) GUICtrlSetFont(-1, 15, 500, Default, "Segoe UI") @@ -103,6 +104,7 @@ GUIctrlSetFont(-1,12, 600, Default, "Segoe UI") ;~ $listview = GUICtrlCreateListView("Nom du Compte|Mail|Nom d'utilisateur|Dossier de stockage|Signature", 20, 220, 760, 250) $listview = GUICtrlCreateListView("Username|Account|ID|ServerID|Dossier de stockage|smtpID", 20, 220, 760, 250) GUICtrlSetFont(-1, 11, 500, Default, "Segoe UI") +GUICtrlSetBkColor(-1, 0xff0000) GUICtrlSendMsg($ListView, $LVM_SETCOLUMNWIDTH, 0, -1) ; $LVSCW_AUTOSIZE GUICtrlSendMsg($ListView, $LVM_SETCOLUMNWIDTH, 1, -1) ; $LVSCW_AUTOSIZE GUICtrlSendMsg($ListView, $LVM_SETCOLUMNWIDTH, 2, -1) ; $LVSCW_AUTOSIZE @@ -116,6 +118,11 @@ GUICtrlSendMsg($ListView, $LVM_SETCOLUMNWIDTH, 3, -2) ; $LVSCW_AUTOSIZE_USEHEADE guictrlsendmsg($ListView, $LVM_SETCOLUMNWIDTH, 4, -2) ; $LVSCW_AUTOSIZE_USEHEADER guictrlsendmsg($ListView, $LVM_SETCOLUMNWIDTH, 5, -2) ; $LVSCW_AUTOSIZE_USEHEADER +Global $hLV = GUICtrlGetHandle($ListView) + +; Changer la couleur de fond du ListView (Ex: Bleu clair) +_SendMessage($hLV, 0x1001, 0, 0xADD8E6) ; LVM_SETBKCOLOR avec couleur hexadécimale (LightBlue) +_SendMessage($hLV, 0x1004, 0, 0xFFFFFF) ; LVM_SETTEXTBKCOLOR pour éviter un fond blanc sous le texte $go = GUICtrlCreateButton("🚀 Exécuter", 10, 490, 780, 60) GUICtrlSetBkColor(-1, $color2) GUICtrlSetColor(-1, 0xffffff)