Sign in to follow this  
Followers 0
timmalos

Area With IE.au3

3 posts in this topic

Hello everybody.

Sorry for my bad english.

I have a little problem with the UDF IE.au3

I need to see all the <area> objects.

However the function _IeLinkGetCollection() dosn't match any <area> link.

In This page:(http://www.bison-fute.equipement.gouv.fr/astec_acai/internet//ie1_france.html?langue=fr&evt=1)

They have the pattern:

<area shape="rect" coords="421,259,461,299" href="#" alt="Savoie" title="Savoie" onclick="MM_goToURL('ie1_osiris.html');return document.MM_returnValue" onmouseover="MM_showHideLayers('osiris','','show')" onmouseout="MM_showHideLayers('osiris','','hide')"></area>

How can i get a collection of <area> with the links ? I'm doing a program who write a Macro with IE. For example, when you launch Internet Explorer, click on a link, of enter a password in a form, my program write the Macro who can be executed after, and this macro do everythinf the user has done.

But i have a problem with the <area> links, and in the page i gived you i can't know the action of the user.

I'm sorry for my bad English, but think you a lot for trying to solve my problem.

Tim

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

This should give you a list of all AREA tags with the Coords:

#include <IE.au3>
#include <Array.au3>
$oIe = _IECreate("http://www.bison-fute.equipement.gouv.fr/astec_acai/internet//ie1_france.html?langue=fr&evt=1")
$oAreas = _IETagNameGetCollection($oIe,"area")
For $oArea In $oAreas
    Consolewrite("Tagname: " & $oArea.tagname & ", Coords: " & $oArea.coords & @CRLF)
Next
Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thx a lot

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  
Followers 0