kfs987 Posted June 10, 2013 Posted June 10, 2013 this <span class="rodape">fjbsdfjdfjslfshflsdafnasdf</span> to <span class="rodape"></span> or <span class="rodape" style="display=none">fjbsdfjdfjslfshflsdafnasdf</span>
Nessie Posted June 10, 2013 Posted June 10, 2013 What exactly do you want to do? Do you have a .html saved somewhere?Hi! My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s). My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all! My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file
mrflibblehat Posted June 10, 2013 Posted June 10, 2013 (edited) Maybe something like this Local $String = "<span class=""rodape"">fjbsdfjdfjslfshflsdafnasdf</span>" $NewString = StringRegExpReplace($String, "(<span[^>]+>).*?(</span>)", "\1\2") ConsoleWrite($NewString) Edited June 10, 2013 by mrflibblehat [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font]
DW1 Posted June 10, 2013 Posted June 10, 2013 If you are looking to do this with IE.au3, you could extend the functionality of _IETagNameAllGetCollection to loop through attributes that each tag contains. #include<IE.au3> #include<array.au3> $oIE = _IE_Example("basic") $aTest = _IETagGetInfo($oIE) _ArrayDisplay($aTest) Func _IETagGetInfo($oIE, $sDelim = ' = ') If $sDelim = -1 Then $sDelim = ' = ' Local $oElements = _IETagNameAllGetCollection($oIE) If @error Then Return SetError(@error, @extended, 0) Else $iNumEle = @extended EndIf Dim $aTags[$iNumEle][100] $i = 0 $iMaxPar = 0 For $oElement In $oElements $aTags[$i][0] = $oElement.tagname $oAttribs = $oElement.attributes $a = 1 For $oAttrib In $oAttribs If $oAttrib.specified Then $aTags[$i][$a] = $oAttrib.nodeName & $sDelim & $oAttrib.nodeValue $a += 1 If $a > $iMaxPar Then $iMaxPar = $a EndIf Next $i += 1 Next ReDim $aTags[$iNumEle][$iMaxPar] Return $aTags EndFunc ;==>_IETagGetInfo AutoIt3 Online Help
kfs987 Posted June 11, 2013 Author Posted June 11, 2013 example #include<IE.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #NoTrayIcon HotKeySet('{esc}', '_Exit') $IE_Load = _IECreateEmbedded() $Form1 = GUICreate("Form1", 627, 443, 192, 124,$WS_SYSMENU, $WS_EX_TOOLWINDOW + $WS_EX_TOPMOST) $IE_Frame = GUICtrlCreateObj($IE_Load, 0, 0, 624, 400) GUISetState(@SW_SHOW) _IENavigate($IE_Load, "http://iphone.meuguia.tv/programacao/categoria/Todos") Func _Exit() Exit EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now