Jump to content
Sign in to follow this  

Help: _IE functions

Recommended Posts


Hi all,

I have been trying unsuccessfully to write code that will click on a webpage SEND button using a variety of the _IE functions. The segment of code containing the button is listed below; as you can see it uses javascript calls. At present I am using AutoIt to press the button by positioning the mouse via a number of steps, but I was hoping to streamline this method. This is the only instance the SEND button appears on the page.

Can someone help me out.

<div class="fp_line">
<a href="javascript:;" onclick="checkOfflineFP()" class="btn_80" style="float:right;">SEND</a> <a href="javascript:;" onclick="fpOfflineCancel()" class="btn_80" style="float:right;">CANCEL</a></div>

The browser is IE8

The tab title is The Web Page ยป My homepage



Edited by rodkay

Share this post

Link to post
Share on other sites

the button has an onclick action, so it must be clicked.

Try _IEAction($oText, "click")

If it still doesn't work, IE.au3 will give you a better error message.


$oFrame = _IEFrameGetObjByName($oIE, "body_Frame")

$oButton = _IEGetObjById($oFrame, "Button_Name")

_IEAction($oButton, "click")




ControlSend($oIE, "", "", $oButton)

...See help for more info on these



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