How to link events to arbitrary keypresses

Find and share HowTos to various installations / configurations!
Search

Post Reply
3 posts • Page 1 of 1
Sector97
Posts: 13
Joined: Thu Feb 02, 2023 3:26 am

How to link events to arbitrary keypresses

Post by Sector97 »

I'm looking for a straightforward way to link user keyboard key presses to specific events in WinCC OA 3.19.

For example, if I wanted to toggle the visibility of a warning (Visible/Invisible) in Vision whenever the Caps Lock key is pressed, what would be the simplest way to monitor that specific key press?

In my project, we’ve implemented a workaround where we use the second pulse to check, on a per-second basis, whether Caps Lock is enabled. However, this feels inefficient, and I can’t help but think there must be a better solution.

I’m aware that it’s possible to monitor function key presses (e.g., F1–F12), as outlined in the documentation:
https://www.winccoa.com/documentation/W ... ce-01.html

However, I’m looking for a more general solution that/ Works with any key or key combination, can be applied at the panel/page level.
For instance, what would be the easiest way to override the behavior of the Tab key on a specific panel?

Any guidance or suggestions would be greatly appreciated!

User avatar
hpuchegger
Posts: 86
Joined: Fri Oct 08, 2021 10:38 am

Re: How to link events to arbitrary keypresses

Post by hpuchegger »

I've looked at some of our feature requests in this direction that have been rejected on the grounds that there are security concerns and security reasons not to implement the requirement.

Br, Herbert

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to link events to arbitrary keypresses

Post by leoknipp »

Maybe there is another solution for your requirements. E.g. for a button you can define that the "Clicked" event is executed, when a button is pressed. If you put several invisible buttons in your UI you can react on keyboard events.
For "CapsLock" it does not work.

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
3 posts • Page 1 of 1