找回密码
 加入
搜索
查看: 3266|回复: 6

[AU3基础] 自动点击文字

  [复制链接]
发表于 2010-10-18 14:48:01 | 显示全部楼层 |阅读模式
首先搜索文字"可以点击"  然后自动点击"可以点击"这个连接
请问怎么做的啊 谢谢
发表于 2010-10-18 18:16:00 | 显示全部楼层
直接用IE.AU3的文字点击就可以  如果这个链接不是固定出现就加个判断
IF _IELinkClickByText($oIE,‘文字') THEN
发表于 2010-10-18 23:56:57 | 显示全部楼层
没看明白呢哈
发表于 2010-10-19 01:48:47 | 显示全部楼层
文字点击,我也想知道
发表于 2010-10-19 04:09:23 | 显示全部楼层
发送鼠标命令到指定文字?
发表于 2010-10-20 04:35:25 | 显示全部楼层
#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
发表于 2010-10-20 15:52:37 | 显示全部楼层
这个主题已经有相应的回复了,建议多使用搜索功能啊。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-20 21:12 , Processed in 0.076682 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表