How do I create timed dialog box, so if no selection is made in the pop up within 10 seconds it goes away?

I would like the dialog box to ask the user to select "OK" or "Cancel" if no activity within 10 seconds the dialog box goes away.
Thanks.

In 15 years, I have never ported my code to a different platform, nor has anyone tried to port my code to a different platform.  While my case is not indicative of everyone's, the insistence of platform independence is widely overblown since I dare say most of us will never see code moved.
What's easier - trying to figure out how to write your own code (especially if it is something you plan to reuse and especially if you are a more inexperienced programmer), or using a canned API function that is already ready to be dropped into your code, offers additional functionality that isn't easily available in LabVIEW?    Not to mention that the message box looks like every single message box a user is used to seeing on the platform.  It supports the standard Windows sounds for a message, the standard Windows icons can be included, and modality beyond LabVIEW is supported as well.
billko wrote:
Matthew_Kelton wrote:
You can use an undcoumented Windows function (assuming you're using Windows).  It will display a message box for a fixed time ( a value of 0 means it will not disappear).  I posted a zip file of code that calls this function in this thread:
http://forums.ni.com/t5/LabVIEW/Displaying-a-popup-message-in-front-of-other-running-programs/m-p/16...
I'm not sure that tying the code to a particular platform is the best way to go.
Plus, it just seems to be way easier to use an event structure with a timeout.

Similar Messages

  • Using applescript how do i create a dialog box and have several possible inputs lead to the same result not using the "else" command

    What i am trying to do is create a program that lets the user have a small conversation with the computer but i don't want to use "else" and list the possible inputs seperatley and have to write the same thing over and over again. does anyone know of a way i can list possible inputs together and have them lead to the same result?

    Your script asks the question twice because that's what you tell it to.
    The first line of your script asks the question:
    display dialog "hey" default answer ""
    then you define your lists:
    set mylist to ("hi", "hey")
    set mylist2 to ("sup", "yo")
    Then you ask the question again. This time you capture the result in theanswer:
    set theanswer to text returned of (display dialog "hey" default answer "")
    The simple solution is to nix the first line of your script, since it serves no useful purpose.
    Then, your logic on checking the answer is flawed. If you look at the script in a formatted/indented manner you'll see:
    if theanswer is in mylist then
      display dialog "what's up"
              if theanswer is in mylist2 then
      display dialog "dude"
              end if
    end if
    where you can see that theanswer has to be in mylist for any of the rest of this code to run - that includes checking to see if theanswer is in mylist2.
    You need to separate this, either into two separate if statements:
    if theanswer is in mylist then
      display dialog "what's up"
    end if
    if theanswer is in mylist2 then
      display dialog "dude"
    end if
    or by using an else statement:
    if theanswer is in mylist then
      display dialog "what's up"
    else if theanswer is in mylist2 then
      display dialog "dude"
    end if
    In the first case both checks are performed. In the second case, the second check is only performed if the first one fails (i.e. theanswer has to NOT be in mylist in order for mylist2 to be checked)

  • Infopath submit - how to hide - Save as dialog box - You can only save this file to the current site

    HI,
    I have a infopath form. In the submit options, i have used the below:
    submit options -
    sharepoint document library
    Data connection - Sharepoint Library Submit
    Doc library - lib location
    File name: concat("User Info - ", ResourceName, "-", PersonalID)
    Allow overwrite if file exists is checked.
    When I try to save a record, I am getting a popup:
    Save As:
    You can only save this file to the current site
    File Name: textbox
    save location: doc lib.
    save, cancel buttons.
    How to override this save as option(save as option should not be shown to user), and save the file using the file name mentioned?
    Thanks

    Are you clicking "Save" when you're using the form or "Submit"??
    You should be using "Submit" and it will ... submit your form to the document library with the file name you specified.
    To disable the "Save" button, click on "File" then "Form Options". Under the "Filler Features" area you can uncheck the box beside "Save and Save As". Click OK then re-publish your form.

  • How to create Information Dialog boxes in web Dynpro

    Hi,
    'm new to webdynpro.
    Can any body help me to create a dialog box.
    I would like to know how to create dialog boxes of type information, confirmation and warning
    expects reply
    thanks
    smitha

    to create confirmation dialog I tried the code
         IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
        String dialogText = "The email was successfully sent!";
        IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( dialogText, controllerInfo.findInEventHandlers("ok"), "ok");
        dialog.addChoice(controllerInfo.findInEventHandlers("newEmail"), "new email");
        dialog.open();
    and I got error like:
    java.lang.NullPointerException
         at com.sap.tc.webdynpro.clientserver.window.ConfirmationDialogDelegate.<init>(ConfirmationDialogDelegate.java:58)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createConfirmationWindow(ClientComponent.java:926)
         at com.enteg.systallocpkg.LoginView.onActionLogin(LoginView.java:157)
         at com.enteg.systallocpkg.wdp.InternalLoginView.wdInvokeEventHandler(InternalLoginView.java:137)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    I don't know how to solve this
    can any body help me
    Smitha

  • How to create conditional dialog box

    Hi Everyone
    I am creating a database application in APEX 4.0. In that application a page requires a dialog box, which has to appear when a user clicks on Submit button.
    It has to consider validations and appear after validations and submit button is clicked. Here the Submit button submits the entire page after validations by updating the database table.
    Please help me out how to create a dialog box which has to appear by the click of Submit button.
    Thanks in advance
    Regards
    Sandeep

    Hi Kiran
    Thanks for responding,
    Sorry for providing the complete details.
    Provided link is much more helpful, but its not meeting my needs. My requirement is to just show a popup box after the user clicks on submit button.
    Saying 'Thank you for answering' if he is done with all questions or if he has more questions to answer pop up with different message 'You have more questions to answer'.
    In both the cases page as to get submitted when clicked on Submit button.
    Thanks in advance
    Regards
    Sandeep

  • Can't find "Create Slideshow" dialog box.

    I have Premiere Elements 7, and am trying to create a slideshow.  The Help page refers to a "Create Slideshow" dialog box, but I don't see that anywhere.  I've looked through every menu, every icon, and tried right clicking on the photos that were dragged down to the timeline, but no slideshow option.
    I've done slideshows manually using PE7 before, but it's a big pain having to manually reset the duration of each slide, rather than changing the default somehow.
    Thanks!
    Bennett

    There are actually four different ways to build slideshows in Premiere Elements, and I show you how to do each in my books.
    But I think you're referring to the slideshow creator on the Project panel. To use it, select several stills or clips in the Project panel (by selecting as you hold down the Ctrl or Shift key) and right-click. This will open the panel I think you're looking for.

  • How do i create a mail box in the SMTP server thru a java program

    How do i create a mail box in the SMTP server thru a java program. If it is possible thru a java program.pls suggest a mail server compatible for the above possibility to work.
    pls help ....

    Please let me know if it is not at all possible to
    create a user account automatically thru a program
    (java) in a mail server... how does yahoo work
    then..does he manually add a user to the mail
    server...By talking to a web server not a mail server.
    >
    Is not there any mail server that will allow us to
    create mailboxes for my java program.. how do the
    other web account services work..
    As I said mail servers do have management interfaces. You need to find one and then determine what the management interface is.

  • How to get title in Dialog box

    How to get title in Dialog box like "Adobe® Connect™ "

    Works for me. What happened when you tried?
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    tell application "Finder" to display dialog "I need ® or ™ in dialog box text" with title "I need ® or ™ in dialog box text" buttons {"Aha!"} default button 1</pre>

  • How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " when file not downloaded

    How I can diable in firefox dialog box "download error could not be saved, because the source file could not be read. " standart download manager when file not downloaded

    It is possible that anti-virus software is corrupting downloaded files or is interfering otherwise.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    You can try to set the browser.download.manager.scanWhenDone pref on the <b>about:config</b> page to false.
    *http://kb.mozillazine.org/about:config

  • How to use save as dialog box in swing

    hello,
    at the time of start the application by clicking the button, i hv to give the path to save my output file, how can i used this dialog box
    thanks

    [http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html]

  • Creating a dialog box with OK and Cancel buttons without OADialogPage

    Hi Experts,
    i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
    and need code for the same to handle the buttons.
    i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
    Plz help.
    THANKS IN ADVANCE.
    Thanks
    Raja.

    Hi,
    I have not tried using javascript in destination URI as suggested by Mukul.
    I have tried the below code for opening a page as dialog box.
    You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
    StringBuffer l_buffer = new StringBuffer();
    l_buffer.append("javascript:mywin = openWindow(top, '");
    String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
    OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
    String strUrl = popupUrl.createURL(pageContext);
    l_buffer.append(strUrl.toString());
    l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
    pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
    In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
    Pass the selected value back to the main page and further you can use it for deleting.
    Regards.

  • How does one create a "check box" in a cell?

    How does one create a "check box" in a cell?

    select the cell then open the cell formatter:
    process should be similar in the iOS version.  I do not have any iOS devices with Numbers so I cannot check.  I did find this link that may help:
    http://support.apple.com/kb/PH3374?viewlocale=en_US

  • How to develop a file dialog box in a oracle forms

    please help me its an urgent task,
    how to develop a file dialog box in a oracle 6i forms
    in html we will use <input type ="file"/> to open a dialog box,so that we can upload file to the server .similarly how to upload a file using oracle.

    For Windows there is a library that comes with forms d2kwutil.pll that contains a package win_api_dialog. use the open_file procedure.
    NOTE******** when you select a file from whatever windows directory you choose, it will change your working directory to that directory so right after that you will need to reassign your working directory back to what it originally was.
    Also, you will need to have d2kwut60.dll in the same directory as your d2kwutil.pll. Both come with Developer.
    Example code is
    v_runpath := win_api_environment.get_working_directory(TRUE);
    v_filename := win_api_dialog.open_file('Find File','C:\','*.*',TRUE, 0, TRUE);
    win_api_environment.set_working_directory(v_runpath,true);
    Hope this helps

  • How we can make CQ dialog box movable on page like sidestick?

    Hello All,
    How we can make CQ dialog box movable on page like sidestick.
    Should we have to use any property for that.
    Please tell me if any onw know this ticks.
    Thanks a ton in advance...
    Regards,
    Satish

    You could use dialogMode property configured under cq:editConfig node.
    dialogMode : floating
    http://dev.day.com/docs/en/cq/current/developing/components.html
    This should make your component dialog float and be movable.
    - Ashish

  • 30EA3 - multiple errors in "Create Tablespace" dialog box

    I have noticed the following errors in the "Create Tablespace" dialog box (in the DBA view).
    1) In the "File Specifications" tab, if you try to use a period in the file name (for example "data01.dbf") , you get an error message "Validation Failed: Name DATA01.DBF contains an illegal character."
    2) The tool is automatically changing the case of the file name to all upper case. You can work around this by enclosing the file name in quotes, but you shouldn't have to do that.
    Overall, I've been real happy with the product, and that Oracle keeps improving it.

    I've also run into this, recently, in version 3 on Windows 7 (db is version 10g on Solaris 10/SPARC64). Although the error message is now "Name TABLESPACENAME.DBF contains an illegal character." Also found the described capitalization overriding what user types in.

Maybe you are looking for

  • Yahoo chess Applet not loading in Firefox

    When I am at Yahoo Games, the pop up window for Chess opens, but never loads. I tried it in IE and it works fine - so the problem comes down to Firefox. When I click on a games room - and window pops up and asks to punch in a code (to avoid spam). Th

  • Adobe InDesign CC (9.0)

    why can I not update my Adobe InDesign CS6 to Adobe InDesign CC (9.0)

  • Getting JACE examples to compile under linux

    Hi, I've been very interested in using the JACE classes (jace.sf.net) but i've been able to get any help from their users. I'm stuck trying to get the basic examples to compile under redhat 9 linux. In the examples folders there are various scripts c

  • Update got rid of all of my loops...help?

    Hey, I got my new macbook for christmas and have been using Garageband a lot to record my music ect. I tried updating the software (I think) and it got rid of all of my loops. They are still on my computer but I can no longer get to them by hitting t

  • Where is the Best place to find new and good iPhone Apps?

    Hey Everyone! I wanted to get your opinion on what are the best sites or places to find iPhone Apps. J.J.