| View previous topic :: View next topic |
| Author |
Message |
jcgolf
Joined: 15 Apr 2008 Posts: 2 Location: California
|
Posted: Tue Apr 15, 2008 1:42 am Post subject: Hotkey to define F12 to open a cash drawer |
|
|
Is it possible to define a hotkey (such as F12) to open a cash drawer via a printer ASCII sequence?
The ASCII sequence 27 112 0 25 250, when sent to LPT1, will open the cash drawer from within an application. However, I need to be able to enable the F12 function key to sit on top of an executing application and then open the cash drawer upon selection. Possible? If so, I'd love to see the method.
thanks,
John |
|
| Back to top |
|
 |
[VxE]
Joined: 07 Oct 2006 Posts: 1234
|
Posted: Tue Apr 15, 2008 1:48 am Post subject: |
|
|
| engunneer wrote: | | AHK does not have any direct commands for the parallel port, but you might be able to write a qbasic program that sends the different commands and have AHK call those programs. Also check the Utilities and Resources forum to see if there is a command line program posted for sending printer commands. |
_________________ My Home Thread [New: Vector Function Library]
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags |
|
| Back to top |
|
 |
Z Gecko Guest
|
Posted: Tue Apr 15, 2008 2:07 am Post subject: |
|
|
I can remember that
you could send ascii-strings to a modem at the com port via the copy command.
I donīt know if it will work with the printer-port as well. But it could.
So please test this first:
| Quote: |
1. open the command-promt
2. type: copy con lpt1
3. then type 27 112 0 25 250
4. then press CTRL+C |
if this opens the drawer, it can easily be integrated in an ahk-script. |
|
| Back to top |
|
 |
|