AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hotkey to define F12 to open a cash drawer

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jcgolf



Joined: 15 Apr 2008
Posts: 2
Location: California

PostPosted: Tue Apr 15, 2008 1:42 am    Post subject: Hotkey to define F12 to open a cash drawer Reply with quote

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
View user's profile Send private message
[VxE]



Joined: 07 Oct 2006
Posts: 1234

PostPosted: Tue Apr 15, 2008 1:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Z Gecko
Guest





PostPosted: Tue Apr 15, 2008 2:07 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group