Jump to content
Sign in to follow this  
yash1983

Setting default printer using Auto It code

Recommended Posts

yash1983

Hi

I want to set a installed printer in the Priner and Faxes as default printer using AutoIt code. I want hep if any body has done this earlier.

Edited by yash1983

Share this post


Link to post
Share on other sites
LOULOU

Hi

I want to set a installed printer in the Priner and Faxes as default printer using AutoIt code. I want hep if any body has done this earlier.

Reading registry key on windows XP to know yhe default printer

$default = RegRead("HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Print\Printers", "Default")

Exemple To assign a printer name "toto"

RunWait('RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "toto"')

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×