Jump to content
Sign in to follow this  

Problem getting object so _IEAction will click it

Recommended Posts


My script opens a web page and I’m trying to click on is a href on the page. 

The href on the web page that I want to click on (or run if there’s another way) is:

<a class="ssSearchHyperlink" href="javascript:LaunchSearch('Search.aspx?ID=400', false, false, sbxControlID2)"> Civil, Family Case Records </a>


I need help on line 5 of the script below:


#include <ie.au3>
$oIE = _IECreate ("https://ccmspa.pinellascounty.org/PublicAccess/default.aspx")
$hIE = _IEPropertyGet($oIE, "hwnd")
WinSetState($hIE, "", @SW_MAXIMIZE)


$obj = _IEGetObjByName($oIE, "????????????")  ; < How do I get the object so I can click on it?


_IEAction($obj, "click")







Share this post

Link to post
Share on other sites

Sorry didn't notice mikell's reply, thought he added the 'Code' tag to your code, the code he provided should work.

Edited by Palestinian

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