How to listen for key press when air app does not have focus

Hi,
I am developing a application in air and part of the functionality I need is the ability for the app to listen for when a specific key is pressed, even when the air app does not have focus.
Is there support for this for windows or mac? If not, how might this be accomplished? ANE?    

Ok Mr. Smartass...Ok
I'm building a browser that is always open, and when
a user presses Ctrl+F1 (notice, just those two keys,
I don't care what else they press...) the browser
will open up. That way, you don't have to wait for it
to load all the time.You have two ideas here. One is having a universal key map that always gets ctrl-f1 sent to your app. The other is a program that is constantly running so that you don't have to wait for it to open up. The former is not possible (and this is a good thing) As warneria and I have been saying, it is bad design for an app to try to force an OS to implement this kind of feature.
If you're not going to help please don't post at all;
it's a waste of time for both you, me, and anyone
else who may need help on the same subject. Why wouldBelieve it or not, I am helping you.
See
http://www.google.com/search?hl=en&lr=&q=programming+code+side+effects
and
http://www.faqs.org/docs/artu/ch04s02.html
"Doug McIlroy's advice to �Do one thing well� is usually interpreted as being about simplicity. But it's also, implicitly and at least as importantly, about orthogonality."
anyone in their right mind who's trying to steal
people's passwords come out and say, "I'm not trying
to steal people's passwords!"wait, your question is why would someone trying to steal passwords say I'm not trying to steal passwords? I think duplicitous people in their right minds might try to trick you that way.
Beyond that, even if you're not a malicious hacker - and I am sure you are not - if someone posts a solution to your problem, malicious coders then will have learned how to do it. If you think you're programming or using these forums in a bubble, you are not.

Similar Messages

  • Using java to listen for a keypress when the program is not in focus

    I want to set up a program where no matter what other program I'm using, when I press Ctrl+F1 my program will take focus and run another function or two. Is this possible and if so how can it be done?
    Thanks.

    Ok Mr. Smartass...Ok
    I'm building a browser that is always open, and when
    a user presses Ctrl+F1 (notice, just those two keys,
    I don't care what else they press...) the browser
    will open up. That way, you don't have to wait for it
    to load all the time.You have two ideas here. One is having a universal key map that always gets ctrl-f1 sent to your app. The other is a program that is constantly running so that you don't have to wait for it to open up. The former is not possible (and this is a good thing) As warneria and I have been saying, it is bad design for an app to try to force an OS to implement this kind of feature.
    If you're not going to help please don't post at all;
    it's a waste of time for both you, me, and anyone
    else who may need help on the same subject. Why wouldBelieve it or not, I am helping you.
    See
    http://www.google.com/search?hl=en&lr=&q=programming+code+side+effects
    and
    http://www.faqs.org/docs/artu/ch04s02.html
    "Doug McIlroy's advice to �Do one thing well� is usually interpreted as being about simplicity. But it's also, implicitly and at least as importantly, about orthogonality."
    anyone in their right mind who's trying to steal
    people's passwords come out and say, "I'm not trying
    to steal people's passwords!"wait, your question is why would someone trying to steal passwords say I'm not trying to steal passwords? I think duplicitous people in their right minds might try to trick you that way.
    Beyond that, even if you're not a malicious hacker - and I am sure you are not - if someone posts a solution to your problem, malicious coders then will have learned how to do it. If you think you're programming or using these forums in a bubble, you are not.

  • HT201401 i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    hello, the addons manager is exactly the right place to look for it. please try disabling the addons that are listed there one-by-one (a restart of the browser might be necessary after each step). maybe one of them is bundling this kind of adware.
    [[Disable or remove Add-ons]]

  • How to refund to a buyer when paypal details does not show a refund link?

    How to refund to a buyer when paypal details does not show a refund link?

    Yeah, I understand, there is so much more to communication than words on paper.Folks interpret written words according to a whole lot of complicated emotions and feelings. We then project that onto the author and decide why we think they formed that particular combination of words.It is certainly far from perfect.What is missing is volume, intonation, body language, facial expressions, etc. Emoticons are a very big help.I am sorry that you interpreted my tone as abrupt. It was certainly not meant to be. I apologize if I have offended you in any way.I admit my lack of pc. I just did not see this as a social atmosphere, which it  really can be.I was just asking for information. I will try to do better in the future.

  • How do I connect  Apple 20" Cinema Display to orignal MacBook Air which does not have a Fire-Wire port. Is this possible? Any advice would be appreciated. I have the Micro-DVI to DVI adapter. Norm

    I Wish to connect my 6 year old Apple 20" Cinema Display to an orignal MacBook Air which does not have a Fire-Wire port. Is this possible? Any advice would be appreciated. I have the Micro-DVI to DVI adapter. Norm

    The FireWire cable is just for the FireWire ports on the display.  The display will run without it.

  • How to access my hard drive when the system does not work

    how to access my hard drive when the system does not work

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • I just purchased a camera packaged with Adobe photoshop Elements 11. I have a mac book air- which does not have a cd drive. The package did not come with a code or anything that would provide me with another way to install photoshop that came with my came

    I just purchased a camera packaged with Adobe photoshop Elements 11. I have a mac book air- which does not have a cd drive. The package did not come with a code or anything that would provide me with another way to install photoshop that came with my camera. Is there any other way i can install this on my camera without using the provided cd or buying the software again?

    That doesn't help the user with the serial code though.
    There has to be some kind of code somewhere within the package. The disk itself does not contain one. You can look here for help with finding your serial number:
    Find your serial number quickly

  • HT4623 how do you update an ipod touch? Mine does not have the software update under the general tab.  thx

    how do you update an ipod touch? Mine does not have the software update under the general tab. I would like to back it up to Icloud.   Thx

    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    To use iCloud you have to have iOS 5 or later.

  • How can I add location to a photo that does not have a gps location? On iPhoto it was easy.

    how can I add location to a photo that does not have a gps location? On iPhoto it was easy.

    You can use the Settings in the slideshow to Show Captions,  either the Description filed be display, the Title field or both.
    If you create the slideshow in iDVD from still photos from iPhoto you can add the Description and/or Title via the settings in iDVD.
    Since iDVD adds both automatically the user must go thru the slideshow and remove those items not wanted.

  • I tried to add my Planner Plus to my calendar and it gave me a message that says "This app does not have access to your calendars."  You can enable access in Privacy Settings.  But when I go to Privacy Seettings, there are no apps listed under Calendar.

    I am trying to access my calender in the app Planner Plus and I get the message. "This app does not have access to your calendars."  You can enable access in Privacy Settings.  But when I go to Privacy Settings, there are no apps listed under Calendar.  Anyone?

    Oh my gosh. This worked perfectly!!!
    After allowing the changes, I just had to open the apps again (such as Instagram), then the pop-up asking to allow access to Photos appeared!
    And I thought I was going to get rid of my iPhone 4 already because of the issue.

  • I am installing acrobat XI, but is asked for serial number. My DVD does not have it.

    I am installing acrobat XI, but is asked for serial number. My DVD does not have it.

    Find your serial number quickly

  • HT1539 How do you redeem Digital Downloads if your device does not have a DVD drive?

    How do you redeem Digital Downloads if your device does not have a DVD drive?

    If the redemption comes only on a disk, then you will have to get access to a DVD drive, either by borrowing or purchasing one, or by using the Remote Disk feature if you have another computer available that does have a DVD drive.
    Regards.

  • How to listen to key press in JTable

    I've been trying to listen to key press in JTable,
    However it only works if the cell is double-clicked.
    If the tab button is use or the cell is single-clicked, nothing happens to the listener.
    Anybody can help me???
    Thanks

    table.getColumnModel().addColumnModelListener(new TableColumnModelListener(){
      public void columnAdded(TableColumnModelEvent e){}
      public void columnMarginChanged(ChangeEvent e){}
      public void columnMoved(TableColumnModelEvent e){}
      public void columnRemoved(TableColumnModelEvent e){}
      public void columnSelectionChanged(ListSelectionEvent e){
        // column selection changed
    table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent event) {
        // row selection changed
    });rykk

  • How can I install Firefox on a server that does not have an internet connection?

    I run Firefox on a server to display graphs for a program. I was able to save, upload and install Firefox version 21 on my server because it used the executable installation program. Versions 22 and 23 use a stub program that goes to the internet and installs the program. My server does not have an internet connection, so the stub program does not work. Can I get a copy of the executable program that installs the program without having an internet connection?

    hello pkautzman, the full install packets that are capable of an offline installation are available at https://www.mozilla.org/firefox/all/.

  • How to schedule an appointment with a contact that does not have an e-mail address

    I want to use MS Office Outlook to schedule appointments with clients that may not have an e-mail address. They way appointments are made at our office is that a clients calls to ask for an appointment, the appointment book is consulted for the open time
    slots and a date and time is agreed. There is no need to send out an e-mail address even if the client has an e-mail address. Right now if a client does not have an e-mail address Outlook does not even show the option to set an appointment.
    On the day of the appointment the clients are phoned and it would be nice to be able to just click on the appointment and then have the computer make the call via Skype.
    This is supposed to be easier than using an appointment book with a pencil and eraser.
    Al Kaufmann

    Hi,
    It's a good suggestion but currently there's no such feature in Outlook.
    For more information about scheduling an appointment in Outlook:
    http://office.microsoft.com/en-001/outlook-help/schedule-an-appointment-HP010354410.aspx
    Regards,
    Melon Chen
    TechNet Community Support

Maybe you are looking for

  • Attachment missing in Calendar

    I sent an attachment within an Outlook calendar request but it doesn't show up on my iphone

  • Problem using Extract Function

    My problem, declare v_clob clob; begin select extract(xml_details,'/ROWSET/ROW/CTRY_CODE').getStringVal() into v_clob from xml_tab where xml_name='GRN.XML'; end; xml_tab description column xml_details clob xml_name VARCHAR2(2000) This block works fin

  • Auto Complete Text

    How do I turn off the auto complete in texting?  It is a nuisance.  Thanks. 

  • VAT Condition Type

    Hi All, Is there any set off condition type for VAT (JVRD)? regards, Mohan. Edited by: Mohan on Jul 9, 2009 10:43 AM Edited by: Mohan on Jul 13, 2009 12:39 PM

  • Email trigger whenever Production order release step by step settings

    Hi All, Step by step procedure for email generation when ever prod order is released.