Hmmm, wie mache wenn ich nur einen Teil vom HTML-Code angezeigt bekommen möchte im embedded browser?
Beispiel von fefes blog:
<h2><a href="/" style="text-decoration:none;color:black">Fefes Blog</a></h2> <b>Wer schöne Verschwörungslinks für mich hat: ab an felix-bloginput (at) fefe.de!</b> <p align=right>Fragen? <a href="/faq.html">Antworten!</a> Siehe auch: <a href="http://alternativlos.org/">Alternativlos</a><p><h3>Wed Jul 6 2011</h3>
Wenn ich als Ausgabe nur einen Teil, wie z.B. folgendes haben möchte:
<b>Wer schöne Verschwörungslinks für mich hat: ab an felix-bloginput (at) fefe.de!</b> <p align=right>Fragen? <a href="/faq.html">Antworten!</a>
hmmm ich hatte es mit _StringBetween() versucht, aber es ist ja kein array !?
Wie mache ich das jetzt?
au3:
Spoiler anzeigen
#include <GuiConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <WindowsConstants.au3>
#include <GuiEdit.au3>
#Include <File.au3>
#Include <WinAPI.au3>
#include <Constants.au3>
#include <IE.au3>
#include <Misc.au3>
#include <Array.au3>
#include <String.au3>
#NoTrayIcon
dim $termGUI = ""
dim $oIE1 = _IECreateEmbedded()
$hGUI_1 = GUICreate("Test-Anzeige", 1000, 1000, 0, 0)
$termGUI = GUICtrlCreateInput("", 5, 5, 300, 25, BitOR($ES_CENTER,$ES_AUTOHSCROLL,$ES_NOHIDESEL))
GUICtrlSetState($termGUI, $GUI_FOCUS)
$hButton_1 = GUICtrlCreateButton("Search", 310, 5, 50, 25, 0)
$hButton_2 = GUICtrlCreateButton("Clear", 365, 5, 50, 25, 0)
$Tab1 = GUICtrlCreateTab(5, 40, 990, 935)
$TabSheet1 = GUICtrlCreateTabItem("Tab1")
$GUIemb1 = GUICtrlCreateObj($oIE1, 15, 65, 970, 895)
;~ $TabSheet2 = GUICtrlCreateTabItem("Tab2")
[/autoit] [autoit][/autoit] [autoit]GUISetState()
[/autoit] [autoit][/autoit] [autoit];##########################################
Do
$msg = GUIGetMsg()
Select
Case $msg = $hButton_2
GUICtrlSetData($termGUI, "")
GUICtrlSetState($termGUI, $GUI_FOCUS)
Case $msg = $hButton_1
$sHTML = BinaryToString(InetRead("http://blog.fefe.de/"))
;~ $aMatch = StringRegExp($sHTML, ????????????????????????????????????????????)
_IENavigate($oIE1, "about:blank", 0)
_IEDocWriteHTML ($oIE1, $sHTML)
EndSelect
Until $msg = $GUI_EVENT_CLOSE;To be able to close the Window!
Exit