本帖最后由 gzh888666 于 2020-1-14 08:14 编辑
请教如何删除GUI内嵌网页中的我注释掉的元素,也就是#CS #CE之间的这些元素,IE操作不懂,在论坛搜索并未搜索到。
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
;#include <Array.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$oIE = _IECreateEmbedded ()
$Form1 = GUICreate("", 1059, 659, -1, -1)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
Global $GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, 1059, 659)
GUISetState(@SW_SHOW)
_IENavigate ($oIE,'http://music.zhuolin.wang/',0)
;Local $oInputs = _IETagNameGetCollection ($GUIActiveX,'SPAN.btn')
;_ArrayDisplay ($oInputs)
While 1
Sleep(100)
WEnd
Func Form1Close()
Exit
EndFunc
#CS
music.zhuolin.wang###btn-area > A:last-child > SPAN.btn
music.zhuolin.wang###btn-area > A:nth-child(5) > SPAN.btn
music.zhuolin.wang###layui-layer1
music.zhuolin.wang###layui-layer-shade1
#CE
|