Registriert seit: 14. Aug 2004
1.439 Beiträge
Delphi 2007 Professional
|
Re: VirtualKeys to Char
14. Apr 2005, 13:14
Juhu, funktioniert .....
Falls mal wer sowas ähnliches braucht .....
Delphi-Quellcode:
var tempC : array [1..2] of Char;
keystate : TKeyboardState;
begin
GetKeyboardState(keystate);
if ToAscii(Key, MapVirtualKey(key, 0), keyState, @tempC[1], 0) > 0 then begin
Edit3.Text := Edit3.Text + tempC[1];
end;
Gruss Hans
2B or not 2B, that is FF
|
|
Zitat
|