Autor Beitrag
USA-killer
Hält's aus hier
Beiträge: 1



BeitragVerfasst: So 13.07.03 15:48 
Hi, wie kann ich unter Delphi bestimmte Tasten deaktivieren?
z.B. : Ich habe eine Taste gedrückt bspw. vk_right und möchte gerne vk-left vorübergehend deaktivieren, bis eine andere Taste, wie vk_up oder vk_down gedrückt wurde. :D
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Mo 14.07.03 09:47 
schau dir mal Suche in: Delphi-Forum, Delphi-Library HOOKS an. aber man kann das denke ich auch anders lösen und zwar wenn du eine abfrage in onkeyup machst und dann fragst ist rechts gedrückt und dann losgelassen dann machste mit #0 deaktivierste vk_left bei vk_up oder was weis ich machste es eben wieder andersrum

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 14.07.03 17:21 
hooks sind da fehler am platzt es geht viel einfacher:
if key = VK_LEFT then key:=#0;
und fertig. das musst du dann z.b. ins onKeyDown ereignis bauen.

_________________
MFG
Michael Springwald, "kann kein englisch...."