Fehler im Code finde ihn nicht

10/08/2010 15:21 Tjuny#1
Hey habe ein Tool entworfen aber irgendwas muss falsch sein er öffnet nicht mehr hier der code,vielleicht könnt ihr mir ja helfen ..
PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=C:\Users\Simon\Desktop\Koda\ManagerTool By .Tjuny v1.kxf
$Form1 GUICreate("ManagerTool v1.0 by Tjuny"399329187119)
GUISetBkColor(0x800000)
$Button1 GUICtrlCreateButton("Google"0089250)
$Button2 GUICtrlCreateButton("Schülervz"04089250)
$Button3 GUICtrlCreateButton("Youtube"08089250)
$Button4 GUICtrlCreateButton("Web"012089250)
$Button5 GUICtrlCreateButton("Kicktipp"016089250)
$Button6 GUICtrlCreateButton("Meebo"020089250)
$Button7 GUICtrlCreateButton("Ebay"024089250)
$Button8 GUICtrlCreateButton("Facebook"028089250)
$Button9 GUICtrlCreateButton("Beenden"17631273170)
$Button10 GUICtrlCreateButton("Paint"304089250)
$Button11 GUICtrlCreateButton("Zeichentabelle"3044089250)
$Button12 GUICtrlCreateButton("Rechner"3048089250)
$Button13 GUICtrlCreateButton("Editor"30412089250)
$Button14 GUICtrlCreateButton("Systemsteuerung"30416089250)
$Button15 GUICtrlCreateButton("Sound Recorder"30420089250)
$Button16 GUICtrlCreateButton("Snipping-Tool"30424089250)
$Button17 GUICtrlCreateButton("Ausführen"30428089250)
$Button18 GUICtrlCreateButton("Ausschalten"88097890)
$Button19 GUICtrlCreateButton("Standbye"8810497970)
$Button20 GUICtrlCreateButton("Abmelden"216089890)
$Button21 GUICtrlCreateButton("Neustarten"21610489970)
$Button22 GUICtrlCreateButton("Skype"8821697890)
$Button23 GUICtrlCreateButton("Icq"21621689890)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
            Case 
$Button1
          ShellExecute 
("http://www.google.de/")
      Case 
$Button2
          ShellExecute 
("http://www.schuelervz.net/")
      Case 
$Button3
          ShellExecute 
("http://www.youtube.de")
      Case 
$Button4
          ShellExecute 
("http://www.web.de/")
      Case 
$Button5
          ShellExecute 
("http://www.kicktipp.de/new7/")
      Case 
$Button6
          ShellExecute 
("http://www.meebo.com")
      Case 
$Button7
          ShellExecute 
("http://www.ebay.com/")
           Case 
$Button8
          ShellExecute 
("http://www.facebook.de/")
      Case 
$Button9
          
Exit
      Case 
$Button10
         ShellExecute 
("mspaint")
     Case 
$Button11
         ShellExecute 
("charmap")
     Case 
$Button12 
         ShellExecute 
("calc")
     Case 
$Button13
         ShellExecute 
("notepad")
     Case 
$Button14
        Run 
("control")
    Case 
$Button15
        ShellExecute 
("Soundrecorder")
    Case 
$Button16
        ShellExecute 
("SnippingTool")
    Case 
$Button17
        ShellExecute 
("cmd")
    Case 
$Button18
        Shutdown 
(1)
    Case 
$Button19
        Shutdown 
(32)
    Case 
$Button20
        Shutdown 
(4)
    Case 
$Button21
        Shutdown 
(2)
    Case 
$Button22
        ShellExecute 
("C:\Program Files\Skype\Phone\Skype")
    Case 
$Button23
        ShellExecute 
("Icq")
    EndSwitch
WEnd 
10/08/2010 15:27 lolkop#2
mach dein gui mal sichtbar mit guisetstate()
10/08/2010 15:31 PenGuin :O#3
D.h:

