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

How to count the number of clicks a user made? +Penalize if too many

New Here ,
Dec 21, 2015 Dec 21, 2015

Hi all,

I have a video where a user has to find objects. He has to click when an object is in the video. I created appropriate click boxes during appropriate times.

What I need to do:

I need count the number of clicks and display it under the video. So for example after a user clicks I display some icon at the bottom of the video. If he clicks 5 more times, there are 6 icons in a row now. If too many are pressed, I can say that the user is cheating and give him a 0 score.

Anyway to achieve this?

1.7K
Translate
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 , Dec 22, 2015 Dec 22, 2015

The first decision is to increment the counter by 1, sorry, typed too quickly should be:

Increment v_counter by 1

You should have seen that syntax when you created the first decision. This means each click will add 1 to v_counter, reason why this has to be the first decision. Only the Flag linked with the value in v_counter has to be added, since the previous Flags will already have been shown with the previous clicks. This conditional action has to be triggered by the Success even of the Click b

...
Translate
Community Expert ,
Dec 22, 2015 Dec 22, 2015

This is a double post, right? You have to give more details: do you need to report the score, how is the video inserted in Captivate etc...

Translate
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
New Here ,
Dec 22, 2015 Dec 22, 2015

Yes, I thought the other post wasn't explaining things very well.

I would like to show a flag icon at the bottom for every click that a user makes. So under the video (the video is 20 seconds long + slide which is 20 seconds long) I'd like to have a line of white space where these flags will be added. So basically I need some sort of trigger which adds a flag to the bottom whenever a user clicks. I don't need to show the number of clicks it took them after the test, but during the test.

Next step would be to penalize if too many are pressed.

Translate
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 ,
Dec 22, 2015 Dec 22, 2015

You still didn't answer my question about the reporting of the score at all?

For the flags:

  • Create 5 flag images, label them. Will use names Flag1, Flag2.....Flag5 on your 'white space)
  • Make them invisible in Output (click the eye icon top left of the Properties panel).
  • Create a user variable v_counter with a default value of 0
  • For the interactive object (click box, button or shape button) create a conditional action with 6 decisions:
    • First decision 'always' is a mimicked standard action like this:
      IF 1 is equal to 1
          Increment v_counter
    • Second decision 'Show1'
      IF v_counter is equal to 1
          Show Flag1
    • Third decision 'Show2"
          Show Flag 2
    • Fourth
      ....
    • Sixth decision 'Show5'
         Show Flag 5

That will take care of the appearance of the flags.

As for the score, have to know if you need to report the score to a LMS or not.

If you want the flags to have disappeared when coming back to the slide, and want to allow the user to do the exercise again, you'll also need an On Enter action that will hide the flags (group them) and reset the variable v_counter to 0.

Translate
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
New Here ,
Dec 22, 2015 Dec 22, 2015

The score will be reported as a points, it's not to do with clicks.

I managed to create this conditional action, but I'm having trouble connecting it to the appropriate clickbox. I created a clickbox which is a full video long and tried to add conditional login.

Also, how does v_counter work on mouse-click? We didn't specify that it will count the clicks?

Is it possible to maybe hire you for an hour to give me a tutorial?

Translate
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 ,
Dec 22, 2015 Dec 22, 2015

The first decision is to increment the counter by 1, sorry, typed too quickly should be:

Increment v_counter by 1

You should have seen that syntax when you created the first decision. This means each click will add 1 to v_counter, reason why this has to be the first decision. Only the Flag linked with the value in v_counter has to be added, since the previous Flags will already have been shown with the previous clicks. This conditional action has to be triggered by the Success even of the Click box. Since you need multiple clicks, should have to try it out myself, was bit too busy today. Apologies.

You add new information now: what do you mean by 'conditional login'?

If you need the score to be reported to a LMS (still don't know that), you have to know that all Quizzing System variables are read-only. That means that the maximum score is fixed from the start of the tutorial. You can attach a score to each interactive object. Probably the best way would be to add a Next button (with a pausing point later than that of the click box), that will get a score. Since you want a penalty when v_counter is greater than 5, you'll need to use two Next buttons: one with a score=0 and one with a score=X (points you want to give). If you put the start of the timeline of those buttons just after the timeline of the click box, you can add a last decision to the conditional advanced action that will check which button to show. If I label the 0 scored button 'Bt_Next_0' and the scored version 'Bt_Next_points' that last decision will be:

IF v_counter is greater than 5

    Disable Bt_Next_points

    Hide Bt_Next_points

    Show Bt_Next_0
    Enable Bt_Next_0

ELSE

    Disable Next_0

    Hide Bt_Next_0

    Show Bt_Next_points
    Enable Bt_Next_points

Translate
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
New Here ,
Dec 22, 2015 Dec 22, 2015

Sorry I meant to say "conditional logic". Regarding the score to the LMS, no, we just need a flash file, which we will upload as a video quiz to our website.

I will try all of the things that you have written, but I'd like to ask if would it be possible to speak to you over skype and get a tutorial on how to do it properly? I will, of course, pay for this.

Translate
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 ,
Dec 22, 2015 Dec 22, 2015
LATEST

I sent you a private message.

Translate
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