Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu
Online

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.312 Beiträge
 
Delphi 12 Athens
 
#6

Re: [OS] - Feststelltasten (Capslock) Anzeige für Notebooks

  Alt 29. Okt 2009, 12:11
Ein "legitimer" Workaround
Und wenn du es nur prüfst, wenn ein entsprechendes KeyBoardEvent reingekommen ist, dann würde ich es mal als "verkraftbar" ansehn.

Na OK, man könnte auch mal nachsehn, ob im KeyState nicht doch irgendwo der richtige Status versteckt ist.

GetKeyState, aber mit etwas Glück ist das auch wo anders so
If the low-order bit is 1, the key is toggled. A key, such as the CAPS LOCK key, is toggled if it is turned on. The key is off and untoggled if the low-order bit is 0. A toggle key's indicator light (if any) on the keyboard will be on when the key is toggled, and off when the key is untoggled.
Ein Therapeut entspricht 1024 Gigapeut.
  Mit Zitat antworten Zitat