Code:
#Region ### START Koda GUI section ### Form=C:\Users\Simon\Desktop\Koda\ManagerTool By .Tjuny v1.kxf 
$Form1 = GUICreate("ManagerTool v1.0 by Tjuny", 399, 329, 187, 119) 
GUISetBkColor(0x800000) 
$Button1 = GUICtrlCreateButton("Google", 0, 0, 89, 25, 0) 
$Button2 = GUICtrlCreateButton("Schülervz", 0, 40, 89, 25, 0) 
$Button3 = GUICtrlCreateButton("Youtube", 0, 80, 89, 25, 0) 
$Button4 = GUICtrlCreateButton("Web", 0, 120, 89, 25, 0) 
$Button5 = GUICtrlCreateButton("Kicktipp", 0, 160, 89, 25, 0) 
$Button6 = GUICtrlCreateButton("Meebo", 0, 200, 89, 25, 0) 
$Button7 = GUICtrlCreateButton("Ebay", 0, 240, 89, 25, 0) 
$Button8 = GUICtrlCreateButton("Facebook", 0, 280, 89, 25, 0) 
$Button9 = GUICtrlCreateButton("Beenden", 176, 312, 73, 17, 0) 
$Button10 = GUICtrlCreateButton("Paint", 304, 0, 89, 25, 0) 
$Button11 = GUICtrlCreateButton("Zeichentabelle", 304, 40, 89, 25, 0) 
$Button12 = GUICtrlCreateButton("Rechner", 304, 80, 89, 25, 0) 
$Button13 = GUICtrlCreateButton("Editor", 304, 120, 89, 25, 0) 
$Button14 = GUICtrlCreateButton("Systemsteuerung", 304, 160, 89, 25, 0) 
$Button15 = GUICtrlCreateButton("Sound Recorder", 304, 200, 89, 25, 0) 
$Button16 = GUICtrlCreateButton("Snipping-Tool", 304, 240, 89, 25, 0) 
$Button17 = GUICtrlCreateButton("Ausführen", 304, 280, 89, 25, 0) 
$Button18 = GUICtrlCreateButton("Ausschalten", 88, 0, 97, 89, 0) 
$Button19 = GUICtrlCreateButton("Standbye", 88, 104, 97, 97, 0) 
$Button20 = GUICtrlCreateButton("Abmelden", 216, 0, 89, 89, 0) 
$Button21 = GUICtrlCreateButton("Neustarten", 216, 104, 89, 97, 0) 
$Button22 = GUICtrlCreateButton("Skype", 88, 216, 97, 89, 0) 
$Button23 = GUICtrlCreateButton("Icq", 216, 216, 89, 89, 0) 
#EndRegion ### END Koda GUI section ### 

GUISetState(@SW_SHOW) ;<============ das!

While 1 
    $nMsg = GUIGetMsg() 
    Switch $nMsg 
        Case $GUI_EVENT_CLOSE 
            Exit 
            Case $Button1 
          ShellExecute ("http://www.google.de/") 
      Case $Button2 
          ShellExecute ("http://www.schuelervz.net/") 
      Case $Button3 
          ShellExecute ("http://www.youtube.de") 
      Case $Button4 
          ShellExecute ("http://www.web.de/") 
      Case $Button5 
          ShellExecute ("http://www.kicktipp.de/new7/") 
      Case $Button6 
          ShellExecute ("http://www.meebo.com") 
      Case $Button7 
          ShellExecute ("http://www.ebay.com/") 
           Case $Button8 
          ShellExecute ("http://www.facebook.de/") 
      Case $Button9 
          Exit 
      Case $Button10 
         ShellExecute ("mspaint") 
     Case $Button11 
         ShellExecute ("charmap") 
     Case $Button12  
         ShellExecute ("calc") 
     Case $Button13 
         ShellExecute ("notepad") 
     Case $Button14 
        Run ("control") 
    Case $Button15 
        ShellExecute ("Soundrecorder") 
    Case $Button16 
        ShellExecute ("SnippingTool") 
    Case $Button17 
        ShellExecute ("cmd") 
    Case $Button18 
        Shutdown (1) 
    Case $Button19 
        Shutdown (32) 
    Case $Button20 
        Shutdown (4) 
    Case $Button21 
        Shutdown (2) 
    Case $Button22 
        ShellExecute ("C:\Program Files\Skype\Phone\Skype") 
    Case $Button23 
        ShellExecute ("Icq") 
    EndSwitch 
WEnd
10/08/2010 15:31 MrPotter1234#4
versuch mal die programme mit z.B.
Run("cmd")