Delphi
--
Questions
--
Followers
Top Experts
New application (Project1.dpr).
In my own message loop (PeekMessage/DispatchMessa
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
var
M : TMsg;
begin
while True do
begin
if PeekMessage(M, 0, 0, 0, PM_REMOVE) then
begin
if (M.Message = WM_KEYDOWN) or (M.Message = WM_SYSKEYDOWN) then
// OutputDebugString do not outs any string about F6, but shows
// F1, F2, F3 etc...
OutputDebugString(PChar(In
IntToStr(M.message) + ' '+
IntToStr(M.wParam)));
DispatchMessage(M)
end
else
WaitMessage;
end;
end;
Ciao, Mike






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
if not RegisterHotKey(Handle,
GlobalAddAtom(PChar('Sunny
MOD_ALT, VK_F6) then
RaiseLastWin32Error;
// It shows no error






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
What I try to achieve? Oh... it is a long story. I have a small application (about 2 milion lines), I make its transition to Windows from DOS. So I have something like KeyPressed/ReadKey emulator inside. Of course it is a windows message loop.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
If I assign that key to a menu option, no reaction.
I tried to register the alt-f6 as hotkey which my machine allows me to do, but the key doesn't work.
It would surprise me if we have the same program running that registers that key except for windows itself probably.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
I'm sure with some extremly high effort you could catch system keys too, but you would need to capture them before the system gets them. Hence it would something like a keyboard driver. Not a very elegant solution, however :-(
Ciao, Mike
I think users of previous versions will take some efforts to get into habit Alt+F8 key instead :)
Thank you.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
Delphi
--
Questions
--
Followers
Top Experts
Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.