Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Library: Windows API / MS.NET Framework API (https://www.delphipraxis.net/20-library-windows-api-ms-net-framework-api/)
-   -   Delphi Tastaturstatus abfrage (z.B. VK_NUMMLOCK) (https://www.delphipraxis.net/2584-tastaturstatus-abfrage-z-b-vk_nummlock.html)

Luckie 30. Jan 2003 10:24


Tastaturstatus abfrage (z.B. VK_NUMMLOCK)
 
Delphi-Quellcode:
var
  KeyboardState: TKeyboardState;
begin
  GetKeyboardState(KeyboardState);
  if KeyboardState[VK_NUMLOCK]=1 then
    Label1.Caption:='An'
  else
    Label1.Caption:='Aus';
end;
Autor: FuckRacism


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:49 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz