CowboyBob Posted July 8, 2009 Posted July 8, 2009 I am very new to AutoIT and already love it. Does anyone know if it is possible to programatically access the onclick method using the IE include library or is there some other way to do it? I am trying to click on the object below, it is located inside a <span> tag. <span id="ToolSearch" title="Click to Expand" class="Label_Font_Menu" onclick="DoSomeStuffHere();">Search</span>
darkmaster071 Posted July 8, 2009 Posted July 8, 2009 I think this should work. #include <IE.au3> $var=_IEGetObjById($ie, "ToolSearch") ;$ie is your ie instance _IEAction($var, "click")
CowboyBob Posted July 8, 2009 Author Posted July 8, 2009 Awsome! That works! Is there any documentation on the IE library some place? Thanks for your quick reply.
darkmaster071 Posted July 8, 2009 Posted July 8, 2009 Almost everything you will ever need is documented in the helpfiles. You can just hit F1 in autoit when your cursor is next to a function and you will get everything you need to know.
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