quimao

make a action click on button in this webpage

4 posts in this topic

#1 ·  Posted (edited)

i have a problem for making a action click button "all" in this webpage :http://mixupload.com/en/styles/house. Actually, my knowledge  is limited, sorry about that

Edited by quimao

Share this post


Link to post
Share on other sites



Hi. You can do something like this.

 

#include <IE.au3>

Local $oIE = _IECreate("http://mixupload.com/en/styles/house")


Local $aArray = _IEGetObjByClass($oIE, "fltr_button switcher all  right", "a")
Local $oAll = $aArray[1]

_IEAction($oAll,"click")

Func _IEGetObjByClass($oIE, $sClass, $sTag = "*")
    Local $aRet[1] = [0]

    Local $allHTMLTags = _IETagNameGetCollection($oIE, $sTag)
    For $o In $allHTMLTags
        If IsString($o.className) And $o.className = $sClass Then
            $aRet[0] += 1
            ReDim $aRet[$aRet[0] + 1]
            $aRet[$aRet[0]] = $o
        EndIf
    Next

    Return $aRet
EndFunc   ;==>_IEGetObjByClass

Saludos

1 person likes this

Share this post


Link to post
Share on other sites

Danyfirex

OH MY GOD, why your funtion is not added to the AutoIt? it's so amazing  and it worked very fine. Thank for your help

Share this post


Link to post
Share on other sites

It is not mine. Glad to help you.

 

Saludos

 

Share this post


Link to post
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