Jump to content

Setting default printer using Auto It code


 Share

Recommended Posts

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"')

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...