huskie Posted March 2, 2009 Share Posted March 2, 2009 Hey this is my first post here, hello everybody, nice place, nice information here. I search the entire forum for a reference in how can i write a script to open Internet Explorer 7, aswer the windows questions and press the buttons like "install now", "Express" and other that i can't acess with simple commands. I rather to do not use sleep commands, if possible. None of the examples that i saw here worked for that website. Anyone here did it? Thanks. Link to comment Share on other sites More sharing options...
qazwsx Posted March 2, 2009 Share Posted March 2, 2009 Can I see the code you have tried so far so I can see what did not work? Link to comment Share on other sites More sharing options...
huskie Posted March 2, 2009 Author Share Posted March 2, 2009 (edited) Can I see the code you have tried so far so I can see what did not work?Run("C:\Windows\system32\wupdmgr.exe")WinWait("Microsoft Windows Update")WinSetState("Microsoft Windows Update","",@SW_MAXIMIZE)WinWaitActive("Internet Explorer - Aviso de Segurança","Deseja instalar este software?")Send("!{I}")Sleep("40000")Send("{TAB 19} {SPACE}")Sleep("50000")Send("{SPACE}")WinWaitActive("Internet Explorer")Send("{SPACE}")Sleep("10000")Send("{SPACE}")WinWaitActive("Instalando Atualizações")Send("{SPACE}")Sleep("85000")Send("{SPACE}")Sleep("40000")Send("{SPACE}")Sleep("30000")Send("{TAB 3} {SPACE}")Sleep("1500")Send("{TAB 3} {SPACE}")Please note it's a noob script. I made it using Sleep function but may not work if the internet speed drop down for some reason. I'm running Windows Xp SP3 brazilian portuguese with Internet Explorer 7. Edited March 2, 2009 by huskie Link to comment Share on other sites More sharing options...
weaponx Posted March 2, 2009 Share Posted March 2, 2009 The IE functions would be better suited for this. You will still have to account for unexpected prompts during the update process as well, since not every machine has the latest activex controls for Windows Update. Link to comment Share on other sites More sharing options...
huskie Posted March 2, 2009 Author Share Posted March 2, 2009 The IE functions would be better suited for this. You will still have to account for unexpected prompts during the update process as well, since not every machine has the latest activex controls for Windows Update.I forgot to mencion it, this script is intended for a machine with a brand new installation (formatted), so it gonna be always the same windows. I cannot understand how to make it work in IE7, i tried the examples here but no commands seems to work. Could you help me? Link to comment Share on other sites More sharing options...
weaponx Posted March 2, 2009 Share Posted March 2, 2009 Is there a reason you aren't just turning on Automatic Updates? Are you just trying to get better control over which updates are downloaded? Link to comment Share on other sites More sharing options...
huskie Posted March 3, 2009 Author Share Posted March 3, 2009 Is there a reason you aren't just turning on Automatic Updates? Are you just trying to get better control over which updates are downloaded?Exactly! Link to comment Share on other sites More sharing options...
weaponx Posted March 3, 2009 Share Posted March 3, 2009 Have you looked into AutoPatcher? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 3, 2009 Share Posted March 3, 2009 (edited) Exactly!Wouldn't it be a lot easier to set windows update on "Notify me but don't automatically download or install them"?? That would allow you to set what is to be downloaded and installedEdit:here is a guide how Edited March 3, 2009 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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