Fehlersuche

12/27/2009 16:40 WieMeinen#1
Hi, ich hab ein Skript, welches aber nicht funktioniert. Der Button lässt sich aus irgendeinem Grund nicht drücken.
Hier is der Code:

PHP Code:
; Includes
#include <NoMadMemory.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
;GUI
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\philipp keil\desktop\autoit\gui.kxf
$GUI = GUICreate("Solitär Hack", 302, 152, 577, 295)
$Background = GUICtrlCreatePic("C:\Dokumente und Einstellungen\Philipp Keil\Desktop\Background.jpg", 0, 0, 300, 150, BitOR($SS_NOTIFY, $WS_GROUP, $WS_CLIPSIBLINGS))
$Autor = GUICtrlCreateLabel("P.K.", 277, 133, 24, 17)
$WantedPointsInput = GUICtrlCreateInput("0", 8, 56, 121, 21)
$CurrPointsLabel = GUICtrlCreateLabel("Curr. Points:", 16, 8, 129, 17)
$WantedPointsLabel = GUICtrlCreateLabel("How many Points do you want to have?", 8, 40, 192, 17)
$ChangeButton = GUICtrlCreateButton("Change Data", 72, 125, 195, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
    $nMsg 
= GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$ChangeButton
            MsgBox
(0,"","")
    EndSwitch
WEnd
;Functions
Func Change
()
msgBoX (0,"test","")
EndFunc 
Viell. findet ihr ja was.
12/27/2009 17:24 | Moep |#2
bei mir funzts...
12/28/2009 00:39 WieMeinen#3
Hmm lol...
12/28/2009 21:13 AllesVergeben#4
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $ChangeButton
MsgBox(0,"","")
EndSwitch
WEnd
;Functions
Func Change()
msgBoX (0,"test","")
EndFunc

Was hat der letzte Teil für einen Sinn?

Kannst du den Button nicht klicken, oder passiert nichts?
12/28/2009 21:30 kknb#5
die macht garkeinen sinn da die nicht aufgerufen wird, normal sollte ne leere msgbox aufpopen
12/31/2009 16:59 Busti#6
Bei mir funktionierts auch...

Schau mal ob deine MessageBox hinter deinem Fenster ist ? Also Minimiert?