ToolWindow erstellen: $WS_EX_TOOLWINDOW wird nicht gefunden

  • Hallo AutoIT-User,
    ich habe gerade versucht mit Koda ein ToolWindow(Oder Gadget-Window) zu erstellen, was leider mit dieser Fehlermeldung fehlschlägt:

    [Blockierte Grafik: http://img269.imageshack.us/img269/2637/autoitkodaerror.jpg]

    Der von Koda erstellte Code:

    [autoit]

    #include <GUIConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form3 = GUICreate("Form1", 413, 306, 218, 132, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

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

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

    EndSwitch
    WEnd

    [/autoit]

    So soll das Fenster später aussehen (Ohne das Raster :-)):
    [Blockierte Grafik: http://img225.imageshack.us/img225/5709/toolwindowform1koda.jpg]

    Koda-Version:1.7.0.1
    AutoIT-Version: 3.3.0.0
    OS: Windows XP

    Danke im voraus für die Hilfe.
    Dr.Doktor

  • Hallo Dr.Doktor,

    da fehlt ein #include:

    [autoit]

    #include <WindowsConstants.au3>
    #include <GUIConstants.au3>

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

    #Region ### START Koda GUI section ### Form=
    $Form3 = GUICreate("Form1", 413, 306, 218, 132, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

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

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

    EndSwitch
    WEnd

    [/autoit]

    mfg (Auto)Bert