Recent Posts
None | 12 sec ago
C | 13 sec ago
Ruby | 40 sec ago
None | 45 sec ago
None | 51 sec ago
None | 54 sec ago
Bash | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Anonymous on the 10th of Feb 2010 12:28:34 AM
Download |
Raw |
Embed |
Report
function GetKeyCode(c: char): integer;
begin
result := VkKeyScan(c) and $FF;
end;
function StrToChr(Str: string; Pos: Integer): Char;
begin
Result := Str[Pos];
end;
function aKeyDown(var Key: Byte): Boolean; stdcall;
var
TheKeys: string;
I: Byte;
begin
Result := False;
TheKeys := '1234567890qwertyuiopasdfghjkl' + Chr(13) + 'zxcvbnm ' + Chr(8);
for I := 1 to Length(TheKeys) do
begin
Key := GetKeyCode(StrToChr(TheKeys, I));
if (GetAsyncKeyState(Key) <> 0) then
begin
Result := True;
Exit;
end;
end;
TheKeys := '`-=[]\;../';
for I := 1 to Length(TheKeys) do
begin
Key := Ord(GetKeyCode(StrToChr(TheKeys, I)));
if (GetAsyncKeyState(Key) <> 0) then
begin
Result := True;
Exit;
end;
end;
Key := 0;
end;
Submit a correction or amendment below.
Make A New Post