View Single Post
Old 05-04-2007   #5 (permalink)
Marco Shaw


 
 

Re: How to pass credentials to Authentication Window on the web.

> Is it something you just need to run on your local computer to automate
> something? I wonder if you can use the AutoIt
> (http://www.autoitscript.com/) COM interface to do this...


Yup, sure looks like it can be done:

[start IE here with the com object or whatever to the proper page]
$autoitx=new-object -com autoitx3.control
$autoitx.winactivate("some dialog box title","")
$autoitx.send("test_user")
[etc.]

Tried the above, and got "test_user" written to the username box.

VBScript also has some send keys functionality though, but I don't know
if it can change the "active window focus" like autoit can.
My System SpecsSystem Spec