Hey Leute,
Also ich möchte als aller erstes anmerken das ich was AutoIt angeht noch Anfänger bin also tut mir den gefallen und verschont mich mit Fach bla bla :rolleyes:.
also nun aber zu meinem eigentlichen Problem:
Stellen wir uns mal vor wir hätten eine GUI mit einem Label, Einem Input feld und einem Button:
wie bekomme ich dann die 2 folgenden Funktionen hin?:
1. wenn ich in das Inputfeld etwas rein schreibe und auf den Button Drücke
soll im Label das stehen was ich vorher im Inputfeld eingegeben hatte.
2. wenn ich die GUI beende und neu starte soll trotz des Neustarts im
Inputfeld noch das stehen was ich zuvor eingegeben hatte (also wie die
Settings bei einem Game)
Ich bedanke mich schon mal im voraus bei euch
MfG: ooOPhoenixXxx
Also ich möchte als aller erstes anmerken das ich was AutoIt angeht noch Anfänger bin also tut mir den gefallen und verschont mich mit Fach bla bla :rolleyes:.
also nun aber zu meinem eigentlichen Problem:
Stellen wir uns mal vor wir hätten eine GUI mit einem Label, Einem Input feld und einem Button:
Code:
[COLOR="Magenta"]#include[/COLOR] [COLOR="Gray"]<GUIConstants.au3>[/COLOR] [COLOR="Purple"]#Region ### START Koda GUI section ### Form=[/COLOR] [COLOR="Red"]$Form1 =[/COLOR] [COLOR="blue"]GUICreate[/COLOR][COLOR="Red"]([/COLOR][COLOR="Gray"]"Form1"[/COLOR][COLOR="red"],[/COLOR] [COLOR="Purple"]174[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]134[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]193[/COLOR] [COLOR="red"],[/COLOR] [COLOR="purple"]125[/COLOR][COLOR="red"])[/COLOR] [COLOR="red"]$Input1 =[/COLOR] [COLOR="blue"]GUICtrlCreateInput[/COLOR][COLOR="Red"]([/COLOR][COLOR="Gray"]"Eingabe"[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]24[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]72[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]121[/COLOR][COLOR="red"],[/COLOR] [COLOR="Purple"]21[/COLOR][COLOR="red"])[/COLOR] [COLOR="red"]$Button1 =[/COLOR] [COLOR="blue"]GUICtrlCreateButton[/COLOR][COLOR="Red"]([/COLOR][COLOR="Gray"]"OK!"[/COLOR][COLOR="Red"],[/COLOR] [COLOR="purple"]48[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]96[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]75[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]25[/COLOR][COLOR="red"],[/COLOR] [COLOR="Purple"]0[/COLOR][COLOR="red"])[/COLOR] [COLOR="red"]$Label1 =[/COLOR] [COLOR="Blue"]GUICtrlCreateLabel[/COLOR][COLOR="Red"]([/COLOR][COLOR="Gray"]"Text"[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]24[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]8[/COLOR][COLOR="red"],[/COLOR] [COLOR="purple"]116[/COLOR][COLOR="red"],[/COLOR] [COLOR="Purple"]57[/COLOR][COLOR="red"])[/COLOR] [COLOR="Blue"]GUISetState[/COLOR][COLOR="Red"]([/COLOR][COLOR="Magenta"]@SW_SHOW[/COLOR][COLOR="red"])[/COLOR] [COLOR="Purple"]#EndRegion ### END Koda GUI section ###[/COLOR] [COLOR="Blue"]While[/COLOR] [COLOR="Purple"]1[/COLOR] [COLOR="Red"]$nMsg =[/COLOR] [COLOR="Blue"]GUIGetMsg[/COLOR][COLOR="Red"]()[/COLOR] [COLOR="Blue"]Switch[/COLOR] [COLOR="Red"]$nMsg[/COLOR] [COLOR="Blue"]Case[/COLOR] [COLOR="Red"]$GUI_EVENT_CLOSE[/COLOR] [COLOR="Blue"]Exit[/COLOR] [COLOR="blue"]EndSwitch[/COLOR] [COLOR="blue"]WEnd[/COLOR]
1. wenn ich in das Inputfeld etwas rein schreibe und auf den Button Drücke
soll im Label das stehen was ich vorher im Inputfeld eingegeben hatte.
2. wenn ich die GUI beende und neu starte soll trotz des Neustarts im
Inputfeld noch das stehen was ich zuvor eingegeben hatte (also wie die
Settings bei einem Game)
Ich bedanke mich schon mal im voraus bei euch
MfG: ooOPhoenixXxx