Die gesammelten Daten sollen in das Ausgabe feld geschrieben werden.
bisher hab ich folgendes:
bei zeile 46 meckert er dass wegen der variablen ein prozentzeichen fehlt, das geht bei den checkboxen dann bestimmt weiter
Code: Select all
Gui, Font, S12 CDefault Bold, Verdana
Gui, Add, Text, x61 y105 w110 h20 , Wohnort
Gui, Add, Text, x231 y75 w100 h50 , Vitbikes Standort
Gui, Add, Text, x231 y5 w140 h20 , Nachname
Gui, Add, Text, x61 y5 w140 h20 , Vorname
Gui, Add, Edit, x61 y35 w150 h30 , vorname
Gui, Add, Edit, x231 y35 w190 h30 , nachname
Gui, Add, Edit, x231 y135 w190 h30 , wohnort
Gui, Add, Edit, x61 y135 w150 h50 , vitbikesstandort
Gui, Add, Edit, x801 y55 w380 h630 , Ausgabe
Gui, Add, Text, x61 y225 w110 h30 , Größe
Gui, Add, Edit, x231 y225 w190 h30 , groesse
Gui, Add, Text, x61 y265 w110 h30 , Alter
Gui, Add, Edit, x231 y265 w190 h30 , alter
Gui, Add, Text, x61 y305 w110 h30 , Gewicht
Gui, Add, Edit, x231 y305 w190 h30 , gewicht
Gui, Add, Text, x61 y345 w140 h30 , Beschwerden
Gui, Add, Edit, x231 y345 w190 h30 , beschwerden
Gui, Add, CheckBox, x51 y385 w70 h20 , Knie
Gui, Add, CheckBox, x131 y385 w110 h20 , Rücken
Gui, Add, CheckBox, x241 y385 w180 h50 , Einschlafende Hände
Gui, Add, Text, x61 y455 w120 h30 , Text
Gui, Show, x378 y141 h844 w1339, New GUI Window
Gui, Submit, NoHide
vorname := GuiControlGet(vorname)
nachname := GuiControlGet(nachname)
wohnort := GuiControlGet(wohnort)
vitbikesstandort := GuiControlGet(vitbikesstandort)
groesse := GuiControlGet(groesse)
alter := GuiControlGet(alter)
gewicht := GuiControlGet(gewicht)
beschwerden := GuiControlGet(beschwerden)
knie := GuiControlGet(knie)
ruecken := GuiControlGet(ruecken)
einschlafende_haende := GuiControlGet(einschlafende_haende)
GuiControl,, Ausgabe, % "Vorname: " vorname "n" "Nachname: " nachname "n" "Wohnort: " wohnort "n" "Vitbikes Standort: " vitbikesstandort "n" "Größe: " groesse "n" "Alter: " alter "n" "Gewicht: " gewicht "n" "Beschwerden: " beschwerden "n"
; CheckBox abfragen
if knie {
GuiControl,, Ausgabe, % "Knie: Ja" % } else { GuiControl,, Ausgabe, % "Knie: Nein" %
}
if rücken {
GuiControl,, Ausgabe, % "Rücken: Ja" } else { GuiControl,, Ausgabe, % "Rücken: Nein" %
}
GuiControl,, Ausgabe, % "Einschlafende Hände: Ja" } else { GuiControl,, Ausgabe, % "Einschlafende Hände: Nein" %
}
Return
gui close
ExitApp
[Moderator-Edit: Code-Tags hinzugefügt.]