rscl 0 Posted September 6, 2010 (edited) Hi, Is there any way to change the default printer's PAPER SIZE & ORIENTATION settings from default->Specific & Specific->default ?? Thx for any ideas/pointers. Best regards, Sans PS: I mean via an AutoIt script! Edited September 6, 2010 by rscl Share this post Link to post Share on other sites
l3ill 70 Posted September 6, 2010 I usually do stuff like this by sending keyboard commands to the printers popup dialog window with send or command click. most printers have different setting for this so you will have to experiment with your settings to come up with a script that works for your printer. in your case 2 scripts that start with something like: Send("^p") which opens the print dialog from most programs. and then one that sends the command for portrait, and one with commands for landscape. so you can just click whichever one you need... hope this helps. Good Luck! Bill My Contributions...SnippetBrowserNewSciTEPathFinderText File ManipulationFTP Connection Tester / INI File - Read, Write, Save & Load Example Share this post Link to post Share on other sites
seandisanti 6 Posted September 6, 2010 I usually do stuff like this by sending keyboard commands to the printers popup dialog window with send or command click. most printers have different setting for this so you will have to experiment with your settings to come up with a script that works for your printer. in your case 2 scripts that start with something like: Send("^p") which opens the print dialog from most programs. and then one that sends the command for portrait, and one with commands for landscape. so you can just click whichever one you need... hope this helps. Good Luck! Bill you could also use printui.dll (google for examples) Share this post Link to post Share on other sites
jennico 4 Posted November 6, 2010 you find the document settings in the registry: RegRead("HKCU\Printers\DevModePerUser",$sPrinter) it's a binary string and depends on the printer, so it is not possible to decrypt it. but by changing the settings and reading the reg string you can detect the needed setting and regwrite it. you can save the default setting and restore it afterwards. cheers j. Spoiler I actively support Wikileaks | Freedom for Julian Assange ! | Defend freedom of speech ! | Fight censorship ! | I will not silence.Don't forget this IP: 213.251.145.96 Share this post Link to post Share on other sites
LarryDalooza 42 Posted November 8, 2010 I second this... rundll32 and printui.dll ... worth it's weight in gold... though, what does it weigh, really?LAr.you could also use printui.dll (google for examples) AutoIt has helped make me wealthy Share this post Link to post Share on other sites