Create a conditional action by clicking a button twice

I want an action to run when the learner clicks on a button ONCE. I also want a different action when the learner clicks TWICE on the same key.  How can I do this with a conditional action?

Conditional actions have sections called blocks of decision, each of which has a condition for the actions below can be executed.

So in your case you would need three blocks of decision and you will also need a counter variable that is set to 0 by default.

The first block of decision suffers from a mannequin (like you the above) will always have the value TRUE.  IF 1 is equal to 1 is a good example of a false decision.

Action under this model condition should be to INCREMENT your counter of 1 variable.  (You can also use an action of the EXPRESSION, but it is a little more complex.)

This action of the INCREMENT will always run whenever the conditional Action is executed.

Condition of your next decision block checks the value of your counter variable, and if it has been set to the value 1 at this point, then it will perform any actions you deem appropriate for that.

Condition of your third decision block checks the value of the counter to a value of 2 (which means its increment twice) and if yes performs a different action of your choice.

You could continue this way almost indefinitely by specifying different actions for different values of the counter.  However, at some point, you can use a different action to reset the counter again.  For example, you can have a decision at the end of the sequence block in the same conditional Action that will check the counter variable and if she has reached a certain number (e.g. three) then will reset to 0 or 1.

Tags: Adobe Captivate

Similar Questions

  • Conditional action to display the button next main Menu after received the visit 4 slides

    Is there a tip Action to display a next button on a slide after that 4 different slides have been opened?

    Hello

    Why are you putting this issue separately, I thought it was related with the other thread? If you ask this question, it will be more difficult to answer and resolve only in combination with other advanced action who showed the images. Because the next button must be made visible on this same blade where you show the pictures, or is that not the case?

    You must create a user variable, I'll label it v_counter. Whenever you show a picture, you must increment this variable (second statement after image) like this:

    Expression v_counter = v_counter + &

    And then you add a fifth of the decision to your advanced conditional action, which checks the value of v_counter and show the button hidden in the following departure if the meter is at least 4:

    If v_counter is greater than or equal to 4

    Then display the button

    Otherwise, continue

    But if you want a literal answer to this question, it will be something different and more complicated. Because then I need to know if visited slides will be viewed entirely until the last image? If yes you can trigger a fast action by the event leaving. BTW, still do not know how you will trigger the action of tip of the other thread, by what event?

    Lilybiri

  • Need to click the button twice

    The buttons are contained in a clip.  When you click the button, it starts the clip and makes the page "flip".  It is, if I click back to page 1 and return on page 2, it takes place in two clicks on the button to launch the clip.

    I put this action in the button where "page2" is the name of the instance of movieclip:

    on (release) {}
    _root.Page2.gotoAndPlay (1);
    }

    Thank you!

    first response kGlad was on target.  The stop(); at the end of image 1 the playing time for the first click... instead of gotoAndPlay (1), try to use gotoAndPlay (2);

  • Must click the button twice to run the code in the Click event.

    I have a button that has the following code to the click event.
    _SubFormS.setInstances (0);

    Last week, I added the code on the Exit of the next button event.
    xfa.host.setFocus (Subf.ButtonRemove);

    For some reason, I have to click twice for instance 0 value. It's never happened before. If I comment the code on the same output, nothing changes. Ideas of this weird behavior.

    Thank you.

    Hey, 1996

    It seems to me that you have a setfocus soomehwere which is always of the substitution of the click event. For example, if you have a field that does not check if (xfa.event.commitKey == 3) before that setFocus is called, it doesn't matter what other field (or button) you click on, you will be sent to the field specified by the setFocus. 'Double click' isn't a double click, it's a click that is substituted by a setFocus (which sends you somewhere else) then a second click which is not interrupted by a setfocus, which means you can click on the button.

    I don't think I have explained myself well, so here, step by step what I think is happening:

    -You are currently in an area that doesn't have that a setFocus without checking the commitKey.

    -You click on the button.

    -Due to the setFocus, you are sent to another field that does not have the button. This means that the button never fires the click event. the second field that you are sent to has the good commitKey checks.

    -You click on the new button,

    -This time, because the new field that you are in control of the good commitKey, you are not sent to another discipline, and succeeded to your click.

    I hope it did a good job of explaining my guess as to what is happening. Check all your output events to ensure that they all use the If (xfa.event.commitKey == 3) then bit. having forgotten one would explain why that happen all the time... it only occurs when you try to click on the button while you're in the field wihtout the cheque of commitKey.

    Let me know if this is useful,

    -Scott

  • Why sometimes I have to click a button twice?

    Hi all.


    I have a curiosity. Why sometimes I have to click twice on a button for his execution of event?


    For example, I have a button that changes the presence of a page to hidden, but I have to click twice to start the event.

    Thank you

    It could be the problem with the script written in the case of behave this way...

    If you could post your script, then it might be easier to understand the question...

    Thank you

    Srini

  • Two actions of a single button-click

    Hi all
    I have a button I want to do two things. When I test the movie I have to click the button twice to make two things happen. Is my machine on drugs, or is there something that I am missing? Here's where I use the button.

    on (release) {}
    gotoandStop (2)
    }
    on (release) {}
    holder_mc.loadMovie("my_movie.swf",1);
    }

    Thanks for any help,
    Mike

    Yes, it worked perfectly. Thanks for the basic lesson.

  • Several conditional Actions required to Slide "on entry.

    I have a Captivate 7 file with a main Menu that contains 5 buttons that take users through 5 submenus. There are buttons that launch other project files on each submenu.

    On the submenus when a user performs a project file, the file closes and a variable puts a check mark on the top of the key to display this project is completed. Once a user makes all projects on a submenu, the button in the main Menu which directs user to the submenu then will have a tick on the top of the key to show the submenu is complete.

    This works well with many variables; standard actions on the buttons and a conditional action advanced on the "on entrance" for the slide.

    Question I have is that on each slide to make a Visual indicator that indicates the total percentage of full user (6 built images showing 0,20,40,60,80 & amp; 100). I created a conditional action that shows a relevant picture but my question is how to integrate only next to entry. Have you thought to use on output to show the image correctly on each slide, so that when the user visits a slide good picture - unfortunately it does not work.  Someone at - it ideas? Is it possible to drag on entry perform two separate conditional actions?

    Any great fully received help!

    You can put decisions as much as you want in a conditional to the progress of the actions. How much time do you have for now? All the statements in any fast action are always evaluated, which is not always the case in conditions in a programming language. Sequence is of course very important, both in the statements and decisions.

    Lilybiri

  • Help conditional Action.

    Ok.. so I found a video on creating a conditional action on ADOBE TV... Excellent. However when I get to the part where I apply it to a button I encounter THIS problem.

    wtf.jpg

    ADOBE TV video is on the left... my screen on the right. As you can see, it applys the conditional action to the button using the 'ACTION' of the object properties section, but when I look for the same 'ACTIONS' menu in my CP7, apparently does not exist.

    More Grrrrr...

    Same question: How can I request a conditional action to an object such as a button... If I insert an object "button... How I bind it to a text field?

    PS. I tried with just a 'button', but that didn't work either.

    You can find the settings for captions to show lower in the properties panel, under 'Options '. (Assuming that Captivate 7 has the same general layout than previous versions.)

  • How to create a dynamic action with a button?

    Hello, I created a dynamic action with a button, which should show a region of the page When you click.

    What I have to enter in the State et value of the condition?

    Thank you

    Hello

    1. in doSubmit ("ACCEPT");

    ACCEPT is nothing than the name of the button, but I hope that you have created the name of the button as "BELOVED".

    $2 s ('P57_ACCETTA', 1);

    $s('P57_ACCETTA',1)---> all by setting the value you give space. Make the changes and check.

    And you enter this script in the HTML header.

    If possible you can send your page with the credentials so that will look.

    -SreeNithi.

  • Can I use conditional and advanced actions on the same button?

    I'm fairly new to Captivate, but come from a flash background and I do of Captivate to do certain things, that I expected to be straightforward and a normal requirement.

    I want to create a screen with a number of interactive objects, in this case photos, it's the learner clicks on to display a text element.

    By clicking on the following image, the first piece of text is hidden and a second piece shown.

    There are 6 images/buttons which have to work in this way.

    However, I also want to determine if all the buttons have been used, as we force the user to view the entire slide before you continue.

    I can do the hide/show text and buttons, and I wrote a conditional action to check the variables for each button. However I do not know how and when to appeal to this action.

    I was hoping that in my Advanced action for each button, I could add in a call to the conditional action "record"variables", which would be very well fulfil this requirement, however this doesn't seem to be the case."

    I also animation/effects on the timeline before the images are on the meaning of screen I want to go back to the beginning of the timeline to use an event "on enter.

    I am surprised that this isn't something that people most need because while it may be frowned upon outside in the field of e-learning, disabled navigation is frankly not will disappear and working for a large corporation will be a must.

    If anyone can shed some light on this, or perhaps suggest a better approach then I'd appreciate it.

    Thank you.

    Of course, it is possible. This is the approach I explained (for previous versions):

    http://blog.lilybiri.com/template-for-reusing-script

    The models that I offered it, were invited to a lot of times and are used all over the world, which is funny

    I also have templates for CP6 and 7, but has stopped offering everything for free. And 7, you can have all the shares shared in a library that can be used as external library... just a tip: http://blog.lilybiri.com/new-features-in-captivate-7-dot-01

    Agreement on controls on effects for paths, please submit a feature request as many have already done to have the most control over the coordinate without having to change the XML file.

    It would be nice to have timed events. Jim Leichliter has a widget (only for the SWF) which allows some scripted events. The interaction of timer that can do as well, but is not very accurate because after that time there is always a lag of about 2 seconds.

    http://blog.lilybiri.com/events-and-advanced-actions tells us about the available events.

    Sorry for all these links, but advanced actions are my passion, since they appeared with 4. They are limited, all right, but I managed to convince many users to give them a try at different levels. Would love to train more users for this "point-and-click" approach that does not really need programming skills, but only a logical mind.

  • Adobe Captivate Advanced button Actions shows clicks

    Hello

    I have a question about advanced Actions.

    I have two buttons.

    When I click a button it should disappear.

    After I clicked on the two buttons a third button is displayed.

    How can I do that.

    When I try the third button appears when I click on one of the two buttons and not after I clicked on both.

    Here´s advanced action I have for one of the two buttons that must disappear:

    __________________________________________

    Assign [variable_button1] with 1

    disappear [button1]

    Then a related action:

    IF

    [variable_button1 = 1

    [variable_button2] = 1

    ACTION

    Show Button3

    ON THE OTHER

    Break

    ____________________________________________

    I m sorry if there is something is not right. I have found no translation from German to English in adobe Captivate.

    Thank you very much for your help!

    Kind regards

    Alex

    I suspected this to be the case. No, all shares advanced/shared in Captivate are event-driven. The conditional action will never be executed. I have a lot of examples on my blog for this use case, but post-it (yet) in this thread. BTW: I understand German (I'm Flemish) but do not dare to write in German.

    In a conditional action, you can have several decisions, which are all executed in the order: orders are from top to bottom, are decisions from the left to the humble. You will need to integrate the standard and the conditional action in a conditional action to be triggered by the buttons. Now that you have only one decision (indicated as "Unnamed" and choice in your screenshot), this decision should be the second decision. You don't need to put anything in the ELSE part, but I still don't know the break of the buttons, reason why I asked for a screenshot of the timeline. Your conditional action should look like this (sorry for the English terminology).

    The decision to "Always" 1 I like to cite the decisions and everything in my projects

    IF 1 is equal to 1

    Assign the v_button1 with 1

    Disable Button1

    Hide Button1

    See the Group1

    No Else part for this decision, you must edit the double button 2

    Decision 2 "CheckIt".

    IF v_button1 is equal to 1 AND

    v_button2 is equal to 1

    See the Bt_Next

    Select Bt_Next

    Joint actions are not possible because the variables are used in the two decisiobns.

  • Prevent fireing "Submit BeforePage" - dynamic Action if I click the button CANCEL

    Hello
    I create a dynamic Action on the event "before submitting the Page" which shows me a "Please Wait" - window, if I submit a page. It works very well.

    But if I click the button CANCEL, dynamic Action runs as well. Because of that I put the status "request is NOT contained in the Expression 1" and 1 Expression I put BACK, because demand from the button CANCEL is BACK. Unfortunately it is running if I press the button CANCEL.

    The action is "executing JAVA-code" and the code is:
    $x_Show('AjaxLoading');  
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    What's not here?

    Kind regards
    Mark

    Hi Mark,

    If you change your button 'CANCEL' to a "Redirect to the page of this application" button, the page is not submitted and does not fire the event "before submitting the Page.

    Or if you want to stick with the shipment, you can check for this.data in JavaScript code because that will contain the value of the application to send it. So, for example, you could use

    if (this.data != "ZURUECK") {
      $x_Show('AjaxLoading');
      window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    }
    

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Creating conditional actions based on the results of the quiz

    I have a quiz at the end of my captivate file and I try to get to show different based on images if you have passed the quiz, or if you failed. For example if you pass, I want to show an image of the tick, and if you do not have an image of the cross, on the results slide.

    I tried to create this by implementing a conditional action. I put the two images on the slide and they hid. Then I have a conditional action value:

    IF
    cpQuizInfoPointsscored greater than or equal to 70

    ACTION

    See the Image_tick

    ON THE OTHER

    See the Image_cross

    When I play the quiz or image shows that I have success or failure (the quiz is set to a 70% pass - there are 10 questions, and all are worth 10 points)
    I am new to Captivate so that any help would be appreciated!
    Thank you

    Each action must be triggered by 'something', which is an event. You must attach to an event, I suspect that the event on enter score slide is one that suits. Select the slide of score, look in the properties panel, tab Actions, perform actions on enter, choose the action.

    In addition, there is a difference between the system variable cpQuizInfoPointsscored and cpInfoPercentage. Personally, I would use the simpler cpQuizInfoPassFail:

    IF cpQuizInfoPassFail is equal to 1

    See the tick

    On the other

    See the cross

    Download the tables in these two articles:

    System variables in Captivate 8/9 - Captivate blog

    Events / Actions (Advanced) - Captivate blog

  • I'm looking for a javascriptor for photoshop. I need to create conditional actions according to the decimal ratio.  Thank you

    I'm looking for a javascriptor for photoshop. I need to create conditional actions according to the decimal ratio.  Thank you

    You can find us an if-else for this statement. You can put the reports what ever you want:

    #target photoshop
    var doc = activeDocument;
    var ratio = parseFloat(doc.width/doc.height);
    if(ratio<.25){//enter code here to run action
         }
    if else(ratio<.5){//next code
         }
    if else(ratio <1){more code}
    else{more code}
    
  • I can't install Adobe Photoshop elements 13.  When I click the button install, need me in the folder "Adobe Photoshop Elements 13 (download)", but there is no action that I can take at this time.  I am running Windows 7 Home Premium, SP 1.

    I can't install Adobe Photoshop elements 13.  When I click the button install, need me in the folder "Adobe Photoshop Elements 13 (download)", but there is no action that I can take at this time.  I am running Windows 7 Home Premium, SP 1.

    Hi Michelle.  I thought about it. To install the program, go the downloaded zip [Adobe Photoshop Elements 13 (Download)] folder, then open the "64 bit", then double-click on the "PhotoshopElements_13_LS25_win64" application  Who will run the program.  I hope this helps.  David

Maybe you are looking for

  • Clean my Mac 3 uninstall

    Hello! I just bought a new iMac (27-inch Retina, end of 2015 form, with 16 GB of RAM) not too long ago and I had Clean My Mac 3 installed on it. I started doing research on this, and thanks to many messages here, discovered that this software is terr

  • Before buying, I would like to know...?

    First I nowhere can I get info on Netgear ReadyNAS 202 (ext4, xfs, hfs etc.) format (or any what other NAS Netgear) nativly supported? Second, that it either takes care of hard disk with format XFS file system? I have a HDD to format xfs, Nas R.I.P.

  • Argument not valid error when installing a printer

    I use Windows XP SP3 and have problems with my install shield. Printer media tells me that my install shield does not communicate correctly and the error is probably in my PATH or the registry. Any help would be useful. Racefan14

  • Received a call from someone claiming to be Microsoft Support

    Like many others, I received a call from a man who claims he was Microsoft, telling me that my computer was being hacked. I started to see through his bull quickly while I was talking to him, and after research I found confirmation that he indeed was

  • Laptop does not recognize printer

    My Inspiron 9300 no longer recognizes my V305 printer.  Windows XP Professional.  Ive downloaded a new printer driver, connected to the printer via the USB cable and wireless, turned the two pieces of material market, generally followed the guides to