wie mache ich das ? (ohne hooks)
ich möchte gerne ctrl + mouseleft abfragen
Delphi-Quelltext
1:
| if (GetAsyncKeyState(vk_control) = 1) and (GetAsyncKeyState(???) = 1) then |
aber wie ein hotkey nicht aus einer procedure heraus, weil die kombo einen timer disablen soll, soll ich dafür einen thread erstellen ?
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
| procedure hotkey; begin while true do if (getasynckeystate(vk_control) = 1) then showmessage('Control gedrückt'); end;
procedure TForm1.FormCreate(Sender: TObject); var tid: cardinal; begin createthread(nil, 0, @hotkey, nil, 0, tid); end; |
soweit funzt es schonmal net, und wie mache ich die mausstatus abfrage ?