Registriert seit: 1. Feb 2018
3.691 Beiträge
Delphi 11 Alexandria
|
AW: Hotkey per Button
13. Jun 2018, 12:11
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
Keybd_Event(VK_Scroll,0,0,0);
end;
Versuche mal
Delphi-Quellcode:
procedure TForm1.Button1Click(Sender: TObject);
begin
Keybd_Event(VK_Scroll,0,0,0); // <- taste drücken
Keybd_Event(VK_Scroll,0,KEYEVENTF_KEYUP,0); // <- taste loslassen
Keybd_Event(VK_Scroll,0,0,0); // <- taste drücken
Keybd_Event(VK_Scroll,0,KEYEVENTF_KEYUP,0); // <- taste loslassen
end;
|
|
Zitat
|