Jump to content
Sign in to follow this  
MuffettsMan

Internet Explorer popup / login window

Recommended Posts

MuffettsMan

I have a url that forces a popup login box - the Window Info tool identifies it - just wasn't sure is there any way via the IE.au3 functionality to interact with windows like this or is it just a matter of doing a winwait then controlsend with the login info?


Don't let that status fool you, I am no advanced memeber!

Share this post


Link to post
Share on other sites
goldenix

I have a url that forces a popup login box - the Window Info tool identifies it - just wasn't sure is there any way via the IE.au3 functionality to interact with windows like this or is it just a matter of doing a winwait then controlsend with the login info?

Post the sample URL where it pops up, so we can see the pop up window source.


My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites
MuffettsMan

there isn't anything in the source that justifies the popup (i guess closest example i can think of is the same type of password login you get when trying to hit a pswd protected page in apache its a windows generated login box (popup was prob a bad word as it isn't html)

atm this seems to work though also seems crude if there is a more logical way to handle it..

$oIE = _IECreate ("http://website.com/pswdprotected.html", 0, 1, 0)

    WinWait("Connect to website", "", 1)
    TrayTip("Connect to website", "Popup found... in theory", 5, 1)
    sleep(1000)
    ControlSend ( "Connect to website", "","Edit2", "Bob")
    ControlSend ( "Connect to website", "","Edit3", "Changeme")
               ControlClick ( "Connect to website", "", "Button2")

Don't let that status fool you, I am no advanced memeber!

Share this post


Link to post
Share on other sites
DaleHohm

There used to be a supported syntax that passed username and password in the URL, but that has been disabled in all modern browsers for secutity reasons. Your approach using WinWait and ControlSend is the correct one as the popups are not HTML, but rather Win32 dialogs.

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
stalliondan

Has one been able to get something like this working? I have been working on this for hours but no luck. My situation is the same as the poster even with the same field names. I am using IE7 and Vista and thus far I have not seen any solution to this in the forums. Any help is greatly appreciated.

Share this post


Link to post
Share on other sites
Valuater

Has one been able to get something like this working? I have been working on this for hours but no luck. My situation is the same as the poster even with the same field names. I am using IE7 and Vista and thus far I have not seen any solution to this in the forums. Any help is greatly appreciated.

atm this seems to work though also seems crude if there is a more logical way to handle it..

@stall, the above statement is saying "at this time this seems to work..."

and Dale says that's the best way now, so the code 2 posts above is the one to use

8)


NEWHeader1.png

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  

×