Copy link to clipboard
Copied
I have added some JavaScript to a button in my captivate project using On success > Execute JavaScript > Script Window > window.print()
This works fine to print the screen, however, clicking the button also makes the project advance to the next slide.
Any tips on how to acheive the print screen functionality without advancing the slide would be greatly appreciated. We intend to publish using HTML5 output only.
The majority of elearning projects we work on require a print screen button, it would be a very useful feature were it to be added to Captivate without the need to dabble with JavaScript.
Many thanks in advance.
1 Correct answer
Replace the simple action by a standard advanced action to avoid the play head advancing.
http://blog.lilybiri.com/why-choose-standard-over-simple-action
Lilybiri
Copy link to clipboard
Copied
Replace the simple action by a standard advanced action to avoid the play head advancing.
http://blog.lilybiri.com/why-choose-standard-over-simple-action
Lilybiri
Copy link to clipboard
Copied
Hi Lilybiri, that has worked and I now have a fully functional print screen button.
Many thanks!
Copy link to clipboard
Copied
Great, happy for you!
Copy link to clipboard
Copied
Curious about this one, Lilybiri
I know you are the queen of actions, but why would you choose to create an action as opposed to simply clearing the "Continue" option here? That would seem the simpler approach.
Cheers... Rick
Copy link to clipboard
Copied
Certainly a possibility as well, Rick, since it is about executing a Javascript. For most other actions this option doesn't exist, and maybe that it why I always try to point to that replacement. Maybe I'm too used to replace automatically simple actions that could release playhead by standard action, bit addicted as you suspect. With the new shared actions, even more... you can apply it then wherever you want in the project.
Thanks for supplying this alternative.
Lilybiri