Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - capskey() return the capslock status http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 capskey()           Return the CapsLock status
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   func logical capskey extern

 Arguments
   None.

 Return
   A logical indicating if CapsLock is active.

 Description
   The capskey() function returns .t. if CapsLock is active.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_capskey
   clear
   cursor( .f. )
   ? "Press the CapsLock key or Esc to finish"
   do while .not. lastkey() == K_ESC
      inkey()
      if capskey()
         @ 0, 70 ?? "Caps"
      else
         @ 0, 70 ?? "    "
      endif
   enddo
   endproc

   proc main
   Test_capskey()
   endproc

See Also: altkey() ctrlkey() insertkey() numkey() scrollkey() shiftkey()

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