Jump to content
Sign in to follow this  
benners

Interacting with web pages

Recommended Posts

benners

I have been playing around with the ie.au3 functions to learn a bit about them. I don't know anything about html, what nodes and elements are etc so will be looking at w3schools soon. :shifty:

The script takes a Microsoft KB number and searches the Microsoft Update Catalog page to see if it is superseded or if it supersedes other updates. It will only work with the one supplied for now unless you change the $sDescription value.

Ideally I want to do all of this silently. There are some problems such as having popup blocker enabled and the Microsoft Catalog active x disabled in browsers so its for from perfect and do not really want to add things to peoples registry etc without consent so would like to get away from browser manipulation and would like to know if there is a com object that could be scripted to do the same as this script. I am thinking something like WSUS or Windows Update Agent, there must be something

Looking at the source of the web pages there are lots of jscript functions? that maybe convertable to AutoIt but its above my head. I has taken me all day to get this bitty script done everything is a learning curve :ranting:

I have attached the script and welcome pointers to the above and also improvements to the script

Thanks

Benners

KBArticleNumberChecker.au3

Share this post


Link to post
Share on other sites
water

You write that you are not familiar with html. If you just try to learn about the IE UDF etc. I would suggest to use a simpler task as a start.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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
benners

You write that you are not familiar with html. If you just try to learn about the IE UDF etc. I would suggest to use a simpler task as a start.

I came to this project due to the fact that I had become unstuck on another. I was trying to determine if one Office update superseded another. I had the msp files and despite my best efforts was unable to reach a conclusion with what MS reported. Some updates were obsolete and others were still needed by Microsoft Update.

MS isn't perfect as some of their information doesn't tally up so I decided the base line would be to go with the the Update Catalog. This is when I found I needed to brush up on web pages.

I was initially going to use iNetGet to download the web page and parse the file but there looked to be strings in the url that could be subject to change and I wanted to make if future proof instead of hard coding links.

t is a case of in at the deep end as it always seems to be lol. If I can make this script silent and more robust I'll add it to my main project.

Cheers

Share this post


Link to post
Share on other sites
water

As you mentioned WSUS. I'm sure this and other tools get the information not from a web page but via an API. Check the WSUS home page as a start.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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

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  

×