Nein
C
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Konto-Projekt", 401, 95, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Kontostand = GUICtrlCreateLabel("Kontostand", 8, 8, 86, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
GUICtrlCreateInput("", 104, 8, 185, 28)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$EinnahmeButton = GUICtrlCreateButton("Einnahmen", 104, 48, 91, 33)
GUISetOnEvent($EinnahmeButton, "Einnahmen")
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$AusgabenButton = GUICtrlCreateButton("Ausgaben", 200, 48, 91, 33)
GUISetOnEvent($AusgabenButton, "Ausgaben")
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$BerechnenButton = GUICtrlCreateButton("BerechnenButton", 296, 8, 91, 33)
GUISetOnEvent($BerechnenButton, "Berechnen")
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
While 1
Sleep(100)
WEnd
Func Form1Close()
exit
EndFunc
Func Einnahmen()
ShellExecute("Einnahmen.txt")
EndFunc
Func Ausgaben()
ShellExecute("Ausgaben.txt")
EndFunc
Func Berechnen()
$EinnahmenDatei = FileOpen("Einnahmen.txt")
$AusgabenDatei = FileOpen("Ausgaben.txt")
Local $Einnahmen = FileRead($EinnahmenDatei)
Local $Ausgaben = FileRead( $AusgabenDatei)
MsgBox(0, "Title", $EinnahmenDatei & $AusgabenDatei)
EndFunc
Alles anzeigen