Is it possible to catch ALT or ALT_GR pressed event?

I want to pass focus to the "File" menu when ALT or ALT_GR is pressed, but KeyEvent considers it as a modifier only. Please help me.
Oleg

Have you tried to check for VK_ALT_GRAPH ?

Similar Messages

  • It is no longer possible to use ALT + N and ALT + P from the "get info" window.

    On a PC, previously, when in the "get info" windows, it was possible to use ALT + N and ALT + P to switch to the song information for the next and previous song.  Since the update to the newest iTunes, it's no longer possible.  Has anybody found a keyboard shortcut that works?  The "keyboard shortcut" thing in iTunes says you can still use ALT + N, but it doesn't seem to be working for me.  Is it working for anybody else?

    You're welcome.
    tt2

  • Catching Alt Key Press with the Key Down Filter Event

    I am writing an application that requires specific key combinations using ctrl, shift, and alt in addition to a function key (F1, F2, F3, etc).  The application works great except for when I try to catch an alt key press.  The alt key press does not seem to fire an event eventhough it is an option in the PlatMods cluster as well as the VKey enum.  When I press the alt key when my application is running the cursor changes to a normal mouse pointer from the usual finger pointer and prevents any other key presses from going through (in addition to not firing an event itself).
    I have tried completely removing the run-time menu, which doesn't seem to help.  I currently discard all keys after I handle them in my event structure.
    I really hope that the only solution isn't using a Windows DLL.  Any suggestions or ideas at all would be greatly appreciated.
    Thanks,
    Ames

     Hi Ames
    As Kileen has said Khalid has already given you a good solution to detect the ALT key.
    I have another approach that might let you stick to your event-driven approach. I suggest that you have another loop in your app that polls the keyboard using the Input Device utility vi's. When this poll loop sees an ALT + KEY combo it raises a dynamic user event and will be processed in your event structure. This means you can keep your key down filter event to process the CTRL + KEY and SHIFT + KEY events.
    Example attached in 7.1
    cheers
    David
    Attachments:
    Catching Alt Key Press Poll with Events(151551).vi ‏89 KB

  • Possible to catch parameters exceptions in the program ?

    Hi,
    Oracle 10g r2.
    I have some procedures/functions like :
    function insert_op (op_name in varchar2, op_date in date, op_length in number) is
    begin
    end;If I call for example :
    insert_op('test','02/05/2010','hehe')I will get an error (invalid number). Normal.
    My qyestion is, is it possible to catch that exception in the function ?
    The fact is that my function is called from an input button in my apex application, so if user enter wrong values in the form, I can't catch the error except using Javascript.
    Or should I pass all my parameters as varchar2, and then make functions to ckeck if it is valid numbers, dates, etc... :/
    Thanks.
    Yann.

    function insert_op(op_length in number) return varchar2 is
    temp number;
    begin
    temp := TO_NUMBER(op_length);
    return 'ok it is a number';
    exception
    when others then return 'not a number';
    end;Define the op_length as varchar2
    create or replace function insert_op(op_length in varchar2) return varchar2 is
    temp number;
    begin
       temp := TO_NUMBER(op_length);
       return 'ok it is a number';
    exception
    when others then return 'not a number';
    end;And further most important thing is dont use WHEN OTHERS. Use the specific exception. In this case VALUE_ERROR.
    I have done such thing in the past. Here is that code.
    create or replace function is_number(pVal in varchar2) return number
    as
       lNum number;
    begin
       lNum := to_number(pVal);
       return 1;
    exception
       when value_error then
               return 0;
    end;Edited by: Karthick_Arp on Mar 1, 2011 5:26 AM

  • Possible to catch all XI error message?

    Is it possible to catch all XI errror  and save it, including abap proxy runtime, j2ee adapters.
    anybody give me a clue?

    Hi Shen Peng,
    Please refer to below table for logs. Ideally you are not recommendated to make any changes to these tables.
    If you are looking to show all possible errors to your customer then, prepare a report based on the Early Watch Alert report and show it your customer at high level and if you try to show every alert/log that generated in the system to the customer then you it will be high task for you to explain each and every entry.....I rather suggest you give the high level report.
    Because many alerts/logs are temporary and not that critical to explain to the customer unless it's impacting the business.
    ABAP -Syslog entries
    TSL1D and TSL1T - syslog entries
    Java related log files
    XI_AF_MSG_AUDIT  audit log entries
    BC_MSG_AUDIT  PI 7.1 audit log entries (**) 
    SXMSALERTLOGGER  XI alerts log 
    I hope this info helps you.
    Regards
    Sekhar

  • Mnemonics don't appear until alt key is pressed

    In a swing application, mnemonics have been given for all the JMenuItems. When the application is started, the underlined mnemonics do not appear until the alt key is pressed. Can any one throw some light on this strange behaviour?

    However, I don't want any text (either a preview of the message or even who the message is from) to appear in the lock screen.  I just want an audible or vibration alert to sound.  I do still want a banner alert when not in the lock screen.  Is this possible?

  • Try/catching errors occuring in synchronous event handlers

    Hi,
    I know that using try/catch in flash player it is possible to catch only synchronous errors, but recently I ran into code in our application which I strongly believe is synchronous but it behaves as if it wasn't.
    In example below I create event listener and inside try/catch I dispatch event. Handler function throws error. Executing code stops when error is thrown, so message "after throwing error" won't be logged, but try/catch block catches nothing and code executes as if nothing happened after event dispatch.
    Dispatching event on element executes handler method immediately so it is synchronous execution. Event call stack which is displayed in debug versions of flash player, shows every function from creation of class to execution of handler.
    Generally flash applications relays heavily on events and in my case it caused ours users projects to be irreversibly corrupted, because of this continuing to work after error, which I even can't properly detect and handle, cause it's going throught 5 or more event handlers and adding try/catch to each handler would create enormous chaos in my code. So my question is why does flash player behaves like this? Are there any ways to tell compiled SWF file to treat such cases as synchronous calls, f.e. compilation parameters?
    package
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.EventDispatcher;
        import flash.text.TextField;
        public class TestApp extends Sprite
            public var cTextField:TextField;
            public function TestApp()
                cTextField = new TextField();
                cTextField.width = 300;
                cTextField.height = 200;
                addChild(cTextField);
                onAppCreated();
            protected function onAppCreated():void
                var eventName:String = "my_event";
                var caughtError:Boolean = false;
                var dispatcher:EventDispatcher = new EventDispatcher();
                dispatcher.addEventListener(eventName, handler);
                try
                    dispatcher.dispatchEvent(new Event(eventName));
                } catch (error:Error)
                    caughtError = true;
                cTextField.text += caughtError ? "caught error\n" : "error wasn't caught\n";
            protected function handler(event:Event):void
                cTextField.text += "before throwing error\n";
                throw new Error("throw error");
                cTextField.text += "after throwing error\n";

    Okay, nobody bit.  Sorry. 
    The only way to really figure out what is going on is to look at a running example with a C++ debugger.  I'm particularly curious about whether this problem happens in a specific browser/os combination (we may be working around a quirk of that platform), or if it's something that happens everywhere.
    The most effective way to proceed is going to be to file a bug with a simplified, executable example (source and compiled SWF, ideally) that demonstrates the problem.  This will help me route the bug to a developer and get you an answer in the shortest time possible. 
    You can file a bug here:
    http://bugbase.adobe.com/
    If you reply here with the bug number, I'll get it assigned to an engineer.
    Thanks!

  • What happens to a mail item, Fn-Ctrl-Alt-Del is pressed

    What happens to a mail item, when Fn-Ctrl-Alt-Del is pressed while in the mail tool? I can't seem to find the email file anywhere.
    Is there a way to disable this key pattern in the mail program?

    What happens to a mail item, when Fn-Ctrl-Alt-Del is pressed while in the mail tool? I can't seem to find the email file anywhere.
    Looks to me like I permanently deletes the message.
    Is there a way to disable this key pattern in the mail program?
    Is this really a key combination you find it easy to press by mistake? To answer the question, no, it doesn't look like you can remap that, but note that if you choose Edit -> Undo immediately after deleting, the message will come back.

  • Is there any possibility to see full details about the event?

    ipad calendar:I have no chance to read the event location fully on my ipad. It is cut and finishes with "...", thus very important meeting  number cannot be seen. Is there any possibility to see full details about the event?

    Thanks for quick reply.
    Looks like opened the event. Here is a screen shot, I marked the cut numbers with red cirsles.

  • Why i am unable to catch the 'TAB' key press?

    hi
    i have an application where i have 2 text fields and one button in order say t1, t2 and b1.
    on tabbing t1 cursor moves to t2 and on tabbing t2 cursor moves to b1 and on tabbing b1 cursor moves to t1.
    now when i press tab button on any of the component i have written a keyListener for that to catch 'TAB' key using the comparision
    if( e.getKeyCode() == KeyEvent.VK_TAB )
    but its not catching the tab key pressed on any of these 3 components....
    why like this...
    i want to catch the press of 'TAB' key and write some action for it... but unable to catch the 'TAB' key press.
    anyone could help me in this....
    thanx in advance,
    -Soni

    I seem to remember this question being asked before. I think the answer was that the FocusManager intercepts the TAB key. I don't remember the solution but you can try searching the forum.

  • Is it possible to edit the calendar that an event is on from the phone?

    iPhone 2.0: I hope I'm not missing something here (though, I guess I hope I am), but is it possible to change the calendar that an event is on, after adding it to iPhone? In other words, first adding to Calendar an event to any of several calendars I have on my phone ("Home," for example), then going back to edit it to change the calendar to "Work," all from the phone itself? Going back to edit an event allows changing Title/Location, Starts/Ends, Repeat, Alert, Notes. Any thoughts? Thanks!

    The option to change the calendar in edit mode is missing, which is a glaring oversight by Apple. I really makes no sense to omit this option. I will be very disappointed if it is not added in the next update. You either have to delete and add it as a new event in the proper calendar, or edit it in iCal on the computer.

  • Is it possible to damage iPhone screen by pressing too hard?

    I have an iPhone 5s and I take really good care of it and want it to last a long time. I have an Otter Box and a screen protector and stuff to keep it in good condition. Sometimes, if I press the screen a little bit harder than usual, I notice that it looks liquidy for a second and the colors become wavy and distorted for a moment. The condition goes away after I release the pressure. Could I be damaging the screen when this happens?

    dsyanick wrote:
    But is it possible to damage the screen by pressing too hard, regardless of whether you have a screen protector?
    Absolutely. You're talking about a glass screen over sensitive electronic components. It would be rather difficult to do with a finger, though.

  • Is it possible to get KM change file permissions event?

    Hi,
    I would like to get in my code events when file permissions are changed.
    Please could you answer or to advice some workaround if it's not possible?
    Thanks.

    Hi,
    There are no events for permission changes in KM.
    You have to find some way of custom development for this. May be something related to security manager kind of. I am not so sure whether security manager helps.
    Regards,
    Yoga

  • How can i catch the gotfocus and lostfocus events

    Hi Dear;
    i tried to catch the gotfocus and lostfocus events, but i can't.
    in the same code i can catch the onclick events.
    is there any special code for the gotfocus and lostfocus events?
    regards;

    Danny;
    Whenever I have an issue such as this I fire up the event logger and it will show you exactly which events you can put your hooks into.   If you are not using it you should really check it out.  Will save you tons of time.
    https://www.sdn.sap.com/irj/sdn/businessone-tools
    I know it's not the exact answer you were looking for but I hope it helps.
    Wayne

  • I would like to copy pictures stored in Events in iPhoto '11 on my iMac to my MacBook Pro which is running iPhoto '09.  Is this possible without losing the organization of the Events?

    I would like to copy pictures stored in Events in iPhoto '11 on my iMac to my MacBook Pro which is running iPhoto '09.  Is this possible without losing the organization of the Events?

    Only way to do it:
    Export each Event to folders in the Finder from the iPhoto 11 machine, copy those folders to the 09 machine. Import them.
    Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.

Maybe you are looking for

  • Error while starting java instance

    hi,All, Jstart.exe is stopped. i tried to restart but it was yellow for sometime and again became grey. Please find the logs here. trc file: "dev_jstart.new", trc level: 1, release: "710" sysno      00 sid        CE1 systemid   562 (PC with Windows N

  • Oracle forms 9i on IE 8

    Dear All, We are using Oracle 9iAS as middleware and Internat Explorer (IE) 6 as client web browser on windows XP. The Jinitiator version is 1.1.8.16. Our client organisation is now planning to upgrade to IE 8. However, all I have researched till now

  • Urgent - - - help plzzz !!!!!!

    HI SAP Gurus, I had been asked to create a new project in XML forms builder. I had created a project and i have specific two issues there, i had created link for email id . when i press the link then i am getting the new window where everytime my nam

  • Image Quality Difference Among File Formats.

    I'm creating a title sequence in After Effects that uses a series of still images. I've been using TIFF formatted images and was pleased with the quality. On the other hand,  I've started to try to use Photoshop EPS images because it's easy to create

  • How can I get my phone to ring so I can hear it?

    I cannot hear my phone ring and no sound when I get texts. Volume is set to high.  What do I have to turn on?