nick448 Posted April 10, 2012 Share Posted April 10, 2012 I need a way to open IE, navigate to a site, scroll down the page, and repeat over and over again..any help would be appreciated, I cannot get While 1...WEnd to work. Keeps giving me Missing WEnd statement error. Link to comment Share on other sites More sharing options...
somdcomputerguy Posted April 10, 2012 Share Posted April 10, 2012 Post your code. Help someone help you. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
nick448 Posted April 10, 2012 Author Share Posted April 10, 2012 Sorry, here it is..While 1#include <IE.au3>; Create a browser window and navigate to Site$oIE = _IECreate("http://www.us.trumpf.com")Send("{F11}");make IE Full ScreenSleep(5000);Scrolls Down the PageMouseClickDrag("left", 1269, 24, 1272, 186, 1)Sleep(5000)MouseClickDrag("left", 1272, 186, 1272, 344, 1)Sleep(5000)MouseClickDrag("left", 1272, 344, 1272, 644, 1)Send ("{F11}")ProcessClose("iexplore.exe")$PID = ProcessExists("iexplore.exe") ; Will return the PID or 0 if the process isn't found.If $PID Then ProcessClose($PID)WEnd Link to comment Share on other sites More sharing options...
DW1 Posted April 10, 2012 Share Posted April 10, 2012 Hi nick448, Move your #include, outside of the loop. Best practice would be to have all your includes at the top of your script, and never in a loop. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
nick448 Posted April 10, 2012 Author Share Posted April 10, 2012 That worked! 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