Jump to content

Check website with PixelChecksum when server is logout


JonnyBr
 Share

Recommended Posts

Hello,

Im new at autoIT..

I need to monitoring a website, so I made an AutoIT script that opens the URL on InternetExplorer, waits until the page is completely loaded using PixelChecksum, then type user and password and waits for the next page using PixelChecksum again.
 
This works fine when the server is logged, but leave the server this way is dangerous. 
 
I would like to know if there's a way to continue using this script with the server locked..
 
I have already been tried to compile the script and use it as a windows service, but the PixelChecksum is returning error in the webpage as if the webpage was unavailable..
 
Could anyone help me ?

 

Link to comment
Share on other sites

But I want to monitoring the content of the page.

If the content has changed or not.. that's why I'm using PixelChecksum..

And I would like to login into a website, for example, type www.gmail.com , waits until the page load, then type User and password, click {ENTER}, and waits until the right content of the next page appears..

Is there anyway to do this with the server locked ?

 

Tks,

Link to comment
Share on other sites

That would be a horrible route...to check an image to validate you are on a certain page.

You can check that the image ELEMENT exists...but doing anything to validate the pixels of the image is not reliable, and shouldn't be done.

To verify you make it past the login page, you should verify that:

1) the page fully loads (ieloadwait) and

2) the login elements no longer exist (generally, these are not present once logged in)

an added check:

3) some element that's present only after login is performed...loop until it's found.

Edited by jdelaney
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.
Link to comment
Share on other sites

So was all that I posted a waste of time?  This truly is just a pixel question, wrapped in an unlikely scenario.

I'd consider this post answered.  I've provided a more reliable means to perform his operation.

To directly answer your question, no.

Edited by jdelaney
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.
Link to comment
Share on other sites

Ok, thanks..

So there's no way to use PixelChecksum with the server locked ??

 

 

tks, 

Why MUST you use a pixel search? Is it Possible to do some other method? Yes it is. The real question you need to ask is: Will you listen (yes) to using a different method that does NOT involve pixel searching or (no, not listen) refuse for you insist on only using a pixel search? If no, then this subject is closed. If yes, then look above at what you have been told.

Edited by Bert
Link to comment
Share on other sites

  • 2 weeks later...

What I want is monitoring applications.. 

I know I can monitoring the URL google.com using these others methods.

But if I need to monitoring a site in Flash, or a Java Application ?  
Could I use these methods with the server locked and forget about pixels ?

Link to comment
Share on other sites

I'm not aware of any way to automate embedded flash or java.  And you can't use pixels on a locked station.

Edited by jdelaney
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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...