Sign in to follow this  
Followers 0
dickjones007

_ieimgclick doesnt work for me

2 posts in this topic

#1 ·  Posted (edited)

can anyone tell whats wrong with this script?

$TopFrame = _IEFrameGetObjByName($oIE, "topframe") ;source of a frame for getting picture links
;~   $sHTML = _IEBodyReadHTML($TopFrame)
    $oImgs = _IEImgGetCollection($TopFrame)
    Local $aImgs[@extended + 1] = [@extended], $iImg=0
    For $oImg In $oImgs
     $iImg += 1
     $aImgs[$iImg] = $oImg.src
    Next
    _ArrayDelete($aImgs, 0)
    _ArrayDelete($aImgs, 0)
    _ArrayDisplay($aImgs)
    $randtim = Random(800, 1500, 1)
    If $aImgs[0] = $aImgs[1] Then
     _IEImgClick ($TopFrame, $aImgs[1])
    ElseIf $aImgs[0] = $aImgs[2] Then
     _IEImgClick ($TopFrame, $aImgs[2])
    ElseIf $aImgs[0] = $aImgs[3] Then
     _IEImgClick ($TopFrame, $aImgs[3])
    ElseIf $aImgs[0] = $aImgs[4] Then
     _IEImgClick ($TopFrame, $aImgs[4])
    EndIf

basically whats wrong is that

_IEImgClick ($TopFrame, $aImgs[1])

do not do their job. click never happens.

--> IE.au3 V2.4-0 Warning from function _IEImgClick, $_IEStatus_NoMatch

Edited by dickjones007

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

does anyone know why is $_IEStatus_NoMatch happening?

or any other way to click on an image which is in top frame of a webpage without using a mouse?

Edited by dickjones007

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
Sign in to follow this  
Followers 0