clivebuckwheat Posted August 26, 2012 Share Posted August 26, 2012 (edited) HiI have to install an unsigned printer driver on about 200 computers, I have successfully written the script to install the driver, but the problem is the driver is unsigned, which means I get a security warning dialog box prompt mid driver install.I have wrote a little autoit script to do such a thing. I was wondeing how can I make this script lop until the security dialogs box appears and then run it and exit. Thanks for any help as I am not very skilled with autoit.My autoit scriptWinWait("Windows Security", "") WinActivate("Windows Security") Send("{TAB}") Send("{ENTER}") Exit(0)This is the issue below Edited August 26, 2012 by clivebuckwheat Link to comment Share on other sites More sharing options...
PhoenixXL Posted August 27, 2012 Share Posted August 27, 2012 (edited) the code seems nice it should work if not try with the ControlSend, it will definitely work, i have done it earlier with good results Edited August 27, 2012 by PhoenixXL My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
JohnOne Posted August 27, 2012 Share Posted August 27, 2012 I thought that window resists automation, after all it is a security window. I think you need admin rights to install anyway, so you should be looking at a way to disable the prompt before you try to install the driver. Search engines are quite easy to operate. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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