Print to named printer?
Posted: Wed Dec 10, 2025 1:08 pm
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.
Using Notepad it prints to the Named Printer.
Is there a way to get Anekpad to print to the Named Printer instead of the Default printer?
Thanks
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
Code: Select all
file = %A_ScriptDir%\label.txt
printer = POS58 Printer
Run, notepad /pt "%file%" "%printer%",, Hide
Thanks