Skip to main content
georger5449617
Participant
December 21, 2015
Answered

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

  • December 21, 2015
  • 1 reply
  • 1967 views

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?

This topic has been closed for replies.
Correct answer Lilybiri

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?


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

1 reply

Lilybiri
Legend
December 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...

georger5449617
Participant
December 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.

Lilybiri
LilybiriCorrect answer
Legend
December 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?


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