Sign in to follow this  
Followers 0
Makalele

IE-based script: login popup problem

4 posts in this topic

Hi!

I've written a little script which changes ip by using _IECreate and other functions. Everything works well. The window of the browser is hidden. But.. there is a one little problem. When script starts, it navigates to http:\\10.0.0.2 address (my router page) and then i'm getting the login popup. It's annoying when everything works in hide and this window appear each time, when the script start. Of course i've improved my script and it's automatically hides this but for a little moment later and the window is showed for a while.

So, my question is: how to connect with my router page with logging (using _IE.. functions), but... in background? Is it any method for this? I believe you know what i'm talking about. Sorry for bad eng^^

Regards,

Makalele


Share this post


Link to post
Share on other sites



Bump^^


Share this post


Link to post
Share on other sites

The pop-up is most likely an actual window that you can use normal autoit window functions to deal with.


[u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]

Share this post


Link to post
Share on other sites

Hi!

I've written a little script which changes ip by using _IECreate and other functions. Everything works well. The window of the browser is hidden. But.. there is a one little problem. When script starts, it navigates to http:\\10.0.0.2 address (my router page) and then i'm getting the login popup. It's annoying when everything works in hide and this window appear each time, when the script start. Of course i've improved my script and it's automatically hides this but for a little moment later and the window is showed for a while.

So, my question is: how to connect with my router page with logging (using _IE.. functions), but... in background? Is it any method for this? I believe you know what i'm talking about. Sorry for bad eng^^

Regards,

Makalele

There is no generalized solution for an issue like this. You may be able to control it, but it will all depend on what the webpage is doing to create that window. You'll need to dig into it and see if there is something specific you can do to affect the window creation.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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
Sign in to follow this  
Followers 0