Page 1 of 1

ActiView responding to keyboard commands even when it does not have focus

Posted: Fri Oct 15, 2021 9:54 pm
by bburan
I've been doing some development on ActiView and noticed that whenever a different window (e.g., a web browser or text editor) has focus, ActiView will still respond to my key presses. In particular, ActiView will change tabs whenever I press the arrow keys even if ActiView does not have focus. How is this possible? How do we prevent this behavior?

Re: ActiView responding to keyboard commands even when it does not have focus

Posted: Mon Oct 18, 2021 2:43 pm
by Coen
In the latest 9.00 Windows version of ActiView (put on our website today), I have deleted the arrow Left/Right/Up/Down and Pgup/Pgdn keyboard shortcuts. In LabVIEW 2021, the "key focus" property node does not work for the Menu Ring controls, and therefore I could not get the shortcuts to work fully reliable. These shortcuts did not work under Mac and Linux anyway, and have never been available for the Mac/Linux versions. The remaining shortcuts for all platforms are:

- ENTER = Start
- HOME = Reset Baseline
- F1-F8 = Triggers 9-16

In your own modified ActiView, you can just delete all (3) Keyboard/Input VI's and associated wiring (lower left corner of orange State 4). The above shortcuts will remain, but the Arrow and Page keys won't affect ActiView anymore. Refer to the 9.00 block diagram for help.

Best regards, Coen (BioSemi)

Re: ActiView responding to keyboard commands even when it does not have focus

Posted: Tue Oct 19, 2021 11:00 pm
by bburan
Thank you very much! We don't have a LabView development license so we don't have the ability to modify the source code. I'll download the updated executable. Have a great day.