GUICtrlCreateInput Fehler ?

  • Hallo Com,

    Ich habe in einem GUI ein Input erstellt aber da fehlt dieser blinkende strich, woran man merkt das man das feld angeklickt hat und rienschreiben kann...

    woran kann das liegen?

  • mein code ist:

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include <IE.au3>
    #include <Misc.au3>

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

    $dll = DllOpen("user32.dll")

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

    $hGui = GUICreate("IceBird", @DesktopHeight, @DesktopWidth, 0, 0)
    GUISetIcon(@ScriptDir &"/IceBird.ico")
    $datei = GUICtrlCreateMenu("Datei")
    GUICtrlCreateMenuItem("Schließen", $datei)
    $url_search = GUICtrlCreateInput("www.google.de", 100, 30, 550, 20)
    $object = ObjCreate("Shell.Explorer.2")
    $object_ctrl = GUICtrlCreateObj($object, 0, 147, @DesktopWidth, 918)
    _IENavigate($object, "www.google.de")
    $pic_top = GUICtrlCreatePic(@ScriptDir &"/top.jpg", 0, 0, @DesktopWidth, 80)
    GUICtrlSetState($pic_top, $GUI_DISABLE)
    $pic_bottom = GUICtrlCreatePic(@ScriptDir &"/bottom.jpg", 0, 1859, @DesktopWidth, 40)
    GUICtrlSetState($pic_bottom, $GUI_DISABLE)

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

    GUISetState(@SW_SHOW)
    GUISetState(@SW_MAXIMIZE)

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

    While 1
    $msg = GUIGetMsg()
    Switch $msg
    Case $GUI_EVENT_CLOSE
    Exit
    EndSwitch
    If _IsPressed("0D",$dll)Then
    _IENavigate($object, GUICtrlRead($url_search))
    EndIf
    While _IsPressed("0D") = 1
    WEnd
    WEnd

    [/autoit]
  • Also bei mir geht es, bis ich einen Linksklick auf die IE Fläche mache. Danach allerdings nicht mehr.