Jump to content

How to click on this button?


Pagii
 Share

Recommended Posts

 

Hello, I´m new here so don´t be unkind on me plz. :)   I´m learning new things in AutoIt about HTML automation. I have a problem.

<div class="cooldown_bar_text" id="cooldown_bar_text_ct">Do Circu Turma</div>

Button has got also these parameters :

<a class="cooldown_bar_link" href="index.php?sh=cc3040348aeb181ecec42bc8a9e61497"></a>

 

This is the HTML code. I´ve tried already this method but it´s not working.

 

 Func circusprovinciarum()
    $currenturl = _IEPropertyGet($oIE,"locationurl")
    $urldownload = BinaryToString(InetRead($currenturl,1))
    ;MsgBox($MB_SYSTEMMODAL,"test",$urldownload)
      Local $ct = _IEGetObjById($oIE,"cooldown_bar_text_ct")
    If StringInStr($urldownload,"Do Circu Turma            </div>") Then
      ConsoleWrite("It´s here")
           _IEAction($ct, 'click')
    EndIf

   EndFunc

Is there any problem? Or this code is totally wrong? Thx for help.

Link to comment
Share on other sites

As you are new here, please make sure to review the Forum Rules, particularly this part --

Quote

1. Do not ask for help with AutoIt scripts, post links to, or start discussion topics on the following subjects:

  • Launching, automation or script interaction with games or game servers, regardless of the game.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...