You can help by commenting or suggesting your edit directly into the transcript. We'll review any changes before posting them. All comments are completely anonymous. For any comments that need a reply, consider emailing email@example.com.
We are experiencing playback issues from our video hosting provider. Please check back shortly.
4:53Gateway vs. Client Event Scripts
5:29Tag Change Scripts
Take topic challenge
Learn how to write event scripts that fire on the Client when a user performs a certain key stroke.
Video recorded using: Ignition 7.7
Transcript(open in window)
[00:00] In the Ignition Vision Client you can have scripts run whenever a certain key combination is pressed and the way to do this is by using the Client Event Scripts keystroke handlers. You can have any number of keystroke handlers you want and when you add a keystroke handler the first thing you have to do is choose a keystroke combination. So you can pick any of the modifier keys and then whether you want your keystroke script to run when the key is pressed, when it's released or when a character is typed. So pressed and released are useful for any kind of character whereas typed is only useful for alphanumeric characters and that is going to happen after the key is typed. So it's similar to released except it cannot be used with special keys like the F keys. For example if we wanted to maybe open a window when the F8 key was pressed we simply add that script and then you can just type your script in here. So it would be something like system.nav.openWindow. And you just give it a path to the window right there and now whenever you're in a client, no matter what you're doing with that client, if the user hits the F8 key it's going to run this script and open this window.