from socket import * import sys printer = "10.1.1.2" # Change this to the IP of your printers msg = "INSERT COIN" # Or, AYBABTU for longer displays if __name__=='__main__': if len(sys.argv) == 3: printer = sys.argv[1] msg = sys.argv[2] s = socket(AF_INET, SOCK_STREAM) send_message = \ '\x1b%%-12345X@PJL JOB\n@PJL RDYMSG DISPLAY="%s"\n@PJL EOJ\n\x1b%%-12345X' % (msg, ) s.connect((printer, 9100)) s.send(send_message) s.close()
HP Printer Ready Message "INSERT COIN"
-
How is it going?
davidd
, how… -
The Plan
I'm still waiting on…
-
UnitedHealthcare CEO Murderer Liberal?
This is esp. for…
- Post a new comment
- 5 comments
- Post a new comment
- 5 comments