Variablen einer inputbox, einer anderen Variable zuweisen

  • hallo, bin im mom noch ein blutiger anfänger was autoit angeht, habe erst vor vier tagen angefangen und komme im moment nicht weiter. Habe schona alles mögliche ausprobiert, aber irgendwie funzt mein script nicht. Wäre echt nett, wenn da jemand mal drüber schauen könnte und mir dann erklären könnte, wo mein fehler liegt

    Spoiler anzeigen
  • Meinst du es so?

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <ComboConstants.au3>
    #include <ListViewConstants.au3>
    #include <StaticConstants.au3>
    #include <ButtonConstants.au3>
    #include <ListBoxConstants.au3>
    #include <TabConstants.au3>
    #include <EditConstants.au3>
    #include <DateTimeConstants.au3>
    #include <SliderConstants.au3>
    #include <TreeViewConstants.au3>
    #include <ProgressConstants.au3>
    #include <AVIConstants.au3>
    #include <UpDownConstants.au3>
    #include<Array.au3>
    #include<File.au3>
    #include <WinAPI.au3>
    #include <IE.au3>
    #include-once
    #NoTrayIcon

    [/autoit] [autoit][/autoit] [autoit]

    Dim $cancel, $ok, $i, $Password, $Loginname
    #Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\administrator\desktop\skripts\grafik\ogame_001.kxf
    $Form1_1 = GUICreate("Ogame_logger", 267, 189, 229, 168)
    $Group1 = GUICtrlCreateGroup("Ogame_logger", 0, 0, 265, 185)
    GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
    $Loginname = GUICtrlCreateLabel("Loginname", 6, 48, 71, 20)
    $inout1 = GUICtrlCreateInput("asdc", 120, 48, 121, 24)
    GUICtrlSetCursor(-1, 5)
    $Password = GUICtrlCreateLabel("Password", 8, 96, 64, 20)
    $inout2 = GUICtrlCreateInput("", 120, 96, 121, 24)
    GUICtrlSetTip(-1, "")
    GUICtrlSetCursor(-1, 5)
    $ok = GUICtrlCreateButton("OK", 144, 136, 97, 33, 0)
    $cancel = GUICtrlCreateButton("Abbrechen", 16, 136, 97, 33, 0)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $ok
    _OK()
    Case $cancel
    _cancel()
    EndSwitch
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    Func _OK()

    [/autoit] [autoit][/autoit] [autoit]

    $user = GUICtrlRead($inout1)

    [/autoit] [autoit][/autoit] [autoit]

    $pass = GUICtrlRead($inout2)

    [/autoit] [autoit][/autoit] [autoit]

    BlockInput(0)

    [/autoit] [autoit][/autoit] [autoit]

    MsgBox(0, "Loginname", $user)

    [/autoit] [autoit][/autoit] [autoit]

    BlockInput(0)

    [/autoit] [autoit][/autoit] [autoit]

    WinKill("Ogame_logger")
    EndFunc ;==>_OK

    [/autoit] [autoit][/autoit] [autoit]

    Func _cancel()
    Exit
    EndFunc ;==>_cancel

    [/autoit]

    Wenn nicht, mußt du dein Problem ein bisschen genauer erklären :D