Jump to content
Sign in to follow this  

Need to improve code (button clicking in frame)

Recommended Posts

Hello, I didnt used autoit for long time and I need to make script which would click button in frames.

It works for one time but I cant use it again cos I know that some kind of loop are running.

$oFrame = _IEFrameGetCollection($oIE, 0)
$colForms = _IEFormGetCollection($oFrame)
$iFormCnt = @extended
$iForm = 0
For $oForm In $colForms
$colElem = _IEFormElementGetCollection($oForm)
$iElemCnt = @extended

$iElem = 0
For $oElem In $colElem
IF _IEFormElementGetValue($oElem) = "button" Then
_IEFormSubmit ($oForm)
$iElem += 1
$iForm += 1

I know that in site is only one frame so I think I dont need one loop.


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...