Print to named printer?

English main discussion
Post Reply
  • Author
  • Message
x32
Offline
Posts: 1
Joined: Wed Dec 10, 2025 12:56 pm

Print to named printer?

Post by x32 »

Switching to Akelpad has broken one of the AutoHotKey scripts I use regularly. It's a quick and dirty label printing script that prints to a specific printer, not the default printer. The printer is defined by name in the script, "POS58".

My code is as follows. I can only get it to print to the default printer.

Code: Select all

file = %A_ScriptDir%\label.txt
printer = POS58 Printer
editor = C:\Users\*********\Documents\AHK Scripts\Lable Maker\AkelPad-4.9.9-bin-eng\AkelPad.exe
Run, %editor% /p "%file%" "%printer%",, Hide
Using Notepad it prints to the Named Printer.

Code: Select all

file = %A_ScriptDir%\label.txt
printer = POS58 Printer
Run, notepad /pt "%file%" "%printer%",, Hide
Is there a way to get Anekpad to print to the Named Printer instead of the Default printer?
Thanks
Post Reply