JonnyBr Posted November 13, 2014 Share Posted November 13, 2014 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 More sharing options...
Bert Posted November 13, 2014 Share Posted November 13, 2014 Have you looked at using the IE tools in the Help file? The command you want is _IELoadWait The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
JonnyBr Posted November 13, 2014 Author Share Posted November 13, 2014 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 More sharing options...
Bert Posted November 13, 2014 Share Posted November 13, 2014 If you want to monitor the content then use IEBodyReadText The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
JonnyBr Posted November 13, 2014 Author Share Posted November 13, 2014 Ok, Thanks! And if I want to check an image of the website ? Link to comment Share on other sites More sharing options...
jdelaney Posted November 13, 2014 Share Posted November 13, 2014 (edited) 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 November 13, 2014 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 More sharing options...
JonnyBr Posted November 14, 2014 Author Share Posted November 14, 2014 Ok, thanks.. So there's no way to use PixelChecksum with the server locked ?? tks, Link to comment Share on other sites More sharing options...
jdelaney Posted November 14, 2014 Share Posted November 14, 2014 (edited) 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 November 14, 2014 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 More sharing options...
Bert Posted November 14, 2014 Share Posted November 14, 2014 (edited) 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 November 14, 2014 by Bert The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
JonnyBr Posted November 25, 2014 Author Share Posted November 25, 2014 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 More sharing options...
jdelaney Posted November 25, 2014 Share Posted November 25, 2014 (edited) I'm not aware of any way to automate embedded flash or java. And you can't use pixels on a locked station. Edited November 25, 2014 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 More sharing options...
JonnyBr Posted November 25, 2014 Author Share Posted November 25, 2014 Ok, Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now