Didn't take me long to convert it to an AutoIt script :)
Change $strPrinterIP value to Network IP Address of the printer.
Some printers have an option to print their configuration, look for the IP Address under TCP/IP.
Also, check Printer properties in Printers & Faxes in Control Panel, you can find the IP Address in the Ports Tab.
; Modify the Network Printer IP address and the message to display on the LCD screen ; Make sure the message is short enough to fit on the printer display $strPrinterIP = "10.30.210.40" $strMessage = "INSERT COIN" TCPStartUp() $socPrinter = TCPConnect($strPrinterIP, 9100) If $socPrinter = -1 Then Exit $strCommand = Chr(27) & Chr(27) & "%-12345X@PJL RDYMSG DISPLAY = " & Chr(34) & $strMessage & Chr(34) & @LF & Chr(27) & "%-12345X" & @LF TCPSend($socPrinter, $strCommand)
Results on my company printer :D
http://xs224.xs.to/xs224/08072/imag0024793.jpg
It'll also work on printers which accept PCL/PJL commands. My success rate is 100% on all the printers.
Some more examples:
BUZZ OFF
STEP AWAY
SET TO STUN
PAT EATS MICE
GO AWAY
NEED MORE SPACE
POUR ME A DRINK
IN DISTRESS
FEED ME
RADIATION LEAK
NICE SHIRT!
HANDS UP
PRESS MY BUTTONS
INSERT DISK
LOOKS LIKE RAIN
BUY ME LUNCH
TAKE A BREAK
INSERT QUARTER
NO PRINT FOR YOU
NICE HAIR
NEED A MINT?
:lol:
This post has been edited by tonedeaf: 12 February 2008 - 02:12 PM

Sign In
Register
Help



MultiQuote