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 - scrollkey() test if scrolllock is on http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 scrollkey()         Test if ScrollLock is on
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   func logical scrollkey extern

 Arguments
   None.

 Return
   A logical indicating if Scroll Lock is on.

 Description
   This function returns .t. if the Scroll Lock mode is active.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_scrollkey
   clear
   cursor( .f. )
   ? "Press the Scroll Lock key or Esc to finish"
   do while .not. lastkey() == K_ESC
      inkey()
      if scrollkey()
         @ 0, 70 ?? "Scrl"
      else
         @ 0, 70 ?? "    "
      endif
   enddo
   endproc

   proc main
   Test_scrollkey()
   endproc

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

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