Hallo, ich bin neu hier und habe ein Problem mit Autoit
hier erstmal das Script :
Ich würde gerne Die 5 Inputboxen auslesen und später unten in der inidatei Config.ini reinschreiben
Könnt ihr mir irgendwie helfen?
#Edit: >.< Ey das is jetzt doof hhabe nix verändert aba auf einmal klappt es >.<
Kann geclosed werden
hier erstmal das Script :
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\levent\desktop\spiele\p-server\autoit v3\koda formdesigner\forms\angelbot.kxf
$Config = GUICreate("Config", 152, 330, 195, 234)
$Server_Text = GUICtrlCreateLabel("Welcher Server? [ 1 oder 2 ]", 0, 8, 141, 17)
$Server_Input = GUICtrlCreateInput("1", 0, 32, 137, 21)
$CH_Text = GUICtrlCreateLabel("Welcher CH? [ 1 oder 2 ]", 0, 64, 122, 17)
$CH_Input = GUICtrlCreateInput("1", 0, 88, 137, 21)
$ID_Text = GUICtrlCreateLabel("ID", 48, 120, 15, 17)
$ID_Input = GUICtrlCreateInput("", 0, 136, 137, 21)
$PW_Text = GUICtrlCreateLabel("PW", 48, 168, 22, 17)
$PW_Input = GUICtrlCreateInput("", 0, 184, 137, 21, $ES_PASSWORD)
$Char_Text = GUICtrlCreateLabel("Char Auswahl(1,2,3 oder 4)", 0, 224, 132, 17)
$Char_Input = GUICtrlCreateInput("1 ", 0, 248, 129, 21)
$Speichern = GUICtrlCreateButton("Einstellungen Speichern", 0, 272, 147, 57, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Speichern
_Main()
EndSwitch
wend
Func _Main()
$Server = guictrlread($Server_Input)
$CH = guictrlread($CH_Input)
$ID = guictrlread($ID_Input)
$PW = guictrlread($PW_Input)
$Char = guictrlread($Char_Input)
iniwrite( "Config.ini","Server","Server( 1 oder 2 )",$Server )
iniwrite( "Config.ini","CH","CH( 1 oder 2 )",$CH )
iniwrite( "Config.ini","ID","Deine ID",$ID )
iniwrite( "Config.ini","PW","Deine PW",$PW )
iniwrite( "Config.ini","Char Platz","Char Platz( 1 - 4 CharPlatz im Uhrzeigersinn",$Char)
Endfunc
Ich würde gerne Die 5 Inputboxen auslesen und später unten in der inidatei Config.ini reinschreiben
Könnt ihr mir irgendwie helfen?
#Edit: >.< Ey das is jetzt doof hhabe nix verändert aba auf einmal klappt es >.<
Kann geclosed werden