Skip to main content
tman22
Participating Frequently
October 11, 2022
Question

software sims: scrpits for repeated actions?

  • October 11, 2022
  • 1 reply
  • 263 views

using software sims to guide students step by step/click by click thru an activity. every clickbox needs to do the same thing:on success, it just goes to the next slide. on failure it pops the failure box, until the last attmpt where it shows a prev. hidden highlight box over the click box (effectivly highlighting where they should click) and conts with the activity so they can click the now highlighted clickbox and go to the next slide.

i can script this easily via advanced options, but wanted a smarter way to do it (i assume it'll involve variables) where i dont have to re-make essentially the same advanced action script for everyslide. the clickbox and highlight box names change each slide and you cant have dupes, so each adv optns scrpt must be hard coded to each highlight and clickbox manually. there can easily be 20+ slides per sim, and i have a long list of sims i need to make, so any speeding up in the process could save me litteral days and also a lot of headache.

advanced options or javascrpt are both okay (or anthor, cooler, secreter scrpit optn as well)

---

i think an easy fix would be if i was allowed to set the click/higlight box names to end with some var i'd just i++ in the scrpit but that doesnt seem to be possible

This topic has been closed for replies.

1 reply

Lilybiri
Legend
October 11, 2022

Never knew it is so difficult to read a question when a sentence is not starting with a capital character. Sorry for that remark.

 

Why not use a shared action in combination with a multistate object? It would not be possible if you are talking about a responsive project with Fluid Boxes. Too bad you didn't specify that, nor the version of Captivate you are using. How many attempts do you use? Is that number the same for all slides?

Have a look at the workflow in this post, you just need to add the Show command for the Highlight box, which will be another parameter:

https://blog.lilybiri.com/automatic-hint-after-x-failed-clicks

 

 

 

tman22
tman22Author
Participating Frequently
October 11, 2022

Sorry about the no caps.

I'm using Captivate 2019 (64 bit). I've been using the built in click boxes that auto populate upon clicking while recording a software sim. I set the clickbox to 2 attempts, and on last attempt it exactues the advanced option

  • change state of higlight_box_1 to stateVis (the box starts a state with 0 opacity, state view is colored green with 40% opactiy)
  • pause
  • show click_box_1

A new Adv Act must be made for each slide, with highlight_2 and so on. I know this is terribly ineffcannt but that's the only way I was show how to. the number of the click\highlight matches the slide number. Everything is default lol. Thanks for any pointerrs I'm so new I'm having trouble knowing what to google.

Lilybiri
Legend
October 11, 2022

Did you read my answer? I used caps. 

You need to give the full version number as you find under Help, About Captivate. Under the common name CP2019 there have been 3 main releases and several patch releases.

First of all: you cannot use the Last Attempt action if you want to have another attempt after showing the Highlight box.

You would need a SHARED ACTION instead of duplicate advanced actions. Since you want to do this on the Last Attempt event, you need more than what you just mentioned, since you would show also a new interactive object to allow another attempt after the appearance of the highlight box. I would propose to use a shape, converted to a button, which you give the look of the highlight box by setting up the stroke color/width and the fill color to Alpha=0. Hide that shape button with the On Enter action, and show it with the Last attempt shared action. The Failure shape (probably not a caption) will show up automaticall, the Last Attempt action would be limited to:

  Show Shape button      where the shape button has 'Go to Next Slide'

That is a simple solution, no need for any advanced action. Don't forget to deactivate the 'Continue... 'option for the action.

However here are some other questions: 

  1.  Repeating from first answer: is this a responsive project with Fluid boxes or not? The workflow I just described will not be possible in a Fluid Boxes project, you cannot stack objects in the same location (here the click box and the shape button).
  2.  Is the is a scored assessment or just a training sim? 

There is a difference between the Pause command and the pausing point of a Click box. Hope you are aware of that? Have a look at:

https://blog.lilybiri.com/pausing-captivates-timeline

A real good basic training is what you need. Trying to use advanced or shared actions without knowing the basics of Captivate... tricky.