BigDaddyO Posted December 20, 2005 Share Posted December 20, 2005 (edited) These scripts are all COM so you need AutoIT Beta. This is mostly VBScript that I have converted and pieced together for my purpose. The Lab_990cxi_Install.au3 file installs a new Network Printer: I noticed that there were a lot of examples on how to add a new printer using vbscript but they always failed for me. Turns out you have to use a script to add the driver for that printer, then if it uses a TCP/IP port to print to you have to add that port also, then you can actually add the printer. The Printer_Default.au3 will select a printer and let you print to it. Once the Print Job has finished it will prompt you to switch back to your privious Default printer. If you choose no it will again prompt you after each print job. For my purposes I am setting the PrimoPDF printer as the default printer so users can create PDF docs. Once the document is created they are prompted to return there default printer back to how it was. Any questions just let me know. Mike PS. To get the proper settings for a printer you need to install it manually then use the ScriptoMatic for AU3 written by SvenP in order to retrieve the proper settings. specifically use the following: Win32_PrinterDriver, Win32_TCPIPPrinterPort, and Win32_Printer. edit: In further testing or Lab_990cxi_Install.au3 I noticed that the Port Number under Add the Printer Port is where you need to modify if you are using a JetDirect port. I am using a 3 port Jetdirect 500x and port 9100 is port 1, 9101 is port 2, and I am guessing that 9102 will be port 3.Lab_990cxi_Install.au3Printer_Default.au3 Edited December 20, 2005 by MikeOsdx Link to comment Share on other sites More sharing options...
BrettF Posted February 4, 2009 Share Posted February 4, 2009 (edited) I'm sorry but why do you need to upload an exe? Also, A+ for bump of 4+ year old topic too that you didn't really need to bump...EDIT: Typo Edited February 4, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
trancexx Posted February 4, 2009 Share Posted February 4, 2009 I'm sorry but why do you need to upload an exe? Also, A+ for bump of 4+ year old topic too that you didn't really need to bump...EDIT: Typo3+ ♡♡♡ . eMyvnE 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