Shell Excute Geht nicht

  • Das ist Mein Haupt Scirpt

    [autoit]

    ; -- Created with ISN Form Studio 2 for ISN AutoIt Studio -- ;
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #Include <GuiButton.au3>
    #include <Function.au3> ; Wo die Webseite Funktion Drinnen ist

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    $Start = GUICreate("Startbildschirm",452,196,-1,-1,-1,-1)
    $BGimage = GUICtrlCreatePic("C:\Users\Felix\Documents\ISN AutoIt Studio\Projects\Tsuminer\Images\Unbenannt-1.jpg",0,0,452,196,67108864)
    guictrlsetstate(-1,$GUI_DISABLE)
    GUICtrlCreateLabel("Willkommen by TsuKey"&@crlf&""&@crlf&"Key = Hotkey Tsu = Tsurata"&@crlf&""&@crlf&"Webseite : http://www.sf19012.de/Tsukey"&@crlf&""&@crlf&"Version : (None)"&@crlf&""&@crlf&"Skype : sf19012",10,11,307,197,-1,-1)
    GUICtrlSetFont(-1,13,700,2,"Klavika Bold Caps")
    GUICtrlSetColor(-1,"0xFF8000")
    GUICtrlSetBkColor(-1,"-2")
    GUICtrlCreateButton("Weiter",330,20,100,30,-1,-1)
    GUICtrlSetState(-1,16)
    GUICtrlCreateButton("Besuchen",330,80,100,30,-1,-1)
    GUICtrlSetOnEvent(-1,"Webseite") ; Funktion um die es geht
    GUISetState(@SW_SHOW,$Start)

    [/autoit][autoit][/autoit][autoit][/autoit][autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    [/autoit][autoit][/autoit][autoit]

    EndSwitch
    WEnd

    [/autoit]

    Und Hier die Funktion Webseite wo das Shell excute ist

    [autoit]

    #region BefehleNeu ;Die Befehle Habe ich noch nicht Zugeordnet !!!
    Func Webseite ()
    ShellExecute ("http://www.sf19012.de/TsuKey")
    EndFunc

    [/autoit][autoit][/autoit][autoit]

    #endregion

    [/autoit]

    Die Webseite Wird nicht geöffnet
    Muss irgend wie am Button liegen also im Oberen Skript habe ich heraus gefunden

    Einmal editiert, zuletzt von sf190 (7. März 2013 um 17:30) aus folgendem Grund: Muss irgend wie am Button liegen also im Oberen Skript habe ich heraus gefunden

  • Du musst dich zwischen "GUiGetMsg" oder GUIEventMode entscheiden.

    Lies dir mal die Hilfeseite zu GUISetOnEvent durch ;)

    Mfg

    There's a joke that C has the speed and efficieny of assembly language combined with readability of....assembly language. In other words, it's just a glorified assembly language. - Teh Interwebz

    C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, you blow off your whole leg. - Bjarne Stroustrup
    Genie zu sein, bedeutet für mich, alles zu tun, was ich will. - Klaus Kinski

  • Problem Kommplet Gelöst danke

    2 Mal editiert, zuletzt von sf190 (7. März 2013 um 17:46)