Jump to content

Recommended Posts

Posted

 

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.

Posted (edited)

Why not try yourself? Can you specify what website are you talking about? This information would turn out to be helpful.

Edited by Au3Builder

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
×
×
  • Create New...