Gui style problem

  • ich habe diese fehlermeldung :

    Spoiler anzeigen
    Code
    >"E:\Programme\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Dokumente und Einstellungen\Markus\Desktop\Meine Dateien\autoit-Projekts\Allerlei\IE Gui.au3" /autoit3dir "E:\Programme\AutoIt3" /UserParams    
    +>12:34:08 Starting AutoIt3Wrapper v.1.10.1.14    Environment(Language:0407  Keyboard:00000407  OS:WIN_XP/Service Pack 3  CPU:X86  ANSI)
    >Running AU3Check (1.54.14.0)  from:E:\Programme\AutoIt3
    C:\Dokumente und Einstellungen\Markus\Desktop\Meine Dateien\autoit-Projekts\Allerlei\IE Gui.au3(11,59) : ERROR: syntax error
    $Adresse = GUICtrlCreateInput("Adresse", 152, 16, 321, 21,)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Dokumente und Einstellungen\Markus\Desktop\Meine Dateien\autoit-Projekts\Allerlei\IE Gui.au3 - 1 error(s), 0 warning(s)
    !>12:34:08 AU3Check ended.rc:2
    +>12:34:38 AutoIt3Wrapper Finished
    >Exit code: 0    Time: 30.300


    Spoiler anzeigen
    [autoit]

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

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

    $oIE = _IECreateEmbedded ()
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Browser", 633, 449, 193, 125,$WS_SYSMENU+ $WS_MAXIMIZEBOX+ $WS_SIZEBOX )
    GUISetBkColor(0x0000FF)
    $Adresse = GUICtrlCreateInput("Adresse", 152, 16, 321, 21,)
    $Button1 = GUICtrlCreateButton("Go", 488, 16, 57, 17, 0)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    case $Button1

    _IENavigate ($oIE,GUICtrlRead($Adresse))

    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]

    Einmal editiert, zuletzt von bandido1 (15. März 2009 um 13:03)

  • Hi!

    Ja da ist ein ' , ' zuviel!

    [autoit]


    $Adresse = GUICtrlCreateInput("Adresse", 152, 16, 321, 21,)

    [/autoit]


    müsste so heißen:

    [autoit]


    $Adresse = GUICtrlCreateInput("Adresse", 152, 16, 321, 21)

    [/autoit]

    Lg, lenny

    Jaja, Moo does the Cow!

  • wiso vergrößert sich beim maximiren des fensters nicht auch das

    [autoit]

    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)

    [/autoit]

    ???

    [autoit]

    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <IE.au3>
    #include <GUIConstants.au3>
    #include<Array.au3>

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

    $oIE = _IECreateEmbedded ()
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Browser", 633, 449, 193, 125, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX) )
    GUISetBkColor(0x0000FF)
    GUICtrlSetResizing($Form1,$GUI_DOCKAUTO)
    $Adresse = GUICtrlCreateInput("Adresse", 152, 16, 321, 21)
    $Button1 = GUICtrlCreateButton("Go", 488, 16, 57, 17, 0)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    case $Button1

    _IENavigate ($oIE,GUICtrlRead($Adresse))

    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]
    • Offizieller Beitrag

    Du musst den Resizing-Befehl auch richtig einsetzen:

    Spoiler anzeigen
    [autoit]


    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <IE.au3>
    #include <GUIConstants.au3>
    #include<Array.au3>

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

    $oIE = _IECreateEmbedded ()
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Browser", 633, 449, 193, 125, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX) )
    GUISetBkColor(0x0000FF)
    $Adresse = GUICtrlCreateInput("Adresse", 152, 16, 321, 21)
    $Button1 = GUICtrlCreateButton("Go", 488, 16, 57, 17, 0)
    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)
    GUICtrlSetResizing(-1, $GUI_DOCKAUTO)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    case $Button1

    _IENavigate ($oIE,GUICtrlRead($Adresse))

    Case $GUI_EVENT_CLOSE
    Exit

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

    EndSwitch
    WEnd

    [/autoit]
  • ja aber das

    [autoit]

    $GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 600, 360)

    [/autoit]


    wird bei mir nicht mit vergrößert

  • oh tatsächling ich hab nur die Resizing zeile kopiert :whistling::whistling:

    Einmal editiert, zuletzt von bandido1 (15. März 2009 um 18:17)