自动点击文字
首先搜索文字"可以点击"然后自动点击"可以点击"这个连接请问怎么做的啊 谢谢 直接用IE.AU3的文字点击就可以如果这个链接不是固定出现就加个判断
IF _IELinkClickByText($oIE,‘文字') THEN 没看明白呢哈 文字点击,我也想知道 发送鼠标命令到指定文字? #include <IE.au3>
$oIE = _IE_Example ("basic")
_IELinkClickByText ($oIE, "user forum")
; *******************************************************
; Example 2 - Open browser to the AutoIt homepage, loop through the links
; on the page and click on the link with text "wallpaper"
; using a sub-string match.
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate("http://www.autoitscript.com")
$sMyString = "wallpaper"
$oLinks = _IELinkGetCollection($oIE)
For $oLink in $oLinks
$sLinkText = _IEPropertyGet($oLink, "innerText")
If StringInStr($sLinkText, $sMyString) Then
_IEAction($oLink, "click")
ExitLoop
EndIf
Next 这个主题已经有相应的回复了,建议多使用搜索功能啊。。。
页:
[1]