Thema: Key abfrage

Einzelnen Beitrag anzeigen

nahpets
(Gast)

n/a Beiträge
 
#3

Re: Key abfrage

  Alt 6. Okt 2008, 11:29
Hallo Emil,

so?
 if (GetAsyncKeyState(33) and 15) = 1 then ShowMessage('ist gedrückt') else ShowMessage('ist nicht gedrückt'); 33 = Bild auf
34 = Bild ab

GetAsyncKeyState ist in Windows.pas definiert.
  Mit Zitat antworten Zitat