Page 1 of 1
ON KEY xxx OF affect Fore-Ground App
Posted: Thu Mar 09, 2023 1:49 am
by AUGE_OHR
hi,
i use in my HMG App
when have HMG App in Back-Ggound and Notepad running in Fore-Ground those ON KEY in Back-Ground will be called e.g F5
instead of insert "Date/Time" in Notepad it will call "my F5" in HMG App ...
what i´m doing wrong

Re: ON KEY xxx OF affect Fore-Ground App
Posted: Thu Mar 09, 2023 8:54 am
by hansmarc
Hi Jimmy,
i have the same problem when we use 'on key Fx to ...' in a hmg or minigui application.
When our application is in background another application does not react anymore on his own Fx keys.
Tried several solutions but never found one.
Somebody a idee ????
Regards,
Hans
Re: ON KEY xxx OF affect Fore-Ground App
Posted: Thu Mar 09, 2023 9:01 am
by gfilatov
AUGE_OHR wrote: ↑Thu Mar 09, 2023 1:49 am
hi,
i use in my HMG App
when have HMG App in Back-Ggound and Notepad running in Fore-Ground those ON KEY in Back-Ground will be called e.g F5
instead of insert "Date/Time" in Notepad it will call "my F5" in HMG App ...
what i´m doing wrong
Hi Jimmy,
You are correct
There is the confirmed hotkey handling bug in HMG (by Roberto Lopez).
Please take a look to the following discussion at
viewtopic.php?t=497
BTW The above bug was fixed in Minigui Ex a long time ago.

Re: ON KEY xxx OF affect Fore-Ground App
Posted: Thu Mar 09, 2023 11:13 am
by hansmarc
Hi Grigory, Jimmy,
Grigory i am sorry to say that this is not working (not stable) in minigui ex.
We are developping for the moment with minigui and i can confirm you that when our program is placed in background that another minigui program (both use onkey Fx ...) or a windows program the Fx does not function in the program that has focus.
What we have seen is that this faulty behaviour is not stable and appears in 1 or 2 cases on 10 runs of both programs.
I will try to create one of these days a demo to show the problem.
Regards
Hans
Re: ON KEY xxx OF affect Fore-Ground App
Posted: Thu Mar 09, 2023 12:45 pm
by gfilatov
hansmarc wrote: ↑Thu Mar 09, 2023 11:13 am
Hi Grigory, Jimmy,
Grigory i am sorry to say that this is not working (not stable) in minigui ex.
We are developping for the moment with minigui and i can confirm you that when our program is placed in background that another minigui program (both use onkey Fx ...) or a windows program the Fx does not function in the program that has focus.
What we have seen is that this faulty behaviour is not stable and appears in 1 or 2 cases on 10 runs of both programs.
I will try to create one of these days a demo to show the problem.
Hi Hans,
Thanks for your interest.
My test example was a sample in the folder
SAMPLES\BASIC\TreeMenu_2.
This sample use FKeys 1-5 and 9.
I ran two copies of the above app without any hotkey issues.
I then launched Windows Notepad and pressed the
F5 key with a successful result (adding a date and time stamp).
Your feedback is welcome anyway.

Re: ON KEY xxx OF affect Fore-Ground App
Posted: Thu Mar 09, 2023 8:54 pm
by mol
It's strange, but sometimes everything works OK and sometimes IDE catches function keys very aggressive