Triggers based on keystrokes
Oct 17, 2019
I can't see that there is a good way to show a "wrong" layer based on keystrokes (the key the user presses), without making a trigger for every key on the keyboard. Even if you use variables, you still need to specify the key and there is no "User does NOT press key _____" functionality in the trigger wizard.
I'm making an interactive where the user is supposed to select the right keystroke (sometimes an F key, sometimes a number key, sometimes Tab) to advance to the next slide. In a perfect world, I'd like a wrong layer to pop up if they select the wrong key.
The Text Entry object doesn't really work either because it requires you to hit enter every time and doesn't work with F keys.
In JavaScript it would be a simple if/else statement.
I feel like I'm missing something.
Help?
2 Replies
Javascript would likely be the short-term solution as well.
(some sample code watching for the ENTER key - keycode13)
(a discussion on this topic with several useful approaches)
Hi Jerry,
Would you please give a simple example of how to get that JS code to work on a Storyline slide, such as when the user presses Enter, the slide shows a layer.
Thank you,
John
This discussion is closed. You can start a new discussion or contact Articulate Support.