misodca Posted August 28, 2010 Share Posted August 28, 2010 Hello, I want to use AutoIt for loading one web page, but I need to wait until web page is fully loaded (and then write name/password) - I use now only sleep function, but sometimes happens that web page is not loaded yet, and script fails of course. It is possible to use another function for this? Thanks for any help ! Link to comment Share on other sites More sharing options...
Tvern Posted August 28, 2010 Share Posted August 28, 2010 Hello, I want to use AutoIt for loading one web page, but I need to wait until web page is fully loaded (and then write name/password) - I use now only sleep function, but sometimes happens that web page is not loaded yet, and script fails of course. It is possible to use another function for this? Thanks for any help !Have a look at the _IE functions in the helpfile. Link to comment Share on other sites More sharing options...
misodca Posted August 28, 2010 Author Share Posted August 28, 2010 thanks, but this works only with IE ... or am I wrong? I've tried to use script from help, it works but I need to wair for Microsoft Excel (there I need save data from web) Link to comment Share on other sites More sharing options...
Tvern Posted August 28, 2010 Share Posted August 28, 2010 thanks, but this works only with IE ... or am I wrong?It does and while there is an UDF to use FF (not any other browser to my knowledge) I'd advise you to use IE, as it's the only browser that can be controlled directly through COM and it will work on every windows PC. Link to comment Share on other sites More sharing options...
misodca Posted August 28, 2010 Author Share Posted August 28, 2010 so that means It wont work for Microsoft excel ... ? Because I dont want to control IE, but Excel ... Link to comment Share on other sites More sharing options...
JohnOne Posted August 28, 2010 Share Posted August 28, 2010 I didnt even know excel could load web pages, you learn something new every day. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
misodca Posted August 28, 2010 Author Share Posted August 28, 2010 heh yes yes, Excel can do that .. e.g. import whole webpages and then you can work with this data ok probably it isnt possible to use this IE command for excel, so I have to use Sleep function ... not great, but never mind Link to comment Share on other sites More sharing options...
Tvern Posted August 28, 2010 Share Posted August 28, 2010 (edited) Right I was thinking you where trying to import some website into excel after loading it from some browser. I'm not familliar with using websites in excel, but there should be a nicer way to do this than just a plain sleep. If autoit has trouble doing it directly, then maybe excel can check it and set a flag that's easily readable. I'll see if I can have a look tomorrow. Edit: I had a look and failed. I couldn't figure out a way to do it using COM and the only clue that anything was happening is the little globe in the bottom left corner, which was no use to me. Now if there was a cell in the page that would always change after an update (like a date/time stamp) things would be easy. I'm still pretty sure there is an elegant solution to this, but I can't find it. Edited August 30, 2010 by Tvern 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