Contents | Index | < Browse | Browse >

  xHOTKEY  KeyCombination  ON|OFF

  Gui4Cli now installs a Commodities Exchange Broker through which
  you can define various HotKeys. These have the advantage that
  that they can be "heard" from anywhere - i.e. even if they are 
  entered in a non - Gui4Cli window.

  The KeyCombination is a string specifying the combination of
  keys that the user must hit to make this event happen. They are
  defined as follows :

  [class]  {[-](qualifier|synonym)}  [[-]upstroke]  [highmap|ANSICode]

  [class] can be one of the following words:

    rawkey rawmouse event pointerpos timer newprefs diskremoved
    diskinserted

  [-][qualifier] can be :

    lshift rshift capslock control lalt ralt lcommand rcommand
    numericpad repeat midbutton rbutton leftbutton relativemouse
    
    - A "-" (negative sign) in front, means that they may or may
      not occur - i.e. we don't care either way.

  [-][synonym] can be :

    shift caps alt

    - These mean that (eg) any shift (lshift or rshift) is ok.
    - A "-" in front means these may or may not appear. 

  [-]upstroke is the actual word "upstroke" :

    - It means that we want to hear the upstroke of the key, only.
    - if preceeded by a "-" it means we want both upstroke and
      downstroke. The default is to hear only downstrokes.

  [highmap] can be one of these:

    space backspace tab enter return esc del up down right left
    f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 help

  [ANSICode] - can be a normal letter, such as "a"

  > example: "lshift a"

  With these you can describe almost any key combination, ex:

  > xHOTKEY "rawkey lshift alt f2" ON      -or-
  > xHOTKEY "rawmouse rbutton" OFF

  As with other events, you can give it a  GADID  and  SETGAD  it 
  ON|OFF.

  You can also  UPDATE  it, giving a new KeyCombination.