• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Print screen button causing project to advance

Explorer ,
Oct 10, 2013 Oct 10, 2013

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.

TOPICS
Advanced

Views

1.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 10, 2013 Oct 10, 2013

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

Votes

Translate

Translate
Community Expert ,
Oct 10, 2013 Oct 10, 2013

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 11, 2013 Oct 11, 2013

Copy link to clipboard

Copied

Hi Lilybiri, that has worked and I now have a fully functional print screen button.

Many thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2013 Oct 11, 2013

Copy link to clipboard

Copied

Great, happy for you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 11, 2013 Oct 11, 2013

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.

tmp1.PNG

Cheers... Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2013 Oct 11, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources