Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_numlock()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson