Monitor key press

Discuss issues and ideas you have to configuring displays with PowerVision
verschuren
Posts: 79
Joined: Wed Oct 28, 2015 8:40 am

Monitor key press

Post by verschuren » Fri Feb 03, 2017 7:35 am

Hi,

Is it possible to monitor key press events? We want the display to monitor key press events during an x amount of time and trigger an action with that if nobody presses a key during that period.

I am using a PV480, but imagine this would be all the same for the color displays.

Mario
Mario Verschuren
Controls Integration
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: Monitor key press

Post by boyce » Mon Feb 06, 2017 4:01 pm

You can do this by monitoring the KeyManager.KeyState. The system puts the key number in the KeyState variable when a key is pressed. It worked on my PV780, hopefully it will work the same on the PV480. I just made a Keypress Reset Event that fires when the KeyState changes. In that event you can add actions to fire an event to reset a timer, etc.
KeyState.JPG
KeyState.JPG (106.97 KiB) Viewed 60 times
Boyce Schrack
Enovation Controls
verschuren
Posts: 79
Joined: Wed Oct 28, 2015 8:40 am

Re: Monitor key press

Post by verschuren » Tue Feb 07, 2017 2:02 pm

Hi Boyce,

That was the missing link. I can make something work with that. The PV480 seems to have the same variable KeyManager.KeyState.

Thanks!

Mario
Mario Verschuren
Controls Integration