2016-11-05 111 views
-1

AutoIT不会点击类似按钮。AutoIT - 不点击

Case $start 
       _IENavigate($oIE, "http://kingdomlikes.com/free_points/youtube-likes") 
       sleep(5000) 
       For $i = 1 To $repeat1 

        Local $oInputs = _IETagNameGetCollection($oIE, "button") 
        For $oInput In $oInputs 
        If $oInput.classname == "button blue" Then _IEAction($oInput, "click") 

        Next 

        Sleep(5000) 

        WinActivate("YouTube - Internet Explorer") 

        Local $oInputs = _IETagNameGetCollection($oIE, "button") 
        For $oInput In $oInputs 
        If $oInput.classname == "yt-uix-button yt-uix-button-size-default yt-uix-button-opacity yt-uix-button-has-icon no-icon-markup like-button-renderer-like-button like-button-renderer-like-button-clicked yt-uix-button-toggled yt-uix-post-anchor yt-uix-tooltip" Then _IEAction($oInput, "click") 

        Sleep(1000) 

        Next 


       Next 

我想AutoIt的点击,在弹出的新窗口等按钮,而是AutoIt的只是打开许多不同的YouTube窗口和螺丝了。

+3

可能的复制|点击一个Div按钮|浏览器](http://stackoverflow.com/questions/40436811/autoit-click-on-a-div-button-browser) – Samoth

+2

现在停止发布您的答案一遍又一遍。如有需要,您可以编辑您的答案。 – Samoth

+1

您的链接重定向到“http://127.0.0.1:8080/” - 这是您计算机上的本地http服务器,所以其他人无法帮助您完成此操作。 – Samoth

回答

0

我终于可以单击“不可点击菜单项”使用下面的代码:

Func _IEMyFullClick($oElement) 
    ;Function to perform full click 
    $oElement.fireEvent("onmousedown") 
    $oElement.fireEvent("onmouseup") 
    _IEAction($oElement, "click") 
EndFunc 
[的AutoIt