Je vous demande un peu d'aide car je patauge serieusement!
Donc, j'aimerais faire un tableau de statistiques. Chaque jour qui est different devra générer un fichier.ini.
et donc chaque ligne du tableau = un fichier .ini différent
Vous aurez besoin de l'udf joint pour faire fonctionner le tableau
Et voici ce que j'ai commencé à faire:
Code : Tout sélectionner
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include "Table.au3"
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 724, 561, 192, 124)
$Input1 = GUICtrlCreateInput("Archers", 160, 496, 89, 21)
$Input2 = GUICtrlCreateInput("Paladins", 280, 496, 81, 21)
$Button1 = GUICtrlCreateButton("envoyer", 392, 496, 89, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$day = @MDAY
$month = @MON
$date = $day&"/"&$month
$date1 = $day&$month
$1 = IniRead("test.ini", $date1, "archers", "")
$2 = IniRead("test.ini", $date1, "paladins", "")
;----- Table Example 4 -----
GUICtrlCreateLabel(" Example 4 ", 250, 250, 100, 13)
$Table4 = _GUICtrlTable_Create(200, 100, 62, 18, 8, 3, 0)
_GUICtrlTable_Set_RowHeight($Table4, 1, 35)
_GUICtrlTable_Set_Justify_All($Table4, 1, 1)
_GUICtrlTable_Set_TextFont_All($Table4, 8.5, 800, 0, "Tahoma")
_GUICtrlTable_Set_CellColor_Row($Table4, 1, 0x555555)
_GUICtrlTable_Set_TextColor_All($Table4, 0x555555)
_GUICtrlTable_Set_TextColor_Row($Table4, 1, 0xFFFFFF)
For $row = 3 To 10 Step 2
_GUICtrlTable_Set_CellColor_Row($Table4, $row, 0xDDDDDD)
Next
_GUICtrlTable_Set_Text_Row($Table4, 1, "Date|Archers|Paladins")
_GUICtrlTable_Set_Text_Row($Table4, 2, $date&"|"&$1&"|"&$2&"")
_GUICtrlTable_Set_Border_Table($Table4, 0x555555)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
IniWrite("test.ini", $date1, "archers", GUICtrlRead($input1))
IniWrite("test.ini", $date1, "paladins", GUICtrlRead($input2))
EndSwitch
WEnd
Si vous n'avez pas bien compris, n'hésitez pas hein. Pour moi c'est clair mais pas forcément pour vous
Merci à ceux qui m'aideront.


