1 Reply Latest reply on Apr 17, 2009 2:55 AM by Cesare Rocchi

    Hide/Show Adobe AIR app with a windows shortcut

      Hello all,

       

      Hope to find some answers here. This is what we are trying to achieve

       

      -- Application with launch at OS startup or user will start the application .

      -- Once the application started, it should run in background (No window will be visible)

      --  Application should become visible if assinged keyboard shortcut is triggered (e.g. ALT+CTRL+A) , even if the user is working on another applicaiton.

      -- User works on the app and if clicks anywhere out of context of the application, it should again go back to background.

       

      Hope this is possible in AIR. We are exploring AIR and above scenario is very important for us.

       

      Thanks for help in adance,

        • 1. Re: Hide/Show Adobe AIR app with a windows shortcut
          Cesare Rocchi Level 2

          Pretty long set of questions. Let's see.

           

           

          Application startup:

           

          NativeApplication.nativeApplication.startAtLogin = true; // default is false, so app does not open at login

           

           

           

          Run in background

           

          <mx:WindowedApplication has a property called "visible".

          If false the window is not visible when the app is started.

           

           

           

          --  Application should become visible if assinged keyboard shortcut is triggered (e.g. ALT+CTRL+A) , even if the user is working on another applicaiton.

           

           

          Afaik, Adobe Air applications have to have focus to listen to keyboard events.

           

           

           

           

          Click out of context

           

          You can handle it via the deactivate event like this:

           

          <mx:WindowedApplication ... deactivate="trace('app deselected')">

           

           

          HTH