MultiValue Tools

 View Only
  • 1.  Programming function keys in AccuTerm

    Posted 19 days ago

    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
    ------------------------------


  • 2.  RE: Programming function keys in AccuTerm

    Posted 19 days ago

    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
    ------------------------------



  • 3.  RE: Programming function keys in AccuTerm

    Posted 19 days ago
    Edited by Steve Henkel 19 days ago

    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
    ------------------------------



  • 4.  RE: Programming function keys in AccuTerm

    ROCKETEER
    Posted 19 days ago

    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
    ------------------------------



  • 5.  RE: Programming function keys in AccuTerm

    Posted 19 days ago
      |   view attached

    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
    ------------------------------

    Attachment(s)



  • 6.  RE: Programming function keys in AccuTerm

    Posted 18 days ago

    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
    ------------------------------

    Attachment(s)

    txt
    Q.ATPROPERTY.txt   1 KB 1 version
    txt
    Q.ATKEYCODE.txt   2 KB 1 version
    txt
    Q.ATKEYDEF.txt   10 KB 1 version
    txt
    ES.KEYDEFS.GET.txt   4 KB 1 version