dharani077

Automating a daily job

7 posts in this topic

Hello Team,

 

I have doubt about automating a daily job, in our job everyday will check some websites based on our job requirement Now i want automate those jobs using autoit  For example Open a website and open click statics and take screenshot like this. And this one have to run backgroundly without any interruption of the user work there is solution like this?

Please let me know any solution for this...

 

Thanks.

Share this post


Link to post
Share on other sites



First I would like to ask: Which Browser do you run?


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
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I am using Mozila And internet explorer

Share this post


Link to post
Share on other sites

AutoIt comes with an UDF for IE so I would start there. Please have a look at the help file and the examples provided there. 


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
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Use Scheduled tasks to periodically run the script.

I don't think you can take a screenshot if the image isn't on the screen so you might need to interrupt the user briefly to get your screenshot.

Press F1 to get the helpfile up and go to   UserDefined Functions > IE Management and read up on _IECreate and _IENavigate for pushing around IE

For the screenshots read up in helpfile section UserDefined Functions > ScreenCapture Management.

The helpfiles have great examples. Enjoy :)

Share this post


Link to post
Share on other sites

Most likely he can get what he needs without a screenshot, be it from inetget() to get a image, or just the standard source code reading type stuff.

Guess it depends on his needs and the site, but we really do not know anything about either. 

Share this post


Link to post
Share on other sites

Yes perhaps he could.  You'll need InetRead, BinaryToString to get the text and StringRegExp to pull out the parts you want and InetGet to get the images.  All are in the helpfile.  Use the search tab and they'll show up easy.  Doing it this way would be a little harder but it would not interrupt the user at all which was one of your requirements.

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