turn off num lock, scroll lock 
Author Message
 turn off num lock, scroll lock

Quote:

>Please post a procedure to turn off num lock,
>and a procedure to turn off scroll lock.

Please read Prof. Salmi's FAQs, posted here
once every week. FAQPAS4, Question 77
deals with your query.

KlausL



Wed, 18 Jun 1902 08:00:00 GMT  
 turn off num lock, scroll lock

Quote:
> Please post a procedure to turn off num lock,
> and a procedure to turn off scroll lock.

Real mode:
Mem[$0040:$17]:=Mem[$0040:$17] or $20;  {NumLock ON}
Mem[$0040:$17]:=Mem[$0040:$17] and (not $20);  {NumLock OFF}
{NumLock: $20, ScrollLock: $10, CapsLock: $40}

Protected mode:  {use Seg0040 instead of $0040}
Mem[Seg0040:$17]:=Mem[Seg0040:$17] or $20;

Windows:
uses WinProcs, WinTypes; {also Win31 for VK_SCROLL}
var KeyState: TKeyboardState;
begin
  GetKeyboardState(KeyState);
  KeyState[VK_NUMLOCK]:=#1; {#0: OFF, #1: ON}
  SetKeyboardState(KeyState);
end.
{VK_CAPITAL for CapsLock, VK_SCROLL for ScrollLock}
___________
Olivier Avenel  SPEC / CEA-Saclay   91191 Gif-sur-Yvette Cedex  France



Wed, 18 Jun 1902 08:00:00 GMT  
 turn off num lock, scroll lock

Quote:
> Procedure for num lock:
> Press and release the "Num Lock" button
> ONCE (on most keyboards, it's located in the
> upper left hand corner of the keyPAD area).
> I don't know how to do the scroll lock -
> perhaps somebody else knows the procedure
> for that?

Doesn't your keyboard have a scroll lock button? Mine does... (in between
Print Screen/SysRq and Pause/Break).

--
______________________________________________________________________
     The Scarlet Manuka,      |        Nitpickers' Party motto:
  Pratchett Quoter At Large,  |  "He who guards his lips guards his
 First Prophet of Bonni, is:  |  soul, but he who speaks rashly will

______________________________|_______________________________________



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Turn on/off Scroll lock

2. a traffic light program with lock's (num loack Caps loack and scroll lock)

3. Turning Num/Caps/Scroll ON/OFF

4. How to activate Scroll, Caps and Num Lock

5. CAPS & NUM LOCK

6. NUM LOCK ERROR !!!!

7. The mysterious scroll lock key

8. How to read the Scroll-Lock key?

9. Locking/Locked records

10. help with record locking.. (Pessimistic locking)

11. Caps/Num/Scroll Lights & ANS2PAS

12. Turn off global variables

 

 
Powered by phpBB® Forum Software