User Tools

Site Tools


windows:autoit:set_default_printer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

windows:autoit:set_default_printer [2015/11/19 09:19] (current)
biggi created
Line 1: Line 1:
 +<code - SetDefaultPrinter.au3>​
 +#include <​MsgBoxConstants.au3>​
 +Local $sAnswer = InputBox("​Set default printer",​ "Enter the name of the printer you want to be default",​ "​DKTASA06",​ "",​ -1, -1, 0, 0)
  
 +if $sAnswer <> ""​ Then
 + Run("​RUNDLL32 PRINTUI.DLL,​PrintUIEntry /y /n " & $sAnswer)
 +EndIf
 +</​code>​
windows/autoit/set_default_printer.txt ยท Last modified: 2015/11/19 09:19 by biggi