Jump to content
Macro Express Forums

Get default printer...


Recommended Posts

Read Registry Value "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device" into %tDefaultPrinter%
Text Box Display: 

 

<READ REGISTRY VALUE Key="HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\Device" Destination="%tDefaultPrinter%"/>
<TEXT BOX DISPLAY Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang3081{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 The default printer is %tDefaultPrinter%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/>

Link to comment
Share on other sites

Woo Hoo...

MacExp reads the registry (per Paul's code), writes the name of default printer into a particular text file (using Variable Modify String), then the freeware Samurize reads from the text file and posts the default printer onto my desktop. :lol:;) The activations for the ME macro are (1) System Startup and (2) When window "Printers and Faxes" closes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...