Sign in to follow this  
Followers 0
dickep

Read IE info in background

6 posts in this topic

I have a script that reads IE data from the page displayed. It works for multiple pages like I want (really one IE open with multiple tabs for the various pages).

Now, I would like to know if I can have this work but in the background. In other words, I want to be able to read the data ouf of the tabs of the IE but do not want the IE and/or tabs to be actively opened. Make sense???

Thanks

E

Share this post


Link to post
Share on other sites



How do you do it now?

If you use the IE UDF there is a visibility flag for function _IECreate.


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

define the objects, and you can get their values without physically moving between tabs...replace "title#" with your titles, or identify it another way (help file)

#include <IE.au3>
$oie1 = _IEAttach ( "title1" )
$oie2 = _IEAttach ( "title2" )
$oie3 = _IEAttach ( "title2" )
consolewrite (_IEDocReadHTML($oie1))
consolewrite (_IEDocReadHTML($oie2))
consolewrite (_IEDocReadHTML($oie3))

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

I see that. But how can I refresh the data in the tab without having to activate it first?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

#include <IE.au3>
$oObj = _IEAttach ( "your browser" )
_IEAction ( $oObj, "refresh" )

Edited by jdelaney
1 person likes this

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

OK, thanks jdelaney. It is now working like I want it to.

Hmm........ maybe one of these days I will learn that the Help file is there to really help not just take up disk space (which a lot of Help files are doing).

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