LOULOU Posted August 30, 2005 Share Posted August 30, 2005 <input src="../images/TRSF/FB/valider.gif" name="btnValide" id="btnValide" type="image" border="0" alt="Transférer le fichier" onclick="java script:EffaceZoneResultat();" Is anyone know how to do that with IE automation Link to comment Share on other sites More sharing options...
Raindancer Posted August 30, 2005 Share Posted August 30, 2005 I think this is a Button of a Form. First you have to find the name of this Form.Ex. <form action="http://www.autoitscript.com/forum/index.php?" method="post" name="search">The name of the form is searchFirst you have to initialise a IEObject like this:$oIE = _IECreate();If it should be invisible then put an (0) instead of a () after the function nameNavigate to your page like this:_IENavigate($oIE, "http://www.nobrain.ch/script.php")Then you get the FormObject by:$oForm = _IEFormGetObjByName($oIE, "search")Then you can get the object of the button you want to click on like this:$oButton = _IEFormElementGetObjByName($oForm, "btnValide")Then to execute the click on it use this line of code:$oButton.ClickThe Button gets clicked, and the Javascript function EffaceZoneResultat() is executed as you would klick on it inside your browser.Hope this works for you. Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now