ON KEY xxx OF affect Fore-Ground App

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

ON KEY xxx OF affect Fore-Ground App

Post by AUGE_OHR »

hi,

i use in my HMG App

Code: Select all

ON KEY xxx OF 
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 :?:
have fun
Jimmy
hansmarc
Posts: 40
Joined: Thu Jun 23, 2016 5:38 am
Location: Belgium

Re: ON KEY xxx OF affect Fore-Ground App

Post 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
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: ON KEY xxx OF affect Fore-Ground App

Post by gfilatov »

AUGE_OHR wrote: Thu Mar 09, 2023 1:49 am hi,

i use in my HMG App

Code: Select all

ON KEY xxx OF 
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. :arrow:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
hansmarc
Posts: 40
Joined: Thu Jun 23, 2016 5:38 am
Location: Belgium

Re: ON KEY xxx OF affect Fore-Ground App

Post 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
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: ON KEY xxx OF affect Fore-Ground App

Post 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. :arrow:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: ON KEY xxx OF affect Fore-Ground App

Post by mol »

It's strange, but sometimes everything works OK and sometimes IDE catches function keys very aggressive
Post Reply