MrPook Posted June 5, 2007 Share Posted June 5, 2007 Hello, i just discovered ie.au3 (too late ?). Indeed, i'd like to know how i can find the information about the names i'd like to use in the methods "IEFormGetObjByName" for example. To make it simple, i'd like to create a script that behaves like this : 1) go to "http://www.autoitscript.com/autoit3/" (sounds familiar ?) 2) click on forum (still familiar ?) 3) click on "general help and support" (still ?) 4) search "help ie.au3" on the search box at the bottom left (not familiar for you maybe) 5) click on the result "Newbie confused with IE.au3 " (should be the first) 6) be happy ! Thank you in advance, with such a small script, i'll be able to do what i've got in mind. Pook Link to comment Share on other sites More sharing options...
MrPook Posted June 5, 2007 Author Share Posted June 5, 2007 well i found examples in the ie_builder tool... unfortunately i'm not able to click on the part i want : I wish i could click on the "gift shop" part ... thank for helping CODE #include <IE.au3> ; Create a new browser window and navigate to a page $oIE = _IECreate() _IENavigate($oIE, "http://autoitscript.com") ; Click on liks to navigate to the v3 Support forum _IELinkClickByText($oIE, "Gift Shop") Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted June 6, 2007 Moderators Share Posted June 6, 2007 It's good to see that your trying to figure it out on your own. The reason why your code is not working is because "Gift Shop" is not text, it's an image with coordinate mappings. <map name="Map"> <area shape="rect" coords="414,12,497,31" href="http://www.autoitscript.com" alt="Home"> <area shape="rect" coords="498,12,575,31" href="http://www.autoitscript.com/autoit3/" alt="AutoIt v3"> <area shape="rect" coords="576,12,651,31" href="http://www.autoitscript.com/forum/index.php?" alt="Forum"> <area shape="rect" coords="652,12,724,31" href="http://www.cafepress.com/autoit" alt="Gift Shop"> <area shape="rect" coords="725,11,795,31" href="http://www.autoitscript.com/email_us.php" alt="Contact"> </map> Link to comment Share on other sites More sharing options...
MrPook Posted June 6, 2007 Author Share Posted June 6, 2007 indeed i'm trying to figure it out ... after reading again and again ie.au3 i'm a little bit confused. it seems my only choice is to know where to click without ie.au3 (_IEImgClick doesnt seem appropriate) if so, how can i cant figure out how to find automatically the coords i want to click on ... *sigh* Thanks for helping. Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted June 9, 2007 Moderators Share Posted June 9, 2007 Something like this will work... #include <IE.au3> $sURL = "http://autoitscript.com" $oIE = _IECreate($sURL) $oMap = _IEGetObjByName($oIE, "MAP") $oArea = _IETagNameGetCollection($oMap, "AREA", 3) $sHREF = $oArea.href _IENavigate($oIE, $sHREF) 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