JohnMC Posted August 1, 2009 Share Posted August 1, 2009 (edited) Ive looked around for info about programaticly printing something and im finding little information. i dont know if this is something that can be solved with a windows configuration im not aware of or if i need to do some advanced automation. my issue is basicly that i would like to have multiple printers installed on a single pc and have a have different programs each see a different printer as 'default'. in one situation i want to print a weather report using IE automaticly to a certain printer, but not all pages. in adition i would also like to control what pages print and # of copies, this doesnt seem to hard but id have to use the GUI contols, however the printer selection control doesnt seem to have a way to control it reliably. thank for any ideas! ==UPDATED== Im working on some functions to help with these problems i have, here is a roughdraft incase someone stumbles upon this thread. 2 of the functions are from Martins script and the 3rd is my own. _GetDefaultPrinter() _PrinterSetAsDefault($PrinterName) _PrintDialogWait($sPrinter="",$sPages="",$sCopies="",$sProssess="",$iTimeout=20) _PrintControl.au3 Edited August 9, 2009 by JohnMC https://johnscs.com Link to comment Share on other sites More sharing options...
ResNullius Posted August 2, 2009 Share Posted August 2, 2009 martin posted this a couple of years ago that might help with the first part; it will "remember"/set different default printers for whatever app has the focus http://www.autoitscript.com/forum/index.php?s=&showtopic=49477&view=findpost&p=372896 Link to comment Share on other sites More sharing options...
JohnMC Posted August 9, 2009 Author Share Posted August 9, 2009 im working on a little udf, if anyone finds this post looking for the things i was looking for i hope it helps, see first post https://johnscs.com 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