markj2009 Posted December 3, 2009 Share Posted December 3, 2009 Hi, I am working to write my own script for automatically installing a network printer without all the "user" clicking and input. I got to a point where there was a "list box" of printers to choose from and I dont know how to script it for scrolling through that list and selecting it. My second question would be when it comes time to manually put in the IP address of the network printer, how would I script that?? Thanks so much for anyone's help. Link to comment Share on other sites More sharing options...
rajeshontheweb Posted December 3, 2009 Share Posted December 3, 2009 (edited) Use WMI Query Win32_Printer Class read the attributes and look for all those with attribute 16 (Network Printers) {64 if u need local Printers}Populate them to an array and use it as source for your list box.There is a possibility AddPrinterConnection Method may work (try it out) Edited December 3, 2009 by rajeshontheweb Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet 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