ich habe mal aus langeweile eine computer console gemacht und wie jeder probiert jeder sein script imer wieder und aufeinmal startet mein script eine exe dauerhaft obwohl der befhel nict eingegebn wurde
und sagt jetz nicht *das ist der reinste müll hör lieber auf zu scripten*
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
HotKeySet ("^!{s}","Show")
HotKeySet ("^!{h}","Hide")
HotKeySet ("^!{p}","Passwort")
$random = Random (0,99999999,1)
$Form1 = GUICreate($random, 347, 191, 230, 140, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE,$WS_Popup))
$input = GUICtrlCreateEdit("", 0, 0, 345, 81)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$List = GUICtrlCreateList("", 0, 80, 345, 110)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
GUICtrlSetData ($List,"Bitte das Passwort eingeben." & @CRLF)
While 1
WinActivate ($Form1)
$read = GUICtrlRead ($input)
If $read = "p" & $random Then
$test = WinSetTitle ($Form1,"","Computer Console")
GUICtrlSetData ($List,"")
GUICtrlSetData ($List,"Passwort richtig." & @CRLF)
GUICtrlSetData ($input,"")
GUICtrlSetData ($List,"Bitte Console aktiviren." & @CRLF)
While 1
$read = GUICtrlRead ($input)
If $read = "Hallo" Then
GUICtrlSetData ($List,"")
GUICtrlSetData ($List,"Hallo." & @CRLF)
GUICtrlSetData ($input,"")
While 1
$read = GUICtrlRead ($input)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
If $read = "Hallo" Then
GUICtrlSetData ($List,"Immer noch Hallo ^^." & @CRLF)
GUICtrlSetData ($input,"")
EndIf
If $read = "Delet" Then
GUICtrlSetData ($List,"")
GUICtrlSetData ($List,"Hallo.")
GUICtrlSetData ($input,"")
EndIf
If $read = "Musik" Then
GUICtrlSetData ($List,"Musik kommt." & @CRLF)
GUICtrlSetData ($input,"")
Run (@MyDocumentsDir & "\Eigene Musik\musik.m3u")
EndIf
If $read = "Metin2" Then
GUICtrlSetData ($List,"Welches Metin2 ?" & @CRLF)
GUICtrlSetData ($input,"")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
$read = GUICtrlRead ($input)
If $read = "Korea" Then
GUICtrlSetData ($List,"Metin2 Korea wird gestartet." & @CRLF)
GUICtrlSetData ($input,"")
ShellExecute ( "metin2.exe", "", "D:\Programme\Metin2453" )
ExitLoop
EndIf
If $read = "DE" Then
GUICtrlSetData ($List,"Metin2 DE wird gestartet." & @CRLF)
GUICtrlSetData ($input,"")
ShellExecute ( "metin2.exe", "", "D:\Programme\Metin2_Germany" )
ExitLoop
EndIf
WEnd
EndIf
WEnd
EndIf
WEnd
EndIf
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func Show ()
GUISetState (@SW_SHOW,$Form1)
EndFunc
Func Hide ()
GUISetState (@SW_HIDE,$Form1)
EndFunc
Func Passwort ()
$read = GUICtrlRead ($input)
GUICtrlSetData ($input,$read & $random)
EndFunc