Exiting an Aware .exe file

Hey guys,
I'm working on this Aware piece, and there are a few "clean
up" tasks that I want to occur when the user exits. However, I
can't figure out how to make those tasks happen unless the user
clicks "File > Exit". Is there any way to trigger something to
happen if the user decides to X out of the program instead of using
the "File > Exit"?

> I'm working on this Aware piece, and there are a few
"clean up" tasks that
> I
> want to occur when the user exits. However, I can't
figure out how to make
> those tasks happen unless the user clicks "File >
Exit". Is there any way
> to
> trigger something to happen if the user decides to X out
of the program
> instead
> of using the "File > Exit"?
Check out the ExitIcon variable in the Help files.
Steve
EuroTAAC eLearning 2007
http://www.eurotaac.com
Adobe Community Expert: Authorware, Flash Mobile and Devices
My blog -
http://stevehoward.blogspot.com/
Authorware tips -
http://www.tomorrows-key.com

Similar Messages

  • Exit button not working in exe file made with Aggregator

    Hi,
    I created an .exe file using Aggregator in full screen mode but the exit button on the skin doesn't work. When I click the exit button, the dislay hiccups (wobbles a bit) but the file keeps playing and doesn't close. This is especially problematic since this occurs in full screen. The only way to exit is by hitting the Escape key on the keyboard. The exit button works fine in individual .exe files of the modules; it's just in the aggregated .exe file that the exit button doesn't work. Is there anything special I need to do to make the exit button work with Aggregator?

    Hi, this is more J2EE related stuff, SAP came with a solution but is taking ages to get the next page after the "Exit" button is pushed:
    Go to VisualAdnmin >server(n) >Services >Configuration Adapter >
    (Right side Pane) webdynpro >sap.com >tcwddispwda >PropertySheet
    default.
    Edit the property sheet and change the custom value for the property
    "sap.locking.maxWaitInterval" to 200.
    Note 1113811, explains why these kind of errors happen.
    I still waiting for a better solution from SAP.
    Cheers

  • Creating a link on exported exe files

    I have 9 separate projects I need to burn to a CD. I have
    created an html menu. I am exporting each of the 9 projects as
    stand alone exe files, each one automatically opening the next one.
    But at any given time I would like the viewer to be able to exit to
    the main menu. Should I just put a button linking to the main menu
    on every single screen of a single project, to allow the user to
    exit to the menu if they want?
    FYI, I had initially created the 9 projects as html files,
    linking to one another. I posted a message about that earlier. But
    I am running into browser issues and don't want to run that risk
    with the completed CD. Help! :)

    Hello Captiv8r and others,
    This thread is pretty interesting. I have been struggling
    with creating a project using Captivate 3 that will
    reside fully on a CD. I am looking at maybe three workflows
    for this, one using exe files, one using swf files and an html page
    which serves as a "menu page" (the Captivate Menu builder just does
    not have enough options, in terms
    of graphic display, buttons, etc.), and the last one (which
    is the hardest), using some sort of Flash container, a Flash
    loader, and some menu buttons built in Flash, that call up
    Captivate created swf files, etc. So far we have not had to track
    state. I am trying to develop a training course on MS Excel, and am
    using audio and Captivate for screen shots, mouse movements, etc.
    After all the BS above, I do have a question. Is there a
    reason to publish to an exe file in Captivate? Or what is the
    reason(s) to publish a Captivate project to an exe file in the
    first place. I have searched around for the answer on this, but
    have found no good answer on this. Perhaps those of you more "sage"
    Captivate users can provide some insight.
    Thanks again for a very helpful forum,
    eholz1

  • How to run .exe files in mac pro?

    how to run .exe files in mac pro?
    i am looking for this to play games in my mac pro.
    if someone got a answer, just let me know
    cheers.

    mailking wrote:
    And I fail to see why you are attacking me...
    My comment is Valid...  " .exe files will not run natively on Mac OS X..."
    I am sorry. I had the false impression that it was commonly known that .exe files did not run on Mac OSX natively and failed to see any constructive critique you were bringing. Maybe I am wrong. Again deepest apologies.
    Unfortunately... these days... not every one is aware of this .exe  fact..
    Apology accepted.. and Thank You..

  • Process Class:How to give and get data from an exe file continuously???

    hi,,,
    I am trying to run an executable file from my program to give it input and read its output....
    And i am having problems...
    The exe file takes one input and appends to it "1235" (ITS A TEST CASE).
    When it is only for a single input , the program rums perfectly.. but when it is within a loop it does not
    Pls help
    Here is the code for that EXE file. (its in C)
    #include<stdio.h>
    int main()
    char a[10];
    int i;
    int k=1235;
    while(1){
    scanf("%s",a);
    if(a[0]=='s')
    break;
    printf("%s%d\n",a,k);
    }Note that when i remove the loop here, my code is able to get and give it data.
    My JAVA program::
    import java.io.*;
    public class Main {
      public static void main(String[] args) throws IOException {
            try {
          String line;
          Process p = Runtime.getRuntime().exec
            ("C:\\users\\Untitled3.exe");
           BufferedWriter   out=new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
              out.write("dfgsfs\n");
              time= java.lang.System.nanoTime();
              out.flush();
          BufferedReader input =new BufferedReader(new InputStreamReader(p.getInputStream()));
         while ((line = input.readLine()) != null) {
            System.out.println(input.readLine());
          input.close();
        catch (Exception err) {
          err.printStackTrace();
    }PLS HELP

    I see a problem in your C code. You're not flushing stdout after you printf and that usually means java is not seeing whats your C program is printing.
    removing the loop probably works because stdout is being flushed right before exit.
    I used a perl script to test your stuff and found that flushing made the trick
    #!/usr/bin/perl
    open(OUTFILE,">>./output.txt");
    $| = 1;
    while (<STDIN>) {
        if (m/.*error.*/) {
            print STDERR  $_;
        } else {
            print STDOUT  $_;
        print OUTFILE $_;
        if (m/exit/) {
            last;
    close(OUTFILE);
    exit;notice "$| =1;" that autoflushes in perl (just in case you were wondering where my flush call went)
    Enjoy!

  • Exe file not producing the output files

    Could anyone please help me with my exe file. I have an exe file "exeFile" which takes more than one file as input from the source "c:/files" and produces some files as output into the destination "c:/files". Both my source and destination is same. My code given below is neither showing any error nor outputting any files. My code is:
    private static void compilingFiles() throws IOException
         String FirstParam = "C:/files";      
         String SecondParam = "C:/files";
         Process proc =Runtime.getRuntime().exec("cmd /c start /MIN C:/files/exeFile " + FirstParam, (String[])null, new File(SecondParam));
    }

    After going through The reference, I modified my code as under. My first exe file "tex" is doing the necessary as before, that is producing the output files to the destination, but the second exe file "fi2t1" is not producing the necessary output.
    My output after running this file is:
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    <ERROR>
    </ERROR>
    Process exitValue1: 0
    <ERROR>
    </ERROR>
    Process exitValue2: 0
    So as per The reference, I think my code is right - "So, MediocreExecJavac works and produces an exit value of 2. Normally, an exit value of 0 indicates success; any nonzero value indicates an error.".
    So please tell me where am I wrong. My code is:
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.util.*;
    public class FontDriverCompile
         public FontDriverCompile()
         void compileFile(File newFile, String renameSub, File outputfile) throws IOException
              String FirstParam = "C:\\Temp\\sample\\font-driver.tex";  
              String FirstParam2 = "C:\\Temp\\sample";
              String SecondParam = "C:\\Temp\\sample";  
              try
                   Process proc1 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/tex " + FirstParam, (String[])null, new File(SecondParam));
                   InputStream stderr = proc1.getErrorStream();
                   InputStreamReader isr = new InputStreamReader(stderr);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   System.out.println("<ERROR>");
                   while ( (line = br.readLine()) != null)
                        System.out.println(line);
                   System.out.println("</ERROR>");
                   int exitVal1 = proc1.waitFor();
                   System.out.println("Process exitValue11: " + exitVal1);
              catch (Throwable t)
                   System.out.println("t.printStackTrace()_1");
                   t.printStackTrace();
              try
                   Process proc2 =Runtime.getRuntime().exec("cmd /c start /MIN C:/Temp/sample/fi2t1 " + FirstParam2, (String[])null, new File(SecondParam));
                   InputStream stderr = proc2.getErrorStream();
                   InputStreamReader isr = new InputStreamReader(stderr);
                   BufferedReader br = new BufferedReader(isr);
                   String line = null;
                   System.out.println("<ERROR>");
                   while( (line = br.readLine()) != null)
                        System.out.println(line);
                   System.out.println("</ERROR>");
                   int exitVal2 = proc2.waitFor();
                   System.out.println("Process exitValue2: " + exitVal2);
              catch (Throwable t)
                   System.out.println("t.printStackTrace()_2");
                   t.printStackTrace();
    }Message was edited by:
    sony_tj

  • How do I call another exe file from a Java program?

    Hi,
    I am doing a simple IDE (text editor/interpreter) for a simple programming language we are developing. It will be submitted as our project for this semester. I created an exe file (in C) which will be used as the interpreter. How do I call the interpreter from my IDE? The interpreter should run when the user clicks a button (i.e. the "Run" button). I've tried the Java Runtime class but it doesn't work. Anyone who knows how to do it?
    Thanks!

    I first tried to do a simple program that calls system commands such as dir, cd <dir>, etc.
    I do not have the exact code right now but as far as I can remember, here's what I wrote:
    class Sample{
        public static void main(String args[]) throws IOException{
           BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
           String command;
           while ((command = in.readLine()).equalsIgnoreCase("exit") == false){
              try{
                Runtime.getRuntime().exec(command);
              }catch(Exception e){
                 System.err.println("Error: " + e);
          System.exit(0);
    }

  • Scrollbar in published exe file

    Hello, can anyone tell me, of it is possible to publish a
    project to a .exe with a scrollbar?
    Because in our company there are some people with 15" screens
    and now they don't see the bottom of the full screen *.exe
    I hope there is a way to scroll within the published exe
    file.
    kind regards,
    Bill

    Welcome to our community, Bill
    First off, there is no way I'm aware of to include a scroll
    bar like that.
    Computer screens are just like TV screens. If a person with a
    21 Inch monitor views something, it simply appears larger than it
    appears on a 15 inch monitor.
    What is at play here is something called
    Resolution. While for TV screens, the only thing that really
    comes into play is the size, with Computer monitors you care about
    resolution. Resolution is how finely the divisions occur with the
    display units. These are called PixEls, which is a combination of
    Picture and Elements. So often, smaller screens use a lower
    resolution, hence the issue.
    You may wish to consider Publishing the Captivate as a SWF
    and only linking to the SWF. While that would probably impact the
    quality of the end user's experience, it should accomplish the
    goal. So instead of opening a .EXE, the user would open a .SWF in
    the browser.
    Hopefully this was helpful. If not, it was intended to be.
    Cheers... Rick

  • Standard User rights to copy .exe files in System32 directory?

    I am trying to lock down my son's computer to stop him playing games on it. However he seems to have found a security hole that allows him to elevate himself to Administrator which overcomes all my attempts to lock down the PC. It seems that the default
    security settings for a Standard User on Win 7 Home Premium (64 bit OS on a Dell laptop) has permissions to copy a file in the Windows\System32 directory. That allows him to copy cmd.exe over osk.exe. Then from the logon-in screen he can invoke a command shell
    using the accessability features (osk.exe = onscreen keyboard), this command prompt runs at an Admin security level (I guess because it is invoked by a kernel process??) he can then use the net user command to elevate his user account to be an Administrator
    account.
    I seems strange to me that a standard user has rights to copy .exe files around in the system32 directory. Can anyone verify if this is expected behaviour or has the system been altered in some way that I am not aware? If so can anyone help by providing
    guidance on how to reset the security permissions on system32 back to the correct default settings.
    Any help appreciated.
    Pedro.

    By default standard user doesn't have any permission in System32 and is unable to install any programs. I believe he somehow manage to get access to administrator password. You may try to remove all administrator permissions and then change your administrator's
    password and enable bitlocker.

  • Run a .exe file with parameters from my java code

    Hi, I want to run a .exe file from my java program. This .exe file will take some parameters in the command line. I need
    to supply that to the program as well. Can someone help me in this please?
    Thanks in advance.

    I am trying like this:
    public class lauch_ext {
         public static void main(String[] args) throws Exception{
              try {
                Runtime rt = Runtime.getRuntime();
                Process pr = rt.exec("C:\\Apps\\myapp.exe arg1 -arg2 return_arg");
                BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
                String line=null;
                while((line=input.readLine()) != null) {
                    System.out.println(line);
                int exitVal = pr.waitFor();
                System.out.println("Exited with error code "+exitVal);
            } catch(Exception e) {
                System.out.println(e.toString());
                e.printStackTrace();
    }

  • Converrsion of .class to exe file

    i googled the above problem. in one of the forms i got the information. it instructed me to use javaw [filename] to acheive the same. but when i use javaw [ file name] it comes with the msg "cannot find main class. program will exit".
    I just want to create an .exe file so that when any one double clicks on the .exe file, this bring up the application.
    thanx in advance
    regrads
    naveen

    You have 2 options:
    you can make an executable JAR file and require you have the JRE/JDK installed or do a search in the forums and get a hold of one of the dozen or so threads telling about the host of products that make EXE's out of Java and the pro's and con's therein.
    Do the search, we don't need to regurgitate the same thing again because you didn't search.

  • How to import .exe files into Captivate

    I have some Flash .exe files that I want to import into
    Captivate so I can combine the files....and also so I can choose
    the properties for the files (for example, either to run on a loop
    or also to take to a website upon completion).
    So, how do I import .exe files into Captivate?

    Hi Steve
    Unless you can find some sort of a converter out on the web,
    I think you are out of luck. I am aware of the SoThink SWF
    decompiler (
    http://www.sothink.com/product/flashdecompiler
    ) but I'm somewhat doubtful it will work on .EXE files. Perhaps it
    will.
    Cheers... Rick

  • Trouble linking exe files

    Yet another dilemma with my CD project. I published the first
    project file (of 9 separate projects) as a standalone .exe file
    with an autostart file to burn to cd. I set the END to open another
    .exe file. When I view output, it fails to open the second .exe
    file. It opens a browser window and says it can't find the .exe
    file. All project file names are only 8 characters, so that isn't
    an issue. But it shouldn't try to open the .exe file in a browser
    window, should it? Is there any reason I can't publish all the 9
    projects as standalone .exe files and link them to one
    another?

    Hi again
    Here's the way I would think it would work.
    You have a menu and perhaps ten movies. They are all in .EXE
    format. The menu.exe would run via autorun.inf as long as nothing
    has impeded it. So you have a Menu.EXE running. Your user clicks a
    movie link and POOF! The selected movie.EXE plays. But here's the
    trick. The movie opens in a new instance of the Flash player. The
    Menu.exe is still running. It's simply covered by the new movie. If
    the user closes the new movie, the Menu.exe is uncovered. This
    allows him/her to open other movies from the menu.
    Sorry, no way I'm aware of to speed things along. For one
    thing, accessing anything off a CD will be slower to react than off
    a hard drive. For another, maybe the movie is simply very large and
    would take an inordinate amount of time to open even on a fast hard
    drive. Hard to say.
    Hope this helps a smidge... Rick

  • Can't open the Firefox after install on window. Error indicated I missing the EXE file

    Firefox required me to update the flash player, Norton indicated the flash player I just download may contains virus so I removed it right a way. After the virus scanned, I reboot the computer and I am not able to open the Firefox and other applications on the desktop. I got a message indicated the exe file was corrupted or removed. I really don't want to buy other program to fix this problem.

    Did you use the bad computer to post this message?
    Where did you get the Flash program from?
    Are all programs giving you problems, or only some? What ones?
    '''[http://support.microsoft.com/fixit/ Microsoft Fix it Solution Center: troubleshooting software issues]'''
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • What application opens Windows .exe files?

    I bought a Samsung SSD 840EVO 500GB for my mid-2010 MacBook Pro but can't start Data dump without a Windows application to run the .exe file to start Data Dump.  Any suggestions?

    .EXE don't run oMacs
    There is an application called Wine that claims to open .exe files, I know nothing about it, and it may screw up your machine. I won't even post a link, you can search it and download at your own risk.
    UNDERSTAND I AM NOT RECOMMENDING THIS APPLICATION!
    Only making you aware of it.

Maybe you are looking for

  • Problems with Safari to download and save pdf files

    I used to download pdf with no problems at all, right now the download window does not open at all and tha option Save as is acting like the file is being saved but no pdf file appears in the downloads folder or in any other folder select. I am new i

  • Apple tv can't connect to server after update

    I just updated my apple tv after being bugged constantly to do it. Usually it takes only a few minutes, but this time it took about 90 minutes. Now, even though I can connect to you tube, trailers, and the main splash screen comes up, I cannot log in

  • Selectable items within an image that has links to other pages

    Hello All, I have recently started to learn Dreamweaver CS5 and need some help.  I have a jpeg of a floor plan and want the user to be able to click on the different rooms within the floor plan.  Once you click on the room it would take the user to a

  • Portrait retouch, need to get rid of cluster of flyaways under chin on neck

    HI, I'm retouching a portrait and there is a cluster of hair under my subject's chin. I cannot get rid of it and keep the natural look to the edge of the hair. Does anyone have any recommendations? I would greatly appreciate it.

  • What's using all this storage?

    When I look at the summary page in iTunes for my iPad Air, I see a bar near the bottom of the page broken up into various colored segments: audio, video, apps, etc. There is also one called "other". I can figure out what I have in the other areas but