Capture KeyboardEvent While Minimized

Is it possible for an AIR application to capture a
KeyboardEvent while it's minimized and out of focus?
Thank you!

Thank you for your posts!
ASnewbie: Well, Google Desktop shows gadgets when you double
click Shift. You can have any other application on focus and it
will still show gadgets when you double click Shift.

Similar Messages

  • Need to capture webinar while away from mac

    need to capture webinar while away from mac. automator is so complicated. is there a simpler better way to capture.
    thanks erryjay

    Hi,
    You would like to retrieve the returning value of the dynpro in a Batch input session ?
    bad idea
    try to make a CALL TRANSACTION inside a program. But you can't add you own logic inside a batch-input.
    Maybe you could do this using eCAT
    regards
    Fred

  • How to capture frame maximizing/minimizing event?

    I have a requirement.
    I have a JTable. The preferred size of the table should be set dynamically when the JFrame/window is maximized or minimized.
    If the window is maximized the preferred size should be
         table.setPreferredSize(new Dimension(1200, 370
    If the window is minimized then preferred size should be
         table.setPreferredSize(new Dimension(715, 370);
    I thought of a solution like if I capture maximize / minimizing event then I can set preferred size accordingly. I need some help
    to capture those events.
    Or if any other solution can be given for this requirement means also it is fine.
    Anybody guide me to capture frame maximizing / minimizing event

    Hi,
    I have coded my requirement as below:
    mainFrame.addComponentListener(new ComponentListener() {                                           // frame where panel->scroll panel is fixed
                   public void componentResized(ComponentEvent e) {         // captured the events by passing component listener
                        if (mainFrame.getExtendedState() == 6) {      // captures the window maximizing event
                             table.getTablePane().setPreferredSize(
                                       new Dimension(1250, 450)); // set required size
                             table.getTablePane().revalidate(); // revalidated.
                        } else {                                                                               // captures window restoring event
                             table.getTablePane().setPreferredSize(
                                       new Dimension(715, 450));
                             table.getTablePane().revalidate();
                   public void componentHidden(ComponentEvent arg0) {}
                   public void componentMoved(ComponentEvent arg0) {}
                   public void componentShown(ComponentEvent arg0) {}
    Thanks for everyone who helped me.

  • Capture keyboardevent from Windows

    Hi, is there any way how can I capture KeyboardEvent from Windows using AIR? because I want to make my application to be able to popup from tray when I press some keys in Windows (for example CTRL+ALT+SHIFT+T) but I was able to catch KeyboardEvent just on stage...
    thanks

    Hi, you cant do that without focusing on your window, you have to use a third party program.

  • Subvi popup ( popup running continously while minimized or disappear)

    Hi ppl, need help
    I have an application which involves a lot of subvis and all need to be opened once set them to run, minimize or just disappear and give back control to main vi.
    problems are:
    1) since there are many subvis and all needed to be running , the laptop screen  fills up and so , if minimized to taskbar it still is a problem to navigate with lots of subvis running, so, can the subvis be made like this-- pop-up when i click button on the main vi and then run/stop  my sub vi manually and press button to disappear while it is still running in the background, If i wish to see it again It should be able to popup again when i press the same ok button on main vi.
    Please see attached, just simple vis
    the number on the main vi front panel should be still running after once i start the subvi and make it disappear
    i tried with the suspend when called on subvi node setup, when i try to close the window, control is returned to main vi  but it stops running and then exits.
    anyway around this plzz
    thanks
    Attachments:
    Main.vi ‏7 KB
    popup.vi ‏7 KB

    Here's a code snippet that should give you a good start.
    The key is to get a reference to the subVI you want to minimize/maximize, and then use an invoke node to minimize/maximize it.
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************
    Attachments:
    vi minimize.PNG ‏21 KB

  • Capture video while playing audio in WP8 or WP81

    Hi,
    Whenever I try to record a video using the CaptureSource it stops whatever audio was playing. How do I prevent recording video from stopping the audio being played?
    Thank you

    Hi Baracat,
    Could you explain any scenario why you want to capture the video while playing the audio? You want to record the audio played from your device to your video?
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Capturing bitmapData while in FullScreen

    Is this possible?? Limitation with the Flash player?
    I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off (see images below). The document size is 100x700, and the stage is set not to scale / aligned to bottom.
    I've been able to capture the right size, however it always seems to capturing the image from the wrong start x,y position. There is some elements out of bounds but I am just trying to clip them depending on the current stage width and height.
    In the source files you will see a few of my attempts commented off (below/attached). Is anyone willing to help me troubleshoot this.
    Fullscreen Capture :
    Normal Capture :
    CODE :
    import com.adobe.images.JPGEncoder;
    ///---------- [ Set Variables ] --------///
    var zeroPos:Number=0-stage.stageWidth;
    var xPos:Number = (stage.stageWidth-mouseX)+zeroPos;
    var xPos2:Number = (stage.stageWidth+mouseX)+zeroPos;
    var centerpointW:Number = stage.stageWidth/2;
    var centerpointH:Number = stage.stageHeight/2;
    var stage_top:Number = stage.stageHeight-(stage.stageHeight*.95);
    var stage_bottom:Number = stage.stageHeight*.95;
    var gap_dist:Number = 1;
    var section_dist:Number = 10;
    ///---------- [ Set Stage ] --------///
    stage.quality=StageQuality.HIGH;
    stage.align=StageAlign.BOTTOM;
    StageScaleMode.NO_SCALE;
    ///---------- [ Save Wallpaper ] --------///
    function createJPG(m:MovieClip, q:Number, fileName:String){
        //test_pos.x = test_pos.y = 0;
        //test_pos.x = 500;
        //test_pos.width = stage.stageWidth;
        var jpgSource:BitmapData = new BitmapData (stage.stageWidth, stage.stageHeight,false,0xFFCC00);
        //var jpgSource:BitmapData = grab( m, new Rectangle(500-centerpointW, (700-stage.stageHeight), stage.stageWidth, stage.stageHeight), true );
        var jpgData:BitmapData = new BitmapData (stage.stageWidth, stage.stageHeight,false,0xFFCC00);
        var trans:Matrix = new Matrix();
        //var screenRectangle:Rectangle = new Rectangle((0-500), (700-stage.stageHeight), stage.stageWidth, stage.stageHeight);
        var screenRectangle:Rectangle = new Rectangle(500-centerpointW, (700-stage.stageHeight), stage.stageWidth, stage.stageHeight);
        //var screenRectangle2:Rectangle = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
        var wp_myDate:Date = new Date();
        var wp_timeNow:Number = wp_myDate.getTime();
        //trans.translate(500-centerpointW, 700-stage.stageHeight);
        //jpgSource.draw(m);
        //jpgSource.draw(m, new Matrix(0, 0, 0, 0, 500-centerpointW, 700-stage.stageHeight));
        //jpgSource.draw(m, trans, null,null,null,true);
        //jpgSource.fillRect(screenRectangle, 0xFF0000);
        var mxx:Matrix = new Matrix();
        mxx.tx = 500-centerpointW;
        mxx.ty = 700-stage.stageHeight;
        //jpgSource.draw(m, mxx);
        jpgSource.draw(m, null, null,null,screenRectangle,true);
        //jpgSource.draw(m, new Matrix(1, 0, 0, 1, 500-centerpointW, 700-stage.stageHeight));
        jpgData.copyPixels( jpgSource, screenRectangle, new Point(0, 0) );
        //jpgData.copyPixels( jpgSource, screenRectangle2, new Point(0, 0) );
        jpgSource.dispose();
        var jpgEncoder:JPGEncoder = new JPGEncoder(q);
        var jpgStream:ByteArray = jpgEncoder.encode(jpgData);
        //var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
        var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
        var jpgURLRequest:URLRequest = new URLRequest ("screenshot_download.php?name=" + fileName + wp_timeNow.toString()+".jpg");
        var jpgURLLoader:URLLoader = new URLLoader();
        jpgURLRequest.requestHeaders.push(header);               
        jpgURLRequest.method = URLRequestMethod.POST;               
        jpgURLRequest.data = jpgStream;
        navigateToURL(jpgURLRequest, "_self");
    function grab( source:DisplayObject, rect:Rectangle, smoothing:Boolean ):BitmapData{
        if( !source is IBitmapDrawable )
            throw new Error( "Cannot create BitmapData.  Source must implement IBitmapDrawable" );
        var bmpData1:BitmapData = new BitmapData( stage.stageWidth, stage.stageHeight, true, 0x00000000 );
        var bmpData2:BitmapData = new BitmapData( rect.width, rect.height, true, 0x00000000 );
        bmpData1.draw( source, null, null, null, null, smoothing );
        bmpData2.copyPixels( bmpData1, rect, new Point( 0, 0 ) );
        bmpData1.dispose();
        return bmpData2;
    function onSaveWallpaper($event:MouseEvent):void {
        //stage.displayState=StageDisplayState.NORMAL;
        createJPG(this, 90, stage.stageWidth+"x"+stage.stageHeight);
    captureTab.addEventListener(MouseEvent.CLICK, onSaveWallpaper);
    ///---------- [ Fullsreen Functions ] --------///
    function showFullScreen($event:MouseEvent):void {
        stage.displayState=StageDisplayState.FULL_SCREEN;
        stage.align=StageAlign.BOTTOM;
    fsTab.addEventListener(MouseEvent.CLICK, showFullScreen);
    Here's the code for the php ("screenshot_download.php") :
    <?php
    if ( isset ( $GLOBALS["HTTP_RAW_POST_DATA"] )) {
        // get bytearray
        $im = $GLOBALS["HTTP_RAW_POST_DATA"];
        // add headers for download dialog-box
        header('Content-Type: image/jpeg');
        header("Content-Disposition: attachment; filename=".$_GET['name']);
        echo $im;
    }  else echo 'An error occured.';
    ?>

    Thanks all. I was able to resolve this issue :
    Here it is in action (right click for fullscreen option) :
    http://todreamawake.com/beta_test.html?load_stage=main_menu
    I decided to break from this while I worked on making other updates to the site. And yesterday I took another look at it, and took me about 15mins to relize what I was doing wrong. Turns out I had it in one of my attemps but my calculations was backwords.
        var jpgSource:BitmapData = new BitmapData (stage.stageWidth, stage.stageHeight);
        var trans:Matrix = new Matrix();
        trans.translate(centerpointW-500, stage.stageHeight-700);
         //  I had this as 500-centerpointW, 700-stage.stageHeight
        jpgSource.draw(m, trans, null,null,null,true);
        var jpgEncoder:JPGEncoder = new JPGEncoder(85);
        var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
        var header:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
         var jpgURLRequest:URLRequest = new URLRequest("screenshot_download.php?name=sketch_"+fileName);
        jpgURLRequest.requestHeaders.push(header);
        jpgURLRequest.method = URLRequestMethod.POST;
        jpgURLRequest.data = jpgStream;
         navigateToURL(jpgURLRequest, "_self");
    Thanks again, I attached the updated FLA if it can help anyone else.

  • Capturing Quantity while posting to AUC

    Hi
    While posting to AUC, we are trying to capture the quantity of asset.  In field status group for the GL and in posting key 70, we made quantity field as required entry.Still, the quantity field is not available on the screen.
    The client is insisting on capturing the quantity while posting to AUC.
    Regards
    Priyadarshini

    you can do the auc through "F-90"directly.

  • ITunes keeps opening by itself while an apple product is plugged in abuot every 20 seconds, even while minimized. Suggestions?????

    Hello there my problem is as stated above It's very annoying, because I can't do anything while my iPod is charging, I have no idea why and I'm very irritated as this is absolutely ridiculous -.- If anyone knows why this keeps happening and can help me prevent it from happening anymore, that would be fantastic!!!

    Nevermind, I found a solution .. What I did was go to the start menu, in the seach bar type in msconfig, double clicked that, then went to startup tab, and unchecked the iTunes box. So if anyone else is having this problem, this may work for you as well

  • Problem while minimizing a panel

    Hi,
    I have a panel where there is html component init....which displays pdf file..
    <containers:Panel
                    id="myPanel"
                    title="Panel"
                    width="100%" height="100%"
                    horizontalAlign="center"
                    verticalAlign="middle"
                    resizeEffect="Resize"
                    allowDrag="true"
                    allowResize="true"
                    allowClose="true"
                    allowMaximize="true"
                    allowMinimize="true"
                    moveEffect="Move"
                    close="panelContainer.removeChild(myPanel);"
                    >
                    <mx:HTML id="reader" width="100%" height="100%" y="0"
                             location="http://121.243.253.109:8080/DBStage/DBPageReference/Bare Acts/State Acts/Arunachal Pradesh/Dept. Of Co-Operative Societies/The Arunachal Pradesh Co-operative Societies Act (Amendment) Act 1989.pdf">
                    </mx:HTML>
                </containers:Panel>

    cont...
         *  Minimize the panel.
        public function minimize():void
            if (!canAnimate)
                return;
            isMinimized = true;
            isMaximized = false;
             If we try to call this too soon it will mess up our first transition
             so we'll hold off unless we have the properties set.
            updateRestoreRect();
            if (minimizeRestoreRect)
                this.width = 200;
            this.height = titleBar.height;
            this.move(0,650);//this.parent.height - 30 // move()
            var myEvent:SuperPanelEvent = new SuperPanelEvent(SuperPanelEvent.MINIMIZE);
            dispatchEvent(myEvent);
    The problem is after minimising the panel......
    After minimizing the panel to left corner bottom also... a part of pdf window is still visible.....
    Pls guide me ..... hwy is this happening....
    Thanks & regards

  • Capturing audio while using airtunes?

    Does anybody out there know if there is a way to capture whats playing on Airtunes to an mp3 file? The stereo out mix cant be used because airtunes does not output through the soundcard. Thanks.

    Hi Stuart:
    Audio Hijack sounds like the solution for you: http://rogueamoeba.com/audiohijack/

  • ED not capturing properly while posting IR

    Hi
    I am facing problem when creating Invoice with ref to GR.
    In PO ED is capturing properly, in PartII also it is capturing ED properly,  But when I am trying to POST IR, if I go to simulate invoice it is showing wrong ED ie lesser than the actual amount to be captured. Please find solution. And I have checked G/L accs, acc keys, cond types.
    Regards
    venkat
    Edited by: garapati on Dec 21, 2007 10:19 AM

    Hi,
    Check whether all condition type in tax default (customization)are correct or not.
    Regards,
    Chetan.

  • To capture customer # while creating using  transaction XD01

    Hello..Requirement is to capture 'Sold-To' customer # which gets generated internally by SAP. I tried exit 'EXIT_SAPMF02D_001' but not successful. I am using transaction 'XD01' to create 'Sold-to' customer and I need to capture internally generated customer # before KNA1 gets updated.
    PLEASE ADVISE!.
    THANKING YOU IN ADVANCE!.
    FELLOW ABAPER.

    Normally the number is generated internally. This updates KNA1. For what purpose ru trying to use it. If u want to check it u will not be able to it. But, when u try to save it, u can check it using the corresponding user exit and use it internally for ur purpose. I dont exactly remember the user exit for save, but u can use it in it.
    Pl. reward points if this is what u needed.

  • Capturing deadlock while updating

    Hi,
    I am updating a table A and there is a trigger on that table
    which updates table B. If i try to update the table A too fast i am
    getting a deadlock error.
    I am interested to capture the deadlock error and dispaly a
    custom message to the user. I used cfcatch, i am not seeing any
    error or message related to deadlock but still when i went through
    the logs on server i am seeing the deadlock error.
    Looking for your help in capturing the deadlock.
    Thanks in advance
    -Raaga

    Use transaction processing to catch the deadlock or (better
    yet) avoid it in the first place.
    Consult BOL.

  • Capture Messages while Inbound processing of IDOC

    Hi ,
    I have a scenario where in i have to upload a file from application server using inbound IDOC. I am using the program RSEINB00 (using submit) for this, The idoc is getting posted successfully but i need to capture the messages in form of a log so that i can find out what all IDOC numbers are generated and how many of them. In case any error is there. I need to display a log of it.
    Timely help in this regard will be appreciated and rewarded suitably.
    Rgds,
    Kewal
    P.S. : Please suggest if there is any other method to process inbound IDOC (accept we19 TX)

    Hi kewal ,
    As per the scenario explained by you , I suggest you to do following steps
    1.The program you are using is RSEINB00 , has a function mosule present named ' IDOC_ERROR_WORKFLOW_START'. This function module can gice yo the Error message log in case of Inboung IDOC processing fails.
    2.You have two options , eithe you find out any user exit and atttach your own code to it or Complaetely cope that code into your z-program. Int he function module mentioned above , the export parameter  ' G_MESSAGE_FIELDS ' wud give you the error message , error status , error no etc.
    3. So for the INbound IDOC status messages starts with 51-70 , so depending upon ur logic , read all those message into an internal table .Then transfer that to a file .So an error log can be genearated.
    I hope this solves ur problem.
    Regards.
    Note: Reward if useful.

Maybe you are looking for

  • How do i stop downloads from automatically going to downloads folder

    Please help I don't want the documents I download from the web to automatically open with Preview and then automatically save the document to my downloads folder. This is just cluttering up my system with too much junk in my downloads folder.

  • I am unable to open Lightroom 5 catalogs due to "unexpected error"

    I cannot currently open Lightroom. Each time I try it tells me that the catalog could not open due to an "unexpected error". I get this error for every catalog and every backup. I can't even seem to create a new catalog successfully. Any help would b

  • Application authorization on CMC

    Hi, I would like to hide some of the applications on "Central Management Console" regarding the authorizations. For example, when I add a user into "Administrator" group, all the applications are looking visible under console. If I add a user into an

  • SQL in Java

    Hi is there anyone that can help me with this simple SQL command? ("insert into user values ('"i"','"+name+"')"); i++; The variable i is a running number and name is a variable as well. I beleive the syntax to quo the variable i has problem. Please h

  • RESTful Webservice

    How to invoke RESTful Webservice using ODI11g ? Mark T.