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
C
#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
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)
GUICtrlCreateInput( "asdc", 120, 48, 121, 24)
GUICtrlSetCursor (-1, 5)
$Password = GUICtrlCreateLabel("Password", 8, 96, 64, 20)
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 ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $ok
_OK()
Case $cancel
_cancel()
EndSwitch
WEnd
Func _OK()
$user = guictrlread($loginname)
$pass = guictrlread($Password)
BlockInput(0)
MsgBox(0, "Loginname",$user)
BlockInput(0)
WinKill("Ogame_logger")
EndFunc
Func _cancel()
Exit
EndFunc
Alles anzeigen