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 - setcapskey() set caps mode http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setcapskey()        Set Caps mode
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   proc setcapskey extern
   param value logical lCapsLock

 Arguments
   lCapsLock is the setting for the Caps Lock status.

 Return
   None.

 Description
   This procedure activates or deactivates the Caps Lock mode. If lCapsLock
   is .t., the Caps Lock mode will be activated.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc TestKey static
   wait "Caps Lock is " + iifc( capskey(), " on", "off" ) + ". Press a key."
   endproc
   
   proc Test_setcapskey
   TestKey()
   setcapskey( .t. )
   TestKey()
   setcapskey( .f. )
   TestKey()
   endproc

   proc main
   Test_setcapskey()
   endproc

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