Solved

Blinking Num LED

Posted on 1998-12-18
7
391 Views
Last Modified: 2010-04-04
Hi! I want to make the Num Led blinking. How do I switch
Num on/off ?

Regards
ItsMe
0
Comment
Question by:ItsMe
  • 3
  • 2
  • 2
7 Comments
 
LVL 3

Expert Comment

by:williams2
ID: 1351754
What Num LED?
0
 

Author Comment

by:ItsMe
ID: 1351755
The lamp on the keyboard which is turned on/off when you press the "Num" key.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1351756
Hi ItsMe,

try these :

procedure TMyForm.Button1Click(Sender: 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.

0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:williams2
ID: 1351757
I guess that should answer your question :-)
0
 

Author Comment

by:ItsMe
ID: 1351758
That doesn't work but I've found out that it works when I send a Keyboard Event Message.

0
 

Author Comment

by:ItsMe
ID: 1351759
Uuups, I wanted to accept it. :-) Please send a comment as answer so that I can accept it.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 10 total points
ID: 1351760
ok.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question