Browser Hilfe Vor - und Zurück

  • Ich brauche hilfe ist es irgendwie möglich auszulesen ob man nicht weiter Vor - und oder zurück kann?

    hier das script :

    Spoiler anzeigen
    [autoit][/autoit] [autoit][/autoit] [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    ;~ #include <WindowsConstants.au3>
    $oIE = ObjCreate("Shell.Explorer.2")
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("AutoIt Browser", 1024, 768, 192, 124)
    $Datei = GUICtrlCreateMenu("Datei")
    $Schliesen = GUICtrlCreateMenuItem("Close", $Datei)
    $Optionen = GUICtrlCreateMenu("Optionen")
    $Einstellung = GUICtrlCreateMenuItem("Config",$Optionen)
    $URL = GUICtrlCreateLabel("URL = ", 0, 8, 47, 17, $SS_CENTERIMAGE)
    GUICtrlSetFont(-1, 10, 800, 2, "PMingLiU")
    $Go = GUICtrlCreateButton("Go", 862, 8, 74, 22, BitOR($BS_DEFPUSHBUTTON, $WS_GROUP))
    $Refresh = GUICtrlCreateButton("Refresh", 936, 8, 74, 22, $WS_GROUP)
    $Foward = GUICtrlCreateButton("Forward", 72, 32, 75, 25, $WS_GROUP)
    $Back = GUICtrlCreateButton("Back", 0, 32, 75, 25, $WS_GROUP)
    $oForm = GUICtrlCreateObj($oIE, 8, 64, 1009, 681)
    $LINK = GUICtrlCreateCombo("http://www.Google.de/", 48, 8, 814, 25)
    GUICtrlSetData(-1, "http://www.AutoIt.de|http://www.YouTube.de")
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    $oIE.document.body.scroll = "no"
    $oIE.Navigate(GUICtrlRead($LINK))
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $Einstellung
    MsgBox(64,"INFO","Hier kommt bald eine Konfigurations GUI hin")
    Case $Schliesen
    Exit
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Back
    $oIE.GoBack
    Case $Foward
    $oIE.GoForward
    Case $Go
    $oIE.Navigate(GUICtrlRead($LINK))
    GUICtrlSetData($LINK, GUICtrlRead($LINK))
    EndSwitch
    WEnd

    [/autoit]
    [autoit]


    #cs-----------------------------------------------------------------------------
    Hilfe ist immer gut also nimmt sie an ^^
    #ce-----------------------------------------------------------------------------

    [/autoit]
    • Offizieller Beitrag

    Hallo,

    Du musst doch nur mitzählen wie oft die Seite gewechselt wurde und wie oft Du schon zurück bzw. vor gegangen bist oder Du schreibst die Seiten in ein Array dann hast Du auch gleich eine History.

  • wie mache ich das?

    [autoit]


    #cs-----------------------------------------------------------------------------
    Hilfe ist immer gut also nimmt sie an ^^
    #ce-----------------------------------------------------------------------------

    [/autoit]