hallo!
Ich versuche den skript so hinzubekommen das sachen die in diesem skript eingebe gepspeichert werden und das diese dann wieder nach nem neustart wieder geladen werden....
Hier der Skript:
[autoit]#include <ButtonConstants.au3>
#include <DateTimeConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Wie auch immer!", 633, 478, 390, 277)
GUISetBkColor(0xFFFFFF)
$Edit1 = GUICtrlCreateEdit("", 16, 16, 601, 305)
GUICtrlSetData(-1, "")
$Button1 = GUICtrlCreateButton("Hinzufügen", 40, 408, 273, 41, $WS_GROUP)
$Input1 = GUICtrlCreateInput("", 24, 360, 393, 21)
$Ausgabe = GUICtrlCreateLabel(" Ausgabe für :", 152, 336, 99, 20)
GUICtrlSetFont(-1, 11, 800, 4, "MS Sans Serif")
$Input2 = GUICtrlCreateInput("", 464, 360, 145, 21)
$Betrag = GUICtrlCreateLabel("Betrag :", 512, 336, 58, 20)
GUICtrlSetFont(-1, 11, 800, 4, "MS Sans Serif")
$Date1 = GUICtrlCreateDate("2010/11/19 14:45:23", 352, 408, 257, 37)
GUISetState(@SW_SHOW)
Global $aStuff[1][3]
$aStuff[0][0] = 0
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If Not($Input1 = "" Or $Input2 = "") Then
ReDim $aStuff[$aStuff[0][0] + 2][3]
$aStuff[0][0] += 1
$aStuff[$aStuff[0][0]][0] = GUICtrlRead($Input1)
$aStuff[$aStuff[0][0]][1] = GUICtrlRead($Input2)
$aStuff[$aStuff[0][0]][2] = GUICtrlRead($Date1)
_RefreshList()
EndIf
EndSwitch
WEnd
Func _RefreshList()
$sStuffTmp = ""
$iCount = 0
For $i = 1 To $aStuff[0][0]
$sStuffTmp &= $aStuff[$i][0] & " ; " & $aStuff[$i][1] & " - " & $aStuff[$i][2] & @CRLF
$iCount += $aStuff[$i][1]
Next
GUICtrlSetData($Edit1, $sStuffTmp & "Gesamt: " & @CRLF & $iCount)
EndFunc