ItsMe
asked on
Blinking Num LED
Hi! I want to make the Num Led blinking. How do I switch
Num on/off ?
Regards
ItsMe
Num on/off ?
Regards
ItsMe
What Num LED?
ASKER
The lamp on the keyboard which is turned on/off when you press the "Num" key.
Hi ItsMe,
try these :
procedure TMyForm.Button1Click(Sende r: TObject);
Var
KeyState : TKeyboardState;
begin
GetKeyboardState(KeyState) ;
if (KeyState[VK_NUMLOCK] = 0) then
KeyState[VK_NUMLOCK] := 1
else
KeyState[VK_NUMLOCK] := 0;
SetKeyboardState(KeyState) ;
end;
Regards, Zif.
try these :
procedure TMyForm.Button1Click(Sende
Var
KeyState : TKeyboardState;
begin
GetKeyboardState(KeyState)
if (KeyState[VK_NUMLOCK] = 0) then
KeyState[VK_NUMLOCK] := 1
else
KeyState[VK_NUMLOCK] := 0;
SetKeyboardState(KeyState)
end;
Regards, Zif.
I guess that should answer your question :-)
ASKER
That doesn't work but I've found out that it works when I send a Keyboard Event Message.
ASKER
Uuups, I wanted to accept it. :-) Please send a comment as answer so that I can accept it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.