Prompt user before exiting

Hello,
I'm trying to add Javascript in order to have a prompt appear once a user clicks an Exit button to confirm their choice to exit the CBT.  I added a button to Captivate that successfully calls the closeBrWindow() function (see code below); however, I receive an 'Access is Denied' error message once the 'continuebox' function is added.  This CBT is running on the Adobe Connect server when I receive the error message.
Can anyone see what I'm doing wrong?  Is there a better way to prompt a user when clicking an Exit button?
function closeBrWindow()
var ie7 = (document.all && !window.opera && window.XMLHttpRequest) ? true : false;
var continuebox=confirm("Click OK to exit the CBT, or Cancel to return to the CBT.");
if (continuebox==true)
if (ie7)
//This method is required to close a window without any prompt for IE7
window.open('','_parent','');
top.window.close();
else
//This method is required to close a window without any prompt for IE6
this.focus();
self.opener = this;
self.close();

Hi there
Because closing the window using JavaScript is so utterly unreliable and simply doesn't work in all cases...
I'd do it like this.
Insert a slide at the end of the movie.
Time that slide very brief. Perhaps .1 seconds.
Configure the movie to close when it completes play. (Edit > Preferences > Project > Start and End)
Insert two buttons on the slide before the last slide. One will be labeled Yes and one will be labeled No.
Insert a Text Caption on the slide asking the user if they wish to exit.
Program the Yes button to Go to the Next Slide. Program the No button to visit a different slide.
Insert buttons on other slides that are labeled Exit and are configured to jump to the slide where the user chooses.
Cheers... Rick
Click here for Adobe Certified Captivate and RoboHelp HTML Training
Click here for the SorcerStone Blog
Click here for RoboHelp and Captivate eBooks

Similar Messages

  • Is there a way to ALWAYS prompt user before allowing server restart or shutdown

    Is there a way to always prompt the user for credentials (or some other type of prompt) before restarting/shutting down a Windows Server? We are looking for a way to prevent accidentally shutting down a server.  I know there is the Shutdown Event Tracker
    that prompts for a reason why the server is being restarted, which is good, but the problem we ran into was after one of our Admins installed some software / Windows Updates, he was prompted with a "The server will need to be rebooted before the changes
    will be applied. Do you want to restart now?" dialog, and he accidentally hit Yes.  When doing this, the Shutdown Event Tracker does not prompt the user (I assume the Windows Update automatically fills in all the fields), it just restarts the server. 
    So we are looking for a prompt for these scenarios as well.
    So basically I'm wondering if there is a way to configure Windows Server to ALWAYS prompt the user before any shutdown or restart event, whether it is from a Windows Update, using the GUI Shutdown buttons, or the commands from a command prompt.  Ideally
    it would be a credentials prompt, to ensure the user is really being purposeful about restarting the server, and not just quickly clicking a button before thinking about what the prompt is asking for.
    - Dan - "Can't never could do anything"

    Hi, I would add to Ed that it can cause problem too with scripted task, as if you program in example a planned restart in the night in example, that mean someone must be there to click the button.
    The best approch for you would be to give them the RSAT administration kit, so then can manage what they want without being logged on.
    Regards, Philippe
    Don't forget to mark as answer or vote as
    helpful to help identify good information. ( linkedin endorsement never hurt too :o) )
    Answer an interesting question ? Create a
    wiki article about it!

  • Console Exception Handling.  Allow another attempt for user before exiting

    I am trying to implement a very simple program that prompts the user for info and reads in a few numbers. If the user accidentally enters a letter instead of a number I want the user to get another chance, not just execute the exception handler and exit the program (as it does now). I'd rather have the user get stuck in an endless loop waiting for valid input versus exiting on the first invalid entry.
    The code I am using is something like this:
    try{
       System.out.println("Enter a number?");
       int b=System.in.read();
       char c=(char) b;
       String s=String.valueOf(c);
       p.setDummyValue(Integer.parseInt(s) ); //**Possible Exception Here
    catch(NumberFormatException e) {
       System.out.println("Invalid Input");
       // *** I'd love to somehow return to the "Enter a number" line from here
    catch(IOException e) {
       //IO error code here
    }Q: How can I implement the ability to allow a user to correct invalid input?
    Thanks

    Something like this should work:boolean numberValid = false;
    while (!numberValid) {
         try {
              System.out.println("Enter a number?");
              int b=System.in.read();
              System.in.skip(System.in.available()); // skip carriage return
              char c=(char) b;
              String s=String.valueOf(c);
              p.setDummyValue(Integer.parseInt(s));
              numberValid = true;
         } catch(NumberFormatException e) {
              System.out.println("Invalid Input");
         } catch(IOException e) {
              //IO error code here
    }

  • Need SP to prompt user before ADDING document on hitting Return Key

    Our client is moving from legacy system to SAP B1. Legacy system has extensive use of hitting ENTER Key (or return key).
    Client is concerned that users will habitually hit enter key and cause accidental creation of documents.
    Would someone be able to provide me with a store procedure that pop up  a message on documents such as Sales, Purchase, Delivery and GRPO on hitting ENTER key  - a message for example "Hit Enter Key again to Confirm".
    Thank you community!

    SP_TN is the only legitimate SP can be used in B1. This SP can only block document creation.
    System has built-in function to display confirmation messages. You have to click twice enter (return) key to add a document. Train users to check every message before they try to hit second enter key. They will use to new system soon.
    Thanks,
    Gordon

  • Prompt user to save change before abnormally closing the application

    Hi,
    I've some trouble prompting user to save change before abnormally closing the application (logging off, shutdownding machine...). I tried to use Runtime.getRuntime().addShutdownHook() and it doesn't seem to work. Here's part of my code. Help please!!!
    program print out "1" and stays in a "dead-lock" mode...
    private void shutdown() {
    boolean saveConfig = true;
    if (saveConfig) {
    System.out.println("1 ");
    int answer = JOptionPane.showConfirmDialog(null,
    "Configuration has been changed. Do you want to save
    configuration before exit?",
    "Save Config"
    JOptionPane.
    YES_NO_CANCEL_OPTION);
    JOptionPane.showMessageDialog(this, "Can't connect to unit. Error in Heal unit!", "Error", JOptionPane.INFORMATION_MESSAGE);
    System.out.println("2 ");
    if (answer == 0) {
    savefileButton_actionPerformed();
    jMenuFileExit_actionPerformed();
    else if (answer == 1) {
    jMenuFileExit_actionPerformed();
    else {
    return;
    else {
    int answer = JOptionPane.showConfirmDialog(itself,
    "Are you sure you want to exit? ",
    "Exit",
    JOptionPane.YES_NO_OPTION);
    if (answer == 0) {
    jMenuFileExit_actionPerformed();
    else {
    return;
    private class MyShutdownHook extends Thread {
    public void run() {
    shutdown();
    // add shutdown hook
    MyShutdownHook shutdownHook = new MyShutdownHook();
    Runtime.getRuntime().addShutdownHook(shutdownHook);

    doesn't much matter. shutdown hooks are not guaranteed to run or be able to finish.

  • RSOP: Interactive logon: Prompt user to change password before expiration

    Hi,
    I am trying to implement a GPO so that users are prompted to change their password 5 days before it expires. I have done this via -
    Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Enabled
    Interactive Logon: Prompt user to change password before expiration
    Despite doing the above the GPO does not seem to be taking effect. I have run RSOP on my machine and a few users machines and can see that there is a red circle with an X next to
    Interactive Logon: Prompt user to change password before expiration.
    Below is my winlogon.log file but I am not really sure what I am supposed to be looking for. Can anyone help?
    Make a local copy of \\**************.co.uk\sysvol\**************.co.uk\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkSite GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\sysvol\**************.co.uk\Policies\{91EDC47D-AACF-4DFE-B044-5D29500CECBE}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkDomain GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\SysVol\**************.co.uk\Policies\{DDE2DDB7-9802-415B-819E-1ADA496DC3E6}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkDomain GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\sysvol\**************.co.uk\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkDomain GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\SysVol\**************.co.uk\Policies\{6422C1A4-D958-4F4B-A8AA-EBACC567BD19}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkOrganizationUnit GPO_INFO_FLAG_BACKGROUND )
    No template is defined in GPO \\**************.co.uk\SysVol\**************.co.uk\Policies\{43F654AA-56D5-4F2C-B357-1AFEE03D37F2}\Machine.
    Process GP template gpt00000.inf.
    This is not the last GPO.
    08 March 2015 23:06:35
    Copy undo values to the merged policy.
    ----Un-initialize configuration engine...
    Process GP template gpt00001.dom.
    This is not the last GPO.
    08 March 2015 23:06:36
    ----Un-initialize configuration engine...
    Process GP template gpt00002.dom.
    This is not the last GPO.
    08 March 2015 23:06:36
    ----Un-initialize configuration engine...
    Process GP template gpt00003.dom.
    This is not the last GPO.
    08 March 2015 23:06:36
    ----Un-initialize configuration engine...
    Process GP template gpt00004.inf.
    08 March 2015 23:06:36
    ----Configuration engine was initialized successfully.----
    ----Reading Configuration Template info...
    ----Configure User Rights...
    Configure S-1-5-32-544.
    Configure S-1-5-21-778002760-1239436532-1307212239-1002.
    Configure S-1-5-21-778002760-1239436532-1307212239-1016.
    Configure S-1-5-21-778002760-1239436532-1307212239-4078.
    Configure S-1-5-21-778002760-1239436532-1307212239-512.
    Configure S-1-5-21-778002760-1239436532-1307212239-500.
    Configure S-1-5-21-778002760-1239436532-1307212239-513.
    User Rights configuration was completed successfully.
    ----Configure Group Membership...
    Configure **************\Local Admins for Users.
    old memberof tattoo list: *S-1-5-32-555,*S-1-5-32-544,
    object already member of Administrators.
    object already member of Remote Desktop Users.
    new memberof tattoo list: *S-1-5-32-555,*S-1-5-32-544,
    Group Membership configuration was completed successfully.
    ----Configure Security Policy...
    Configure password information.
    Configure account force logoff information.
    System Access configuration was completed successfully.
    Configure machine\software\microsoft\windows nt\currentversion\winlogon\passwordexpirywarning.
    Configure machine\software\microsoft\windows\currentversion\policies\system\enableinstallerdetection.
    Configuration of Registry Values was completed successfully.
    Audit/Log configuration was completed successfully.
    ----Configure available attachment engines...
    Configuration of attachment engines was completed successfully.
    ----Un-initialize configuration engine...
    this is the last GPO.
    Make a local copy of \\**************.co.uk\sysvol\**************.co.uk\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkSite GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\sysvol\**************.co.uk\Policies\{91EDC47D-AACF-4DFE-B044-5D29500CECBE}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkDomain GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\SysVol\**************.co.uk\Policies\{DDE2DDB7-9802-415B-819E-1ADA496DC3E6}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkDomain GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\sysvol\**************.co.uk\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkDomain GPO_INFO_FLAG_BACKGROUND )
    Make a local copy of \\**************.co.uk\SysVol\**************.co.uk\Policies\{6422C1A4-D958-4F4B-A8AA-EBACC567BD19}\Machine\Microsoft\Windows NT\SecEdit\GptTmpl.inf.
    GPLinkOrganizationUnit GPO_INFO_FLAG_BACKGROUND )
    No template is defined in GPO \\**************.co.uk\SysVol\**************.co.uk\Policies\{43F654AA-56D5-4F2C-B357-1AFEE03D37F2}\Machine.
    Process GP template gpt00000.inf.
    This is not the last GPO.
    09 March 2015 16:26:51
    Copy undo values to the merged policy.
    ----Un-initialize configuration engine...
    Process GP template gpt00001.dom.
    This is not the last GPO.
    09 March 2015 16:26:51
    ----Un-initialize configuration engine...
    Process GP template gpt00002.dom.
    This is not the last GPO.
    09 March 2015 16:26:51
    ----Un-initialize configuration engine...
    Process GP template gpt00003.dom.
    This is not the last GPO.
    09 March 2015 16:26:51
    ----Un-initialize configuration engine...
    Process GP template gpt00004.inf.
    09 March 2015 16:26:51
    ----Configuration engine was initialized successfully.----
    ----Reading Configuration Template info...
    ----Configure User Rights...
    Configure S-1-5-32-544.
    Configure S-1-5-21-778002760-1239436532-1307212239-1002.
    Configure S-1-5-21-778002760-1239436532-1307212239-1016.
    Configure S-1-5-21-778002760-1239436532-1307212239-4078.
    Configure S-1-5-21-778002760-1239436532-1307212239-512.
    Configure S-1-5-21-778002760-1239436532-1307212239-500.
    Configure S-1-5-21-778002760-1239436532-1307212239-513.
    User Rights configuration was completed successfully.
    ----Configure Group Membership...
    Configure **************\Local Admins for Users.
    old memberof tattoo list: *S-1-5-32-555,*S-1-5-32-544,
    object already member of Administrators.
    object already member of Remote Desktop Users.
    new memberof tattoo list: *S-1-5-32-555,*S-1-5-32-544,
    Group Membership configuration was completed successfully.
    ----Configure Security Policy...
    Configure password information.
    Configure account force logoff information.
    System Access configuration was completed successfully.
    Configure machine\software\microsoft\windows nt\currentversion\winlogon\passwordexpirywarning.
    Configure machine\software\microsoft\windows\currentversion\policies\system\enableinstallerdetection.
    Configuration of Registry Values was completed successfully.
    Audit/Log configuration was completed successfully.
    ----Configure available attachment engines...
    Configuration of attachment engines was completed successfully.
    ----Un-initialize configuration engine...
    this is the last GPO.
    Jeet S

    ******UPDATE******
    I think I have managed to get this working. I changed the source of the policy to a different GPO. I then did the following -
    From a command prompt run gpupdate (without the force parameter)
    Ran rsop.msc and checked the policy and this time there was no red circle with an X
    Have done the same on a few users machines and it appears to apply successfully. I say this because when you go into the properties for the policy you see the following -
    The policy XYZ was correctly applied
    Just have to wait and see if it actually does what it says on the can.
    Jeet S

  • Be careful of "Prompt user to change password before expiration" policy -- it's counting the days wrong!!

    After several tests, I'm pretty sure that the policy "Interactive logon: Prompt user to change password before expiration" is counting the wrong days. (Note: this policy is in Windows Settings > Security Settings > Local Policies > Security
    Options)  So I think I should post this in the forum in the hope that it could be helpful to others in the same case as me, esp if the policy is pushed out as a domain-wide policy.
    First, the context of the test, ie domain-wide policy settings:
    1. Password minimum age = 2 days
    2. Password maximum age = 4 days
    3. Prompt user to change password before expiration = 2 days
    If everything is going fine, users will be asked to change password when it is changeable (ie it has reached the minimum age).  However, it turns out that users are prompted BEFORE they can change password.  Look at the image below that I got in
    Win7:
    (In WinXP, we have similar prompt when user has just logged in)
    Look at the clock: it's 13:16 (04/12/2013).  Then look at the DOS window in which I ran the "net user /domain" command and read the line "Password expires": it's shown
    06/12/2013 18:09:04.
    A little math would tell me that if users are prompted to change password *2 days* before expiration, the dialog will appear
    ONLY AFTER 04/12/2013 18:09:04.  But since the prompt is shown at 13:16 (ie well before 18:09), that mean the "prompt user...." policy makes mistakes in calculating the moment to show the prompt.
    In other words, if we have the policy set like this:
         Prompt user to change password before expiration =
    N days
    The prompt will actually appear from N+1 days before expiration.
    I would consider this as a bug, but I also suppose it's hard to make Microsoft fix it.  So that's why I make this post to warn others.  In my case, I have received several calls from users complaining that they were prompted to change password
    but their new passwords were always refused and they had no idea what went wrong.  And it took me a lot of effort to sort out what really went wrong.  And in order to work around this stupid bug, I have to change the "Prompt user...." policy
    to N-1 days (before expiration) instead of N days previously.
    Hope this help

    Hi,
    Based on my research, you are right that the prompt policy is implemented by date, which is by design.
    “Set
    Interactive logon: Prompt user to change password before expiration to 5 days. When their password expiration
    date is 5 or fewer days away, users will see a dialog box each time they log on to the domain”, I quoted this sentence from the article below:
    Interactive logon: Prompt user to change password before expiration
    http://technet.microsoft.com/en-us/library/jj852243.aspx
    The problem is consistency!  For Minimum/Maximum password age properties, they are also defined for
    days as well.  But for them, days are exact days, ie a
    multiple of exactly 24 hours.  There is an "Explain" tab for every parameter, but even if you read them through, you can't tell if day means strict multiple of 24 hours or loose definition of days.  I'll leave the exercise to you to read
    them if you like and spare me the article from your KB library.
    As for the password minimum age part, what I mean is that is why users can’t not change their password within 2 days when the prompt appears before the changeable time.
    Anyway, I agree with you that we need to be careful when we configure the password policy because the Prompt policy is not doing calculation by hours.
    Miss, the 2 days is just a TEST EXAMPLE.  Let's say it's
    N days if you was unable to understand.  I wouldn't change N days to N-1 days because of this stupid GUI bug.  As I said earlier and let me repeat it once more,
    Minimum password age = N days is a security policy and it is more important than the user prompt and no security officer with sane mind will change this.

  • Limit checkboxes on "prompt user for input"

    Is there away to limit the selection of checkboxes on the "Prompt User for Input" dialog vi?  I am trying to build a dialog vi that will allow the user to select/check only 1 item before clicking OK.
    Attached is my VI. This VI takes a entered filename and check to see if it exists in a given directory. If it does not exist, then it created (display a message stating it will be created).  If the file does exist, then the user has prompted to select 1 of 4 options (Append, Replace (Overwrite), Re-Name (select new filename) or Escape (exit without creating filename).  Right now I am using front panel controls that become visible however I would like to replace these controls with a dialog box with the four options.
    Ideally this file selection would be a sub VI in application and only execute when called and only be visible via the dialog boxes. 
    Thank you.
    Attachments:
    FileChoices.vi ‏210 KB

    Like radio buttons? See
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/373f703eea0297368625620900701fd8?O...
    Message Edited by Phillip Brooks on 10-16-2006 02:46 PM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Prompting user for their choice of mailbox in Mail.app

    All I want to do is ask the user to choose a mailbox in Mail.app. But, there is a problem:
    "mailbox Y of account X" shows
    mailbox "FULL/PATH/TO/Y" of account X of application "Mail"
    while "name of mailbox Y of account X" shows
    "Y"
    This makes it awfully hard to prompt users for their choice of mailbox. I could go up the containers of mailbox Y, until I get to account, but this takes quite a long time.
    Is there a good reason for this behavior of the "name" property?

    Similar to Hiroto - 'I'm not sure what you're looking after.'
    Thus, below is some sample code to work with:
    tell application "Mail"
    set tMailboxes to mailboxes of account "sl-ugs" -- Obtain mailboxes of specific account.
    set nList to {} -- List to contain mailboxes names.
    repeat with i in tMailboxes -- Cycle through mailboxes of specific account.
    copy (name of i) to end of nList -- The name of each mailbox is placed into 'nList'.
    end repeat
    -- Provide an interface for the user to select a desired mailbox.
    set tSelection to (choose from list nList without multiple selections allowed and empty selection allowed) as string
    repeat with i from 1 to (count tMailboxes) -- Cycle through the list of mailboxes.
    if ((item i of nList) is equal to tSelection) then exit repeat -- Determine list location of selected mailbox (in 'tMailboxes')
    end repeat
    set tMailbox to item i of tMailboxes -- Obtain full listing of selected mailbox
    set tMessages to messages of tMailbox -- The messages of the selected mailbox.
    set mList to {} -- List to contain 'subject', 'from' and 'date received' field items of each message of the selected mailbox.
    repeat with j in tMessages -- Cycle through the list of messages.
    -- The 'subject', 'from', and 'date received' field items of each message of the selected mailbox are placed into 'mList'.
    tell j to copy {subject, sender, date received} to end of mList
    end repeat
    -- Example code showing 'tMailbox', 'nList', 'tSelection', list location of selected mailbox, messages of 'tMailbox', and finally - the 'subject', 'from', and 'date received' field items of each message of 'tMailbox'.
    tMailboxes & return & return & nList & return & return & tSelection & return & return & i & return & return & (messages of tMailbox) & return & return & mList
    end tell

  • How to do something before exit?

    hi all
    i'm writing a simple db application
    i want it to execute the last update on a db table before exit
    the code is:
        private void exitForm(java.awt.event.WindowEvent evt) {
            try
                Statement st=tmc.createStatement(); 
                st.executeUpdate("UPDATE OPERATORI SET LOGGATO=FALSE WHERE OPERATORE='"+user+"'");        
                System.out.println("i'm exiting");
                System.exit(0);
            catch(SQLException s)
                s.printStackTrace();
            }when i got the output message "i'm exiting" i thinked that the db was modified, but checking it i saw that nothing changed
    i tried the same code without the "System.exit(0);" line in a actionPerformed method of a temporary button that i putted on my form and it worked
    so i think that the System.exit(0) call in a certain way arrives before or interrupts the db transition
    i want to hide to my users this action, that's the reason for which i wrote my code in such a way!
    any hint?
    thanx in advance
    sandro

    Hi Sandro,
    I am using databases and i have never had this problem.
    But before closing the application, I always close the connections with database.
    Why dont you try
    private void exitForm(java.awt.event.WindowEvent evt) {
    try
    Statement st=tmc.createStatement();
    st.executeUpdate("UPDATE OPERATORI SET LOGGATO=FALSE WHERE OPERATORE='"+user+"'");
    System.out.println("i'm exiting");
    tmc.close(); //close the connection
    System.exit(0);
    catch(SQLException s)
    s.printStackTrace();
    I hope it works well for you
    sergio

  • Directory created in UCCX server \Program Files\wfavvid\Prompts\user\en_US\ disappears

    Hello,
    Has anyone experienced this before?  In my UCCX server, I have some sub-directories in the folder \Program Files\wfavvid\Prompts\user\en_US\ with prompts.  I just restarted the Cisco Unified CCX Engine  service, and the directory and prompt files disappeared!  I did it again just to make sure (created directory in that path and restarted the service again, and that directory is gone after the service comes back.)
    I'm running UCCX Premium 7.0(1)SR05_Build504
    Thanks,
    -Dave

    That's not a bug, it's a feature.
    You cannot just go to the Prompts folder on the CCX filesystem and place your prompts there in whatever directory structure you'd like to. CCX will always restore the directory structure which is stored in its database after engine restarts.
    You need to use the CCX administrative interface to create prompts dir structure, and upload the prompts there.
    If you don't want to go over this hassle, you can also create a directory structure on the file system OFF the CCX Prompts folder, but you'll have to make sure in the scripts you'll have to reference your prompts a little bit differently. Instead of saying P[somedir\someprompt.wav] in the Play Prompt step, you'll have to first do a Create File Document with the full pathname and filename of the prompt file, and then do the Play Prompt step referencing the document created by the previous step. Here is what I use:

  • "Open VI Reference" Option "Prompt user to find missing subVIs"

    I am using "Open VI Reference" to dynamically load a VI. For the "option" control of the "Open VI Reference" node, I pass "0x10" or "10" in hexadecimal, which supposedly "prompt user to find missing subVIs." Nevertheless, I don't get a prompt message dialog when I intentionally pass an invalid or missing VI path. Instead I just get an Error Code 7. What does this option "Prompt user..." suppose to do?

    Make sure you set the properties on the integer input into the “options” control to the “Open VI Reference” to be a Hexadecimal format (right-click on the “options” control input, select Format and Precision…, then select Hexadecimal). Now, if you re-run your VI and wire in a VI with a missing subVI, the Open VI Reference will appear with a dialog that will prompt you to browse to the missing subVI. This is exactly the same message LabVIEW displays when it attempts to open a VI and cannot find its subVIs.
    I’ve attached a simple example program to demonstrate. Enter the path to the “number extractor.vi” as the VI to open. You should see a dialog prompt appear asking for the “Search 1D Array – Complete.vi”.
    Hope this helps!
    Attachments:
    openVIRefExample.zip ‏20 KB

  • HOW DO I CHANGE THE FONT OF "Message to Display" IN THE Prompt User for Input

    Hi,
    HOW DO I CHANGE THE FONT OF "Message to Display" IN THE  Prompt User for Input?
    Thanks for your help 
    XN 

    Right click and select Open front panel >> Convert.
    Change the vi as you need. then you can save it as a normal sub-vi.
    If you have Labview 8.6, maybe (i am not sure) you can edit the express vi. Express vis are supported in 8.6

  • Create a user through the API and "Prompt user to change password after next login".

    Using the Adobe Connect Interface, I can create a user and check the checkbox to "Prompt user to change password after next login".
    Can I achieve the same result using the API? The principal-update action doesn't offer such an option and, as far as I can tell, there isn't another action to do so either.
    Thank you.

    You can achieve it as part of your application functionality, but not as a configuration option on WLS.

  • How to show a Canvas screen before exit the midlet

    If i want to show a canvas screen after user click exit to quit the midlet (after call the notifyDestroy()), any way to do that? thanks.

    Hi,
    you have to catch the exit event in the commandAction method and there you will display a YES/No form:
    create your YES/NO form:
    Form yesNoForm = new Form("Exit?");
    yesNoForm.append("You are about to exit the application!Exit?")
    yesNoForm.addCommand(new Command("Yes",Command.OK,1));
    yesNoForm.addCommand(new Command("Cancel",Command.CANCEL,0));
    yesNoForm.setCommandListener(this);
    !!!Note you can write your own command classes extended from the Command and add those to yesNoForm, that way you will have a better control on the application.
    commandAction(Command c, Displayable d){
    if (c.getCommandType() == Command.EXIT) {
    display.setCurrent(yesNoForm);
    if(c.getCommandType() == Command.OK){
    destroyApp(true);
    notifyDestroyed();
    if(c.getCommandType() == Command.CANCEL){
    display.setCurrent(mainForm);
    This should work.

Maybe you are looking for