Looking for Advanced Action script that will close the project

Hi all

It seems so simple but I can't seem to understand. Does anyone know of scripts that will cause the project to close when the user clicks a button? I have a project built in 6 Captivate that is set to close its 'End of the project' preferences and has multiple options of branches. I want to have a button to END that will close the entire project. The best that I got is simply apply an action of 'CONTINUE' on the last slide, but since this slide also includes a button that jumps to another branch, the blade simply crashes when you click the END button.

Any thoughts?

Krista

You can use a 'Execute JavaScript' action with the script below:

window.close();

OR

window.top.close();

What script you use depends on how your LMS launches your course.  If it is in the main window, use Window.Close ().  If it is in a window child, then window.top.close ().  If you are not sure, then a little experience by downloading a course of a slide with two buttons.  The first button must execute Window.Close (); and the 2nd button must execute window.top.close ();.  When your LMS is launching the course, try the buttons and see one that works.

F12 (Web Preview) will not give you a solid test since your LMS can launch your course differently... it's the kind of thing that should be tested in your LMS to be sure it works.

Jim Leichliter

Tags: Adobe Captivate

Similar Questions

  • is it possible to write a script that will display the script files folder in the tree

    is it possible to write a script that will display the script files folder in the tree

    Yes :-)

    In your previous post, someone suggested to search for the file "SnpCreateTreeview.jsx", because it would just be the asked.

    The script can be found here, just accept the EULA and download the example scripts of Bridge CS3. (For some reason it is not in CS4 samples because as far as I know)

    Here's a version with small changes, it is up to you to point the script in the folder 'root' right, because this is, needless to C: on PC:

    ////////////////////////////////////////////////////////////////////////////
    ADOBE SYSTEMS INCORPORATED
    Copyright 2007 Adobe Systems Incorporated
    All rights reserved
    //
    NOTE: Adobe permits you to use, modify, and distribute this file according to the
    the terms of the Adobe license agreement accompanying it.  If you received this file from one
    source other than Adobe, then your use, modification or distribution of it is required in advance
    written permission from Adobe.
    /////////////////////////////////////////////////////////////////////////////

    /**
    @fileoverview shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.
    @class shows how to use an item in the tree list and how to capture events with
    functions of recall or script registered event listeners.

    Its use


      
      
      

        
    1. Run the extract in the ExtendScript Toolkit (see Readme.txt).
         
    2. Enlarge / reduce the list items
         
    3. Check the JavaScript Console to see the events captured by the elements of the TreeView.
       

    Description


     
     

    Creates two hierarchical list of TreeView items. One is static, with a fixed set of point
    nodes that you can expand and collapse. The other is dynamic; Item nodes are added and removed as
    the need for a view of the file system.
     
     

    The list items in the TreeView control to display the folders and files custom images.  When you add items to the
    TreeView list, type 'article' is used for elements of the leaf and 'node' to the elements of the container.
     
     

    Dynamic TreeView captures events in two different ways. It uses callback functions to capture the
    node to expand and collapse events and selection changes and also registers an event listener to
    capture double-click events.

    @constructor constructor
    */
    #targetengine "session".
    function SnpCreateTreeView()
    {
    /**
    The context in which this code snippet can work.
    @type string
    */
    this.requiredContext = "\tNeed runs in the context of the Bridge\n."

    /**
    The location of this script file system
    @type file
    */
    var scriptsFile = new File($.fileName);
       
    /**
    The location of the file system resource PNG file used to represent folders
    @type file
    */
    this.folderIcon = new file (scriptsFile.path + "/ resources/Folder_16x16.png");

    /**
    The location of the file system resource PNG file used to represent files
    @type file
    */
    this.fileIcon = new file (scriptsFile.path + "/ resources/Story_16x16.png");

    /**
    The root folder that will be used for the dynamic tree
    @type string
    */
    this.rootFolder

    If (File.fs is "Windows")
    {
    this.rootFolder = "C:";
    }
    on the other
    {
    this.rootFolder = ' / ';.
    }
    }

    /**
    Functional part of this code snippet. Creates the ScriptUI window and its components,
    and defines the behavior.
    @return true if the code snippet is executed as scheduled, false otherwise
    Boolean @type
    */
    SnpCreateTreeView.prototype.run = function()
    {

    $.writeln ("about to"run SnpCreateTreeView");
       
    Create the window
    var win = new window ("palette", "SnpCreateTreeView", undefined, {resizable: false});

    Create the Committee for the static TreeView control
    sPanel var = win.add ('Committee', undefined, 'TreeView Élément') static;
    sPanel.alignment = ["fill",""];
    sPanel.alignChildren = ["fill",""]

    Create a TreeView list
    sTv var = sPanel.add ("treeview");
    sTv.preferredSize = (300, 200);
    Add static items to the list, in a hierarchical structure.
    for (var i = 0; i)<>
    {
    sTv.add ("node", "Item" + i);
    for (var j = 0; j)<>
    {
    sTv.items [i] .add ("item", "Sub Item" + j);
    }
    }

    Create the Committee for the dynamic TreeView control
    var dPanel dynamic = win.add ('Committee', undefined, 'TreeView Élément');
    Create a TreeView list
    TV digital var = dPanel.add ("treeview", undefined);
    dTv.preferredSize = (400, 300);
    Create the root node element
    var aNode = dTv.add ("node", "/");
    Pair it with an image of the icon
    aNode.image = this.folderIcon;

    Define a handler for the double clicks
    myOnDoubleClick = Function
    {
    if(e.detail == 2)
    {
    $.writeln ("double click");
    }
    }

    Adds the handler as an event listener to the TreeView element.
    dTv.addEventListener ("click", myOnDoubleClick);

    Keep a reference to this object
    var that = this;

    Define an event handler for when a node is expanded
    dTv.onExpand = function (point)
    {
    $.writeln (item.text + "is now expanded.");
    nextItem var = item;
    var path = "";
    goUp var = true;

    While (goUp)
    {
    path = "/" + nextItem.text + path;
    nextItem = nextItem.parent;
    If (instanceof TreeView nextItem)
    {
    goUp = false;
    }
    }

    Remove all children of this element
    item.removeAll ();

    var Ref = new file (that.rootFolder + path);
    If (Ref instanceof Folder)
    {
    children var = ref.getFiles ();
    for (var i = 0; i)<>
    {
    If (children [i] instanceof file)
    {
    Item.Add ("node", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.folderIcon;
    }
    on the other
    {
    Item.Add ("item", children [i] p:System.NET.mail.MailAddress.DisplayName);
    Item.Items [i] .image = that.fileIcon;
    }
    }
    }
    }

    Define an event handler for when a node is reduced
    dTv.onCollapse = function (point)
    {
    $.writeln (item.text + "is now reduced.");
    }

    Define an event handler for when the selection changes
    dTv.onChange = function()
    {
    $.writeln ("selection changed");
    }

    Display the window
    Win.Show ();
       
    $.writeln ("Ran SnpCreateTreeView");
       
    Returns true;
    }

    /**
    "main program": construct an anonymous instance and run
    as long as we are not unit - test this code snippet.
    */
    If (typeof (SnpCreateTreeView_unitTest) == 'undefined') {}
    new SnpCreateTreeView () .run ();
    }

  • I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script. Cannot install the Manager of mobile broadband services.

    could not access vb run time for custom action script

    I try to install an air 320u sierra wireless card and I get an error message "could not access vb run time for custom action script.  Cannot install the Manager of mobile broadband services.  Any ideas?

    Hello

    I suggest you run the fixit and see if it helps:

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    Also check out this link:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/error-2738-could-not-access-VBScript-run-time-for/1a4499ae-8bc1-4534-9c6f-4d399ac70d9a

    It will be useful.

  • A script that will count the total number of pages into multiple PDF files in a batch file?

    Is there a script I can use ExtendScript Toolkit that will count the total number of pages into multiple PDF files in a batch file?

    In another discussion I showed a JavaScript that you can use to write the number of pages to the console in a batch sequence. You would do exactly the same thing in Action, so the action would consist of a simple JavaScript (more tools > run JavaScript) which includes the code.

  • Y at - it a script that will be the image draws a raster object selection?

    Hello! Here's my problem:

    I need to run Image Trace - with a specific preset - more Action on each object of a selection. So, basically, I want to run the Trace of the Image (default) + current Action on every object in my selection.

    Is there already a scrip there and if not how would I build one? I am new to scripting, which means that I have basically no idea of what I'm doing. Can someone help me?

    Sorry,

    a bad line of code on my part has been the origin of the problem.

    Line 14 to the controls of the code for an element of the frame

    I was testing just the object itself.

    I should have tested its typename.

    Replace this line with this:

    if(sel[i].typename == 'RasterItem'){
    

    that should solve the problem

  • Need help! Will pay! Need a script that will change the size of the art on several files.

    I'll PayPal someone MONEY right now for this script. I have more than 400 files to process.

    System/software: Adobe Illustrator CS6 on PC
    Filetype (s): .ai

    I have more than 400 .ai files that contain work in all different sizes. I need a script that resizes the work at certain height or width specifications below.

    Some of the height of the work is greater than the width, some of the width of the work is greater than the height.

    If the overall of the art vertical height selected is greater than the width, I need the new height to be 166,6 pt
    If the horizontal art width selected is greater than the height, I need the new width to 166,6 pt

    The value of the width/height unchanged at 166,6 pt must be limited to the new values.

    If possible, I also need to change the size of the artboard to 216px x 216px. He is currently in 512px x 512px.

    Help, please! I'll pay!

    EmojiStickers wrote:

    I'll PayPal someone MONEY right now for this script. I have more than 400 files to process.

    Help, please! I'll pay!

    What is your budget?

    Check this thread and see if it helps, I have a script to resize work plans

    http://forums.Adobe.com/message/4853547#4853547

  • Captivate 6 - Advanced action does not work in the project?

    Hello

    I use 6 Captivate. In my project I have a common slide2 which is called when clicking on the two different buttons (C1 and C2). Slide 2 contains several objects, saying Text1, text 2, 1 button, and Button2.

    Slide 5 I have a C1, I defined the on success action: execute advanced actions

    Script: If CPIntoCurrent Slide is equal to 5

    Action:

    Go to slide 2

    See the Text1

    See the Button1

    Hide Text2

    See the Button2

    Similar action has been set to C2 (slide 8) redirecting to slide 2 showing the Text2 and Button2, hiding other objects.

    These scripts where works fine, until I installed a patch on the adobe site. The patch was intended to display the video correctly in the PDF when selected the option display the table of contents.

    But unfortunately he's completely unbalanced the script of existing projects. I also tried to uninstall completely and fresh install Adobe Captivate, but not luck .

    Help, please.

    @Rod and with a concern for users of later versions (I'm not sure 6, this version did more) 6.

    It is perfectly possible to show/hide objects of an 'Advanced' action (not with a simple gesture) that is running on another slide of the slide corresponding to the object. I am certain about it for versions 7 and 8. I have not been much about 6 blogging and was bit sloppy on this release to keep track of all the changes. If you don't believe me (what happens in these forums), CP8 users take a look at the example file Cloudair included with this release: the action advanced in the first slide shows/hides objects anywhere in the file based on the information of the new cpInfoGeoLocation of system variables.

    Rod, I see you post this comment often, I just wanted to add these details. As I explained that I don't know when this change occurred (6.1 is my suspicion, but cannot test). In CP5 you could hide objects that have been timed for the rest of the project on a slide different than its original location. Since 5.5, you might also show this type of object.

    Lieve

  • Advanced action scripts - y at - it a variable that tells me which button is clicked?

    Lilybiri gave me some great tips on the use of conditional tip action scripts. Now, I have another related question.

    I have three buttons A, B and C. Each button performs exactly the same series of actions to hide everything on the page, but shows another group of objects depending on which button was clicked - that is, to display the Group A and Group B group C.

    Currently, I have a separate advanced action script for each button (in fact a lot more than three) because of this difference, then want to combine in a single conditional script. However, I can't understand how I would like to know which button was clicked.  In other words, I think that my conditional script should look like this:

    The condition "always."

    If 1 is equal to 1

    [Script to hide all]...

    Continue

    Condition 'has '.

    If MyButton is equal to 'A '.

    See the group_A

    On the other

    Continue

    Condition 'B '.

    If MyButton is equal to 'B '.

    See the group_B

    On the other

    Continue

    Condition 'C '.

    If MyButton is equal to 'C '.

    See the group_C

    My problem is that I don't know how to set or get the value of MyButton to perform conditional tests. Is there a system variable that returns the value of a selected object? I looked at all the variables, and I don't see one. Or y at - it another way to do what I'm missing?

    You probably can find with Javascript, but not with advanced actions. All the available system variables that can be used - there are more - are in a table that you can download here: System variables in Captivate 8 - Captivate blog

    I have several articles on the shared use of stocks. You apply the same instance of a common action several times and don't have that to indicate parameters, in your case these parameters will be for most groups and objects. I hope that stocks shared will expand more in the future. They have several advantages: given that you use multiple instances of the same action that they do not increase the file size as duplicate advanced actions. In addition, you have them in the library that makes management much easier.

  • a window keeps popping up that says: Windows host process (Rundll32) has stopped working - a problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available

    a window keeps popping up that says: Windows host process (Rundll32) has stopped working - a problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is available

    Check if you have picked up malware in your travels.

    I see a lot of recommendations here for programs such as -

    Malwarebytes' Anti-Malware
    http://www.Malwarebytes.org/MBAM.php

    SuperAntispyware
    http://SUPERAntiSpyware.com/

    Check in safe mode.

    Vista advanced boot options
    http://Techblissonline.com/Vista-advanced-boot-options/

    See if you can isolate a possible cause.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

  • I get a pop up window that says: "a problem causing the stoppage of work of the program. Windows will close the program and notify you if a solution is available.

    Original title: window problem

    How can I get rid of window that States "causing problem program to stop working. Windows will close the program and notify you if a solution is available"when he was actually without any problem?

    I do not have this message before I had another and removed advice Advisor total care and the problem resolved. Thank you for taking the time to help.

    Al Ashton

  • Hello. I need help developing a PowerCli script that will show me the current configuration of the video Ram of each individual virtual machine on a host\cluster or a vcenter. Can you help me?

    I have a script that will allow me to change the configurations of VRAM, but I need a script that retrieves the configuration of all virtual machines VRAM in my infrastructure.
    I need to get out information to a csv file and run this report on a monthly basis... can you help me?

    Right now my environment is mixed. I have Windows XP virtual machines set to 4 MB, Windows 7 virtual computers set to 8 MB and a subset of sall of virtual machines set to automatic detection of settings.

    I need to be able to recover these settings in a CSV file in order to use this information for comparisons of trdouble-shot performance issues...

    Thank you.

    vram.JPG

    Try something like this

    Get - VM |

    Select Name,

    @{N = "OS"; E={$_. ExtensionData.Config.GuestFullName}},

    @{N = "VideoRamMB"; E = {}

    [math]: Round (($_.)) ExtensionData.Config.Hardware.Device |

    where {$_-is [VMware.Vim.VirtualMachineVideoCard]} |

    (Select VideoRamSizeInKB - ExpandProperty) / 1 Ko, 1).

    }} |

    Export-Csv vm - videoram.csv - NoTypeInformation - UseCulture

  • I get say error message "an error has caused Photoshop to stop working correctly. Windows will close the program and notify you if a solution is not available "." I got no notification. My old Photoshop CS5 works fine, but as I'm paying for CC2014

    I get say error message "an error has caused Photoshop to stop working correctly. Windows will close the program and notify you if a solution is not available "." I got no notification. My old Photoshop CS5 works fine, but as I pay for CC2014 I would use it. I tried to rename the "sniffer" to "snifferold" as bobmiller4002 has suggested, but the problem is not resolved. Lightroom works fine.

    Update your driver from the website of the manufacturer of the GPU video card to pick up the bug fixes that you are missing...

  • I'm looking for a bluetooth headset that connects to both my iphone 6 and my air of ipad.  I have a Bose bluetooth connection that does work on my ipad.  Any recommendations?

    Recommendations for a bluetooth headset that works on the iphone 6 and ipad air?

    Most helmets will pair at least 2 sources; Check the manual of your Bose can also. But you must pair it both, and you must manually switch the connection when switching from one to the other. It can only connect to one at a time (this is a BT Protocol limit). I have a headset of parrot Zik that pairs up to 5 sources (I use it with 4).

  • diskette drive 0 seek failure. If I hit f1 continue, then every thing works normally. Looks like it's looking for an active drive that does not exist

    diskette drive 0 seek failure. If I hit f1 continue, then every thing works normally. Looks like it's looking for an active drive that does not exist

    This message comes to the BIOS screen that appears before Windows starts?  If so, go to the BIOS Setup and disable the floppy drive.

  • I start the player. a popup says 'installation', another says it is looking for a network resource that is unavailable: setup .msi [1]...

    original title: cannot get rid of popup

    whenever I start the player; a popup says "installation", which never seems to do anything; and the only way to get rid of it is to click at the top or bottom or screen; and it is looking for a network resource that is unavailable, another said: setup .msi [1]... .and I can't get rid of it... just moving road.

    I searched this mystery file: setup .msi [1] and can't find it.

    What should I do?

    Thanks for the info.

    Looks like it's maybe a Windows Installer error... has
    whatever it is impossible to install?

    Sorry, I don't have the answer and the only idea I can
    Think to would be to restore the system to an hour before
    the problem started.

    Good luck finding the answer...

Maybe you are looking for