Hi Steve,
I don't think that I was even aware of the ESC STX F xxx escape sequence. Obviously, at some point in the distant past, I based my subroutines on the SEND/GET samples. Some of my subroutines are attached:
Q.ATKEYDEF gets or sets a key.
Q.ATKEYCODE converts the key you want to get/program into the numeric value used by AccuTerm
Q.ATPROPERTY sets or gets a property from AccuTerm
These subroutines generate scripts that you need to run - and you can figure that bit out.
Finally, we run the ES.KEYDEFS.GET subroutine when a user logs in to get the values of selected keys on their keyboard. These values are stored in KEY.xxx variables which are stored in a named COMMON for use elsewhere in the system.
HTH,
Brian
------------------------------
Brian Speirs
Senior Analyst - Information Systems
Rush Flat Ltd
Wellington NZ
------------------------------
Original Message:
Sent: 04-10-2024 12:51
From: Steve Henkel
Subject: Programming function keys in AccuTerm
I didn't know about those subroutines. Thanks for pointing them out. The output of AT.GET.PROGRAMMED.KEYS is in a binary format I'm not used to and don't know what to do with. I take it that you're to take the result of AT.GET.PROGRAMMED.KEYS, modify KBD to your liking and then resubmit it to AT.SET.PROGRAMMED.KEYS, is that correct? I tried simply running AT.GET... and then immediately run AT.SET... without modifying KBD. I attached a screenshot of the error I get.
------------------------------
Steve Henkel
Director of IS
Rocket Forum Shared Account
Original Message:
Sent: 04-10-2024 10:43
From: Peter Schellenbach
Subject: Programming function keys in AccuTerm
Hi Steve -
If you installed all of the AccuTerm host programs (normally in the ACCUTERM account), there are two subroutines in the SAMPLES file that retrieve programmed keys (AT.GET.PROGRAMMED.KEYS) and set programmed keys (AT.SET.PROGRAMMED.KEYS). Both of these routines use AccuTerm's VBA scripting to read or update the FKeys property of the Session object.
Thanks, Pete
------------------------------
Peter Schellenbach
Rocket Internal - All Brands
Original Message:
Sent: 04-10-2024 09:52
From: Steve Henkel
Subject: Programming function keys in AccuTerm
Well, that's my problem. I "want" to be able to send a ESC STX F command that will do all three but the syntax doesn't seem to allow it. I just thought there might be a special syntax combination that someone else knows about that I can't quite figure out.
On a lighter note though, how do you query the keyboard for custom key programming? I haven't come across that command yet but I've though about how nice it would be.
------------------------------
Steve Henkel
Director of IS
Rocket Forum Shared Account
Original Message:
Sent: 04-09-2024 15:59
From: Brian Speirs
Subject: Programming function keys in AccuTerm
Well, that seems to be a question of you deciding what you want to do <g>.
The programs that I have written allow any combination of Shift, Alt, and Ctrl - because that is what the documentation implies is allowed. I haven't TESTED all the combinations - and for the most part, I'm not really SETTING any values either. But I do query the keyboard on every login to see whether users have entered any custom key programming. That lets me correctly capture those keys rather than simply trying to capture their default values.
Cheers,
Brian
------------------------------
Brian Speirs
Senior Analyst - Information Systems
Rush Flat Ltd
Wellington NZ
Original Message:
Sent: 04-09-2024 13:37
From: Steve Henkel
Subject: Programming function keys in AccuTerm
The keyboard editor allows you to program function keys with any or all of the standard modifier keys, CTRL, ALT, and SHIFT. I want to write a program to program a function key but the documentation seems to imply that I can program a CTRL function key (shifted or unshifted) or an ALT function key (shifted or unshifted), but it doesn't seem to allow me to program a CTRL-ALT function key (shifted or unshifted). I doubt that I would ever personally need a CTRL-ALT-SHIFT function key but I'm writing a little program to allow the user to program his own function key without going into settings. I'm trying to figure out if I should allow any combination of CTRL, ALT, and SHIFT like it does in the keyboard editor or just allow CTRL (shifted or unshifted) and ALT (shifted and unshifted).
------------------------------
Steve Henkel
Director of IS
Rocket Forum Shared Account
------------------------------