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



One response to “FT_NUMLOCK

  1. Pingback: FT Keyboard-Mouse | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.