Keyboad input when out of focus

I wrote a Java application to take a series of screen shots of the desk top when a key is pressed that I then turn into a gif animation later. The problem is that I cannot use the program when it is out of focus or minimized.
I am looking for source that will look to the keyboard (while in the background) periodically and see what if any keys are being pressed. Doesn't necessarily have to be a listener of sorts, but that would be nice.
I am sure a C++ attachment to the Java could be written to handle it, but I am trying to write the program for PC's and Mac's.
Thanks, even a suggestion of where I should be looking to accomplish this would be appreciated.

I would try posting this question in the Native methods forum. I would mention that you already posted this here, just so people don't flame you for cross-posting.

Similar Messages

  • How to pause stage/swf with audio when a new tab is opened/ out of focus in browser

    I have created a container in Flash Professional CS5 for my project’s CBT.  I’ve been able to script many of the features we require using AS3, but there are a couple of things I’m still trying to work out.
    I would like the swf presently playing in one tab to pause and go silent when another swf is opened in a new tab (the sound is inside this externally loaded swf which is loaded inside a movie clip from buttons nested a movie clip down).  I’ve tried :
    var originalFrameRate:uint = stage.frameRate;
    var standbyFrameRate:uint = 0;
    addEventListener(Event.ACTIVATE, onActivate);
    addEventListener(Event.DEACTIVATE, onDeactivate);
    function onActivate(e:Event):void
           stage.frameRate = originalFrameRate;
           trace("in focus");
    function onDeactivate(e:Event):void
           stage.frameRate = standbyFrameRate;
           SoundMixer.stopAll();
           trace("out of focus");
    And
          I’ve looked into the HTML tag “has Priority”
    and coded buttons to:
    function fl_ClickToGoToWebPage(event:MouseEvent):void
           navigateToURL(new URLRequest("http://www.ansaldo-sts.com/AnsaldoSTS/EN/index.sdo"), "_blank");
           MovieClip(this.stage).stop();
    With variations of:
    MovieClip(this.parent.parent)stop();
    MovieClip(this.parent.parent.parent.parent)stop(); because the button is 3 movie clips deep.
    MovieClip(this.root)stop();      MovieClip(root)stop();MovieClip(this.currentTarget.root)stop();
    Could someone please provide me with the code?
    This function is present when I publish the CBT with Captivate, so obviously there must be code available. You can set the Captivate button to open url in new window and pause movie.
    Is there something I can add to the html file that is similar to the “has Priority” for mobile devices or is there javascript that can be added to the flash itself?

    You would send a command to Flash from JavaScript when window.onblur event occurs.

  • Can I force Quicktime to remain in fullscreen when it's out of focus

    Hey,
    I've got a bit of a question. I recently got hold of a new LCD and hooked it up as my secondary display, and among other things, I like to keep work on one screen and video on the other. Trouble is, any time Quicktime loses focus, it drops back to windowed mode. Is there any way to lock it in fullscreen mode when it's out of focus and I'm typing and/or clicking around on the other display? Alternatively, can it be done with VLC? And one last thing just in case someone knows, can you lock a Hulu player in fullscreen?
    Thanks in advance if you read this, I appreciate your time.

    A few suggestions:
    QT Full Screen Mode Widget.
    QT Full Screen
    Full screen QuickTime Player
    10.4: Watch fullscreen QuickTime movies via Automator

  • When a photo is viewed in iPhoto 9.6, why is it sharp then immediately goes out of focus?

    When viewing photos (full window), the photo initially is sharp then immediately goes a little out of focus. Thanks to some previous forum responses, a fix is to slightly shift the zoom button to the right, clearing the photo right up. When going through 100+ photos, obviously this is an untenable fix. I assume this is a bug that needs repair.

    As a follow-up, I found that if I hold the left mouse button down while on the zoom button, no matter where it is on the slider, the same effect happens, that is that the photo goes out of focus. Once released, the photo sharpens. This DOES NOT happen when the zoom slider is all the way to the left. There as stated earlier the photo stays out of focus.

  • One day it just stopped focusing and the pictures are blurry.  If I switch it to the front camera it works well and looks like it should but when I turn it back it goes back to being out of focus and I can't figure out how to fix it?

    i installed ios 7.after  that my primary cam, one day it just stopped focusing and the pictures are blurry.  If I switch it to the front camera it works well and looks like it should but when I turn it back it goes back to being out of focus and I can't figure out how to fix it?

    This advice will sound like a joke or prank, but believe me it worked on my iPhone 5 and my daughter's.  The lens mechanism got stock on each of our iPhones.  We found a post on these message boards that said to hold the iPhone about 6 inches above a table or counter top and drop it so that it lands flat on it's back.  Now try the camera ...Fixed!  It has been more than six months now and neither of our iPhones have ever experienced the problem again. 

  • When keying a green screen shot, the image being keyed goes a little out of focus when the effect is applied. How do you keep it sharp?

    When keying a green screen shot, the primary image goes slightly out of focus when the effect is placed.  What am I doing wrong??

    Make a letterbox in Photoshop -two black stripes and a hole in the middle, place it on a higher video track.
    Or download this: http://web.mac.com/andymees/Freeand_Easy/main/Entries/2008/1/23_Andy’s_Letterbox2.html

  • TS4436 hi, when zooming in to capture still images, the image is really blurred and out of focus. is this a hardware issue and is there any solution for this?? or is my device faulty?

    hi, when zooming in to capture still images, the image is really blurred and out of focus. is this a hardware issue and is there any solution for this?? or is my device faulty?

    If you are using the iPhone camera zoom then remember that this is a digital zoom not an optical zoom. The zoomed in area will have fewer pixels and not appear as clear. The more you zoom the worse it gets. It's like cropping a picture after it has been taken.

  • When Straightening Photo, It Becomes Out-Of-Focus

    Hello.
    I just discovered when I straighten a photo in editing, the entire photograph becomes out-of-focus. I do not understand this, is this just with my version of iPhoto '09? I have made a duplicate of the photo, straightened it, then quit iPhoto, and opened it back up. The photo remains blurred.
    At least I can revert back to the original. Now I am exporting my photos to Adobe Bridge until I get a handle on this dilemma.
    Is this widespread, or specifically my own version? It is most unusual. I have used iPhoto for years, and have not had this happen before '09.
    Thank you.

    Try this simple fix: trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    *What's the plist file?*
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.
    Regards
    TD

  • When using video camera on iPad 3 screen keeps going in and out of focus

    Every time I use my video camera the image goes in and out of focus making the blurry there seems to be no settings to stop this help.

    At this point, I would go for reset to its factory default condition, using the iTunes program to get a clean system install. That way you'll clean everything out and just have it set up the way it would come from the factory. You'll need to do your backup (on the iTunes program too) and be sure you understand which stuff will be saved and which will not (from the links below). Also turn off any anti-virus program you may have on your desktop. Then when you reset it to the factory default condition, don't restore your backup just yet ... until you check it out without your data put back on it. Verify its operation first, to make sure that you know it's okay. Hopefully everything is okay at that point, otherwise you'll have to take it into Apple to check it out for any hardware failure.
    Here are the links, and the last one pertains to the reset to factory default condition ...
    Choosing an iOS Backup Method (Should I Use iTunes or iCloud to back up ...)https://support.apple.com/kb/HT5262
    Back up and Restore your iOS Device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iTunes: About iOS Backups
    http://support.apple.com/kb/ht4946
    Create and Delete iPhone, iPad and iPod Touch Backups in iTunes
    http://support.apple.com/kb/ht4946
    iOS: Troubleshooting Encrypted Backups
    http://support.apple.com/kb/TS5162
    Use iTunes to Restore your iOS Device to Factory Settings
    http://support.apple.com/kb/ht1414

  • FF15 is preventing pages in out of focus tabs from autorefreshing. All Javascript/Java and plugins are prevented from refreshing data when tab is not displayed

    FF15 is preventing pages that contain auto refreshing html commands, Javascripts, Java applettes, and other plugins, from auto reloading or refreshing information on web pages, when the tabs than contain them go out-of-focus.
    While tab has focus (page is fully displayed) all auto refreshing/reload embedded commands/programs work correctly.
    I work with web sites, were information needs to be auto updated constantly, whether the tab is hidden or not, such as stock prices, web server monitoring, biding sites, customer support chat, etc.
    This behavior can cause severe loads in web servers with web pages that contain many data items, when all server side programs that pertain to the data being displayed have to run from scratch at the same time, when the tab is brought back in focus, since the browser issues a full reload.
    This behavior also interferes with "reloading" FireFox addons
    One should be able to stop, and/or disable this behavior, and pretty sure this problem is affecting many users, and or web sites that rely on these commands to work according to html protocols.
    Is not the function of a web browser to interfere in any way with html embedded commands or programs, by stoping functionality, or preventing connection to the internet

    No need to remove Adblock Plus, disabling it should help you discover whether ABP is causing that problem or not.
    I saw a mention of that problem at MozillaZine fora a few days ago, but don't recall the details. But IIRC it has to do with toggling a setting to off.
    Adblock Plus has its own support forum.They should be able to help you get ABP adjusted to avoid that issue. <br />
    http://adblockplus.org/forum/

  • Any fix for photos being out of focus when in edit mode?

    found several discussions about this but no fix. My photos can be sharp as a tack but as soon as I click on "edit" they go out of focus. Sometimes they are out of focus before I ever click on edit but if I zoom slightly they are in perfect focus. I can view them in "preview" on my macbook and they look great. This is obviously frustrating as I can trying to edit them but can't see exactly what I am working with b/c they are showing up blurry. My macbook is a late 2008 and i have the latest version of everything else.
    Not sure how long this has been going on but I just noticed it today. I thought my new camera (nikon d7000) was the problem, but as soon as I zoomed a bit I saw they were actually in focus to begin with. Thanks!

    So far it appears that the only work around is to zoom a tiny bit  --  report the problem to Apple - iPhoto menu ==> provide iPhoto feedback
    LN

  • Every video produced by Premier Elements 11 is blury and out of focus.

    When I try to create a video with Premier Elements 11 and an MTS file from my video camera, the resulting videos are blurred and out of focus. The MTS is clear and looks good. Plays on any supported video player. Have tried to convert to AVI as well as creating DVD with the same results. This is the case with any input file, not only one. How can I get a focused, clear video?

    scarboro98
    The answers are in the details.
    What computer operating system is your Premiere Elements 11 running on?
    What are the properties of these .mts source files
    Video compression
    Audio compression
    Frame size
    Frame rate
    Interlaced or Progressive
    File extension
    Pixel Aspect ratio
    What is the brand/model/setting of the camera recording the source media?
    What are you or the project setting as the project preset (which should match the properties of the source media)
    See Edit Menu/Project Settings/General and the readings for Editing Mode, Timebase, Frame Size, Pixel Aspect Ratio (even if they appear to be grayed out)
    When you are viewing the Timeline content in the Edit area monitor is the playback blurry and out of focus?
    Or is the blurry and out of focus only in your exports? If only in exports, then we need to dig into your export choices in Publish+Share/.
    Is your computer optimized and is your video card/graphics card driver up to date according to the web site of the manufacturer of your video card?
    Let us start here and then decide what next.
    Any questions or need clarification on anything written, please do not hesitate to ask.
    Thank you.
    ATR

  • Sample rate off the audio input and out devices do not match - what to do?

    This is fundamental, I know, but nevertheless I can't find my way around it. I get this error message when trying to recor:
    Sample rate off the audio input and out devices do not match
    and am asked to do this:
    Use the appropriate operating system or audio device control panel to adjust the sample rates of the input and output devices to use the same settingt.
    I have defined the sample rate to 44.1/16 bit in accordance with my inbuild soundcardt.
    I am trying to record from LineIn.
    When running on a M-Audio sound card I don't face any problems.
    HP 8560W, sound card IDT/High definition audio Codec
    Any suggestions?
    Knud
    Copenhagen

    You're sure you have set BOTH the input and output settings to 44.1 16 bit?
    Which version of Windows are you running?  There are a number of posts on this forum about how to fully access both the Windows Mixer and the Mixer for your soundcard.  Especially, you need to ensure that all "Windows Sounds" are turned OFF.

  • Final output of Final Cut Express HD 3.5 is blurry and out of focus.

    Using clear/sharp '.mov' files as clips. Doing simple editing, nothing fancy. When I finally output the project using 'Export/Using QuickTime Conversion,' the final is blurry and out of focus. I've tried every compression type (H264, Animation, etc.). Same problem. Anyone know why this is happening?
    Although the specs for my computer are well within the Final Cut Express guidelines (I've even upgraded my graphics card to a Radeon 9800 Pro 256 MB), I'm still thinking that perhaps the G4 I'm using doesn't have enough juice to run the FCE software. By the way, I don't have any other programs active when using FCE. Any help on this would be greatly appreciated. Thanks.
    G4 (Mirror Drive Doors)/1.25 GHz/2.0 GB Memory/Radeon 9800XT (256 MB) Mac OS X (10.4.9) 2 Internal 120 GB Hard Drives (RAID)/2 CD-DVD Drives: Super Drive & Combo Drive
    G4 (Mirror Drive Doors)/1.25 GHz/2.0 GB Memory/Radeon 9800XT (256 MB)   Mac OS X (10.4.9)   2 Internal 120 GB Hard Drives (RAID)/2 CD-DVD Drives: Super Drive & Combo Drive

    Thanks for your response.
    Here's what I'm (trying) to do:
    I'm creating short 5 minute tutorial movies that will be distributed as QuickTime movies (burned to disk) for short run distribution (college).
    Here's the process: the movie itself is a recording of monitor screen actions recorded (audio and video) using Snapz Pro movie mode. The recorded size is 800 x 600. There might be 5 such 1 or 2 minute clips. The quality is excellent. I bring them in to FCE, drop all the clips on the same track, and add simple transitions. That's it.
    Now I need to somehow get a final QuickTime movie, with close to the same quality I had in the clips.
    So... I take the FCE file, output it using 'Export>QuickTime Conversion,' using the same size I originally recorded in, 800 x 600. Tried every codec available. Every time, the end result is a very blurred version of the original Snapz Pro recordings.
    I've even tried outputting the FCE file as 'Export>QuickTime Move' (not using the conversion method). Opened that up in QuickTime Pro with the same result: blurred and out of focus.
    I'm viewing the exported file in QuickTime Pro, with the 'Movie Properties' setting of 'High Quality.'
    Any clue? This is driving me crazy. But I'm determined to get this right.
    G4 (Mirror Drive Doors)/1.25 GHz/2.0 GB Memory/Radeon 9800XT (256 MB) Mac OS X (10.4.9) 2 Internal 120 GB Hard Drives (RAID)/2 CD-DVD Drives: Super Drive & Combo Drive

  • Giant windows, sort of out of focus

    I'm not quite sure what's wrong with my computer. I stopped using it for a minute so it was sleeping and I hit the power button to start using it again. I've done this plenty of times before with no problem. When I turned it back on it had reverted to my old desktop picture and all of the windows and applications were way too big. I restarted it and my newer desktop picture came back but the windows remained large and slightly out of focus. I've tried just dragging them to make them smaller again but it just sort of crops the image intead of fixing the problem. Someone told me it might be a resolution problem but I'm not sure that it is and also not sure how to fix it if that's the case. Any ideas? Thanks!
    MBP    

    Try this:
    http://docs.info.apple.com/article.html?artnum=86194&SaveKCWindowURL=http%3A%2F% 2Fkbase.info.apple.com%2Fcgi-bin%2FWebObjects%2Fkbase.woa%2Fwa%2FSaveKCToHomePag e&searchMode=Assisted&kbhost=kbase.info.apple.comn=false&randomValue=100&showSur vey=f
    or
    Zap the PRAM:
    1. Press and hold the COMMAND + OPTION + P + R keys during startup
    2. Continue holding down all four keys until you hear your Mac reboot four times
    3. Release COMMAND + OPTION + P + R

Maybe you are looking for

  • Travel Management -Overview

    Hi All, All the required configurations have been done and the trip request has been saved by the traveler. I am getting a error while sending / over viewing the trip request to the approving manager as " Error at the start of form processing " Messa

  • How to Execute SQL Server stored procedure through SQL Developer?

    Hi, I was successful in connecting SQL Server database using SQL Developer. I am able to see all the objects such Tables,Views & Procedure and also can query data using sql Query. But when it comes to executing procedure there's no option to achieve

  • Apps closing as soon as I open them on my 5s

    few of my apps have suddenly stopped working. They close automatically as soon as I open them.

  • Running Mapinfo professional in Forms 10g

    Hi, I am calling the Mapinfo 8.0 application in oracle forms 6i and it working fine, but the same form with Oracle 10G is not displaying the Mapinfo professional. Is there any special configuration to be done to run Mapinfo in 10G. I need a reply as

  • My Nano turns itself on in the early hours.......

    My Ipod turns itself on in the small hours, even though I make sure I switch it off and lock it. This means that the battery is dead every time I try to use it. Any ideas?