Problem mit script

06/14/2012 18:38 troley#1
Hallo , ich habe ein Problem mit meinem AutoIt script

Ich habe hier den Koda Script mit denn Buttons Bildern und co .
und hier kommt der fehler :

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox ( 64,"NosTown" , "Spiel startet....")
$passwort = InputBox("NosTown " , "Passwort hier eingeben." )
If $password = "12345" Then
Run ("c:\users\gamer\desktop\nostown\nostown.dat\game. exe")

Case $Button2
Exit
Case $Button4
EndSwitch
WEnd


Wieso will er net starten ????
Bitte um hilfe !
06/14/2012 20:15 Freddy​#2
So sollte es gehen.
PHP Code:
While 1
   $nMsg 
GUIGetMsg()
   Switch 
$nMsg
      
Case $GUI_EVENT_CLOSE
         
Exit
      Case 
$Button1
         MsgBox
(64,"NosTown","Spiel startet....")
         If 
InputBox("NosTown " "Passwort hier eingeben." ) = "12345" Then Run("c:\users\gamer\desktop\nostown\nostown.dat\game. exe")
      Case 
$Button2
         
Exit
      Case 
$Button4
   
EndSwitch
WEnd 
06/15/2012 19:22 troley#3
Thx er funktioniert =D
06/17/2012 21:46 Tobolobo#4
[Only registered and activated users can see links. Click Here To Register...]

und dein Fehler war, dass du einmal $password und einmal $passwort genommen hast und endif fehlte