Jump to content
Sign in to follow this  
MrPook

question about ie.au3

Recommended Posts

MrPook

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

Share this post


Link to post
Share on other sites
MrPook

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")

Share this post


Link to post
Share on other sites
big_daddy

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>

Share this post


Link to post
Share on other sites
MrPook

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.

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  

×