2016-11-05 35 views
-1

AutoITはlikeボタンをクリックしません。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のは、単に多くの異なったユーチューブの窓やネジを開きます。

+3

[のAutoItの可能性の重複を| 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

私は最終的に次のコードで「unclickableメニューエントリ」をクリックできます。

Func _IEMyFullClick($oElement) 
    ;Function to perform full click 
    $oElement.fireEvent("onmousedown") 
    $oElement.fireEvent("onmouseup") 
    _IEAction($oElement, "click") 
EndFunc 
関連する問題