FT_SHIFT

FT_SHIFT()
 Determine status of shift key

 Syntax

      FT_SHIFT() -> lValue

 Arguments

     None

 Returns

     .T. if a shift key is pressed, .F. if otherwise.

 Description

     This function is useful for times you need to know whether or not the
     shift key is pressed, such as during a MemoEdit().

 Examples

     IF FT_SHIFT()
        @24, 0 say "Shift"
     ELSE
        @24, 0 say "     "
     ENDIF

 Source: SHIFT.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_NUMLOCK() FT_PRTSCR() FT_ALT()



FT_PRTSCR

FT_PRTSCR()
 Enable or disable the Print Screen key

 Syntax

      FT_PRTSCR( [ <lSetStat> ] ) -> lCurStat

 Arguments

     <lSetStat> set to .T. will enable the Print Screen key,
     .F. will disable it.  If omitted, leaves status as is.

 Returns

     The current state: .T. if enabled, .F. if disabled.

 Description

     This function is valuable if you have a need to disable the
     printscreen key.  It works by fooling the BIOS into thinking that
     a printscreen is already in progress.  The BIOS will then refuse
     to invoke the printscreen handler.

 Examples

     FT_PRTSCR( .F. )       && Disable the printscreen key
     FT_PRTSCR( .T. )       && Enable the printscreen key
     MemVar := FT_PRTSCR()  && Get the current status

 Source: PRTSCR.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_NUMLOCK() FT_SHIFT() FT_ALT()

FT_NUMLOCK

FT_NUMLOCK()
 Return status of NumLock key

 Syntax

      FT_NUMLOCK( [ <lNewSetting> ] ) -> lCurrentSetting

 Arguments

     <lNewSetting> is optional and if supplied is the new setting
     for the CapLock key.  Specify .T. to turn CapLock on, or .F. to
     turn it off.

 Returns

     lValue is .T. if NumLock is set, .F. if it isn't set.  The value
     returned represents the setting in effect prior to any changes that
     might by made by <lNewSetting>.

 Description

     This function is useful if you need to know or set the status of the
     NumLock key for some reason.

 Examples

     IF FT_NUMLOCK()
        Qout( "NumLock is active" )
     ENDIF

   Another one, slightly strange, courtesy of Glenn Scott:

       function numBlink()
          local lOldNum := ft_numlock()

          while inkey( .5 ) != 27
             ft_numlock( !ft_numlock() )
          end

          return ft_numlock( lOldNum )

 Source: NUMLOCK.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_PRTSCR() FT_SHIFT() FT_ALT()



FT_CTRL

FT_CTRL()
 Determine status of the Ctrl key

 Syntax

      FT_CTRL() -> lValue

 Arguments

     None

 Returns

     .T. if Ctrl key is pressed, .F. if otherwise.

 Description

     This function is useful for times you need to know whether or not
     the Ctrl key is pressed, such as during a MemoEdit().

 Examples

     IF FT_CTRL()
        @24, 0 say "Ctrl"
     ELSE
        @24, 0 say "    "
     ENDIF

 Source: CTRL.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_NUMLOCK() FT_PRTSCR() FT_SHIFT() FT_ALT()

 

FT_CAPLOCK

FT_CAPLOCK()
 Determine and optionally change the status of CapLock key

 Syntax

      FT_CAPLOCK([ <lNewSetting> ]) -> lCurrentSetting

 Arguments

     <lNewSetting> is optional and if supplied is the new setting
     for the CapLock key.  Specify .T. to turn CapLock on, or .F. to
     turn it off.

 Returns

     .T. if CapLock is set, .F. if it isn't set.  The value returned
      represents the setting in effect prior to any changes that might
      by made by <lNewSetting>.

 Description

     This function is useful if you need to know or set the status of the
     CapLock key for some reason.

 Examples

     IF FT_CAPLOCK()
        Qout( "CapLock is active" )
     ENDIF

 Source: CAPLOCK.C

 Author: Ted Means

See Also: FT_ALT() FT_CTRL() FT_NUMLOCK() FT_PRTSCR() FT_SHIFT()

 

FT_ALT

FT_ALT()
 Determine status of the Alt key

 Syntax

      FT_ALT() -> lValue

 Arguments

     None

 Returns

     .T. if Alt key is pressed, .F. if otherwise.

 Description

     This function is useful for times you need to know whether or not the
     Alt key is pressed, such as during a MemoEdit().

 Examples

     IF FT_ALT()
        @24, 0 say "Alt"
     ELSE
        @24, 0 say "   "
     ENDIF

 Source: ALT.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_NUMLOCK() FT_PRTSCR() FT_SHIFT()