Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Need to improve code (button clicking in frame)

$
0
0
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.

[ autoit ]      
$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 ConsoleWrite("found") _IEFormSubmit ($oForm) EndIf $iElem += 1 Next $iForm += 1 Next


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

Viewing all articles
Browse latest Browse all 12506

Trending Articles