Yes, VBScript can. WshShell.AppActivate.
--
Don Jones
Windows PowerShell MVP
Founder:
www.ScriptingAnswers.com
Co-Author: "Windows PowerShell: TFM"
"Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:OEOFiNnjHHA.4324@TK2MSFTNGP05.phx.gbl...
>> 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.