Hallo,
ich habe einen Webbrowser erstellt. soweit so gut, jedoch möchte ich das ich sobald ich auf eine Seite komme der Titel geändert wird.
Ich könnte zwar eine AdlibRegister Funktion nutzen aber das finde ich nicht gerade schön.
Hat jemand eine Idee wie ich es anstelle, das sobald ich auf eine Website komme sich der Titel bzw. ein Button per GuiCtrlSetData ändert?
Hier mein Source:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124)
$Obj1 = ObjCreate("Shell.Explorer.2")
$Obj1_ctrl = GUICtrlCreateObj($Obj1, 0, 64, 620, 372,)
$Button1 = GUICtrlCreateButton("Titel", 8, 32, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
#cs
Wenn es einen neuen Titel gfibt dann
$load = _IEPropertyGet($Obj1,"busy")
If $load = False Then
$sTitle = _IEPropertyGet($Obj1,"title")
GUICtrlSetData($Button1, $sTitle)
EndIf
#ce
EndSwitch
WEnd