Making use of the Key.ALT isDown

I need to make a keyhandler which will respond to the alt key
being pressed, but all i get is the menu. in my experience most
prgrams do not activate the menu's unless the altkey is released
with no other action, OR if alt+? is selected.
So, i am hoping that there is a way to make it so that
alt+arrow_key can be targeted... anyone?
-E

VoxEcho,
> I need to make a keyhandler which will respond to the
> alt key being pressed, but all i get is the menu.
What menu are you talking about? Are you in the IDE? Are you
testing
in a web page? In a Projector?
> in my experience most prgrams do not activate the menu's
> unless the altkey is released with no other action, OR
if alt+?
> is selected.
On WinXP Home, I see the file menu take focus in Flash,
Photoshop, and
Word when I hit Alt by itself. Maybe I don't understand what
you're asking?
> So, i am hoping that there is a way to make it so that
> alt+arrow_key can be targeted... anyone?
Your subject line kind of points in the right direction. :)
Look up
the Key class in the ActionScript 2.0 Language Reference;
specifically, the
Key.isDown() method -- you'll see some sample code. Note:
this is for
*most* cases. For better or worse, though, Alt is the odd one
out. Alt
does not trigger the Key.onKeyDown or Key.onKeyUp event.
You have to constantly check for the Alt key in a loop of
some kind,
such as setInterval() or MovieClip.onEnterFrame ...
this.onEnterFrame = function() {
if (Key.isDown(18)) {
trace("Alt is being pressed!");
... and you have to know that the key code for Alt is 18. A
big difficult,
because that number is mysteriously missing from the Keyboard
Keys and Key
Code Values entry of the documentation.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Im trying to play a game on my laptop and i need to use the keys alt and f4 but when i do that it takes me out of the game and brings me to my settings how can i stop this

    im trying to play a game on my laptop and i need to use the keys alt and f4 but when i do that it takes me out of the game and brings me to my settings how can i stop this?

    Go to the game's option settings and change the settings to something more to your liking. 

  • Making use of the new MDB-Contract

    Dear friends,
    I would like to create a J2EE 1.4 MDB making use of the JMS resource adapter. I'm not able to find any documentation presenting an example. Could you please point me to some code samples? Or if you could provide me an example with the ejb-jar.xml and the weblogic-jar.xml I would much appreciated.
    Thanks!
    Pjrm

    The instructions for setting this up should be available through Yahoo/SBC. Someone else may have the instructions for you, but take a look through the Help sections for Yahoo/SBC and you should find what you need.
    If you get stuck along the way, feel free to ask.
    ~Lyssa

  • What is the use of the key date in filters in IP?

    Hi all,
    can anybody tell me what the key date on the filter in the planning modeler is good for? It seems to be always overwritten by either the key date in the query or the one set for the infocube in the planning modeler. Even if I don't set a key date for the latter two, the infocube date seems to be taken (I get the current day as query key date).
    Or to put it this way: Where do I set my key date when I try to use time-dependent navigation attributes in a planning query? The infocube key date seems to take precedence, but I haven't found a way to derive my key date from the input-ready planning year variable in the query (exit or replacement path won't work).
    Regards,
    Tilman

    Hi Indu,
    many thanks already for your replies.
    Do I understand you correctly that the key date on the filter will only have an effect when used in conjunction with planning functions (not queries)? I was going to use one filter both.
    I turns out that my problem is rather how BI evalutates the key dates in the query/infocube/filter, and while I might not have the problem with planning functions, I do have it once I try to use key dates on an input-ready query. Since my key date needs to be derived from the planning year variable on-the-fly, only an exit variable used on the query's key date seems to be able to to this (variables in the infocube's key date get evaluated before the query's variable screen is displayed) . Unfortunately, it gets overwritten by whatever is set as key date in the infocube, and the filter's key date does not seem to matter at all.
    Further, this seems to be a very IP-specific problem. Not only that normal reporting does only offer one key date (query), if you "manage" to break characteristic relations of your planning cube in a way that input-readiness is no longer provided, things work JUST AS DESIRED....The query's key date takes precedence, and time-dependent navigational attributes get displayed with their correct value.
    This can't be right. I do not think that the case of having to use time-dependent navigational attributes in a planning query is rare, so I might have to open a ticket...
    Regards,
    Tilman

  • N70 - Use of the # key to swithch profiles

    I used to be able to switch Profiles on my phone between General and Silent (a really useful idea) by pressing and holding down the # key for 1 to 2 seconds.
    Since updating the software last week this functionality has been lost.
    Can anyone recommend how to get it back?
    Regards,
    pacman

    The Orange variant firmware uses the # key to switch lines... there's no way around that apparently
    I believe the most recent version of the Orange firmware allows you to switch off the variant features though... so that could be something to look in to.
    Nokia History: 3110, 5110, 7110, 7110, 3510i, 6210, 6310i, 5210, 6100, 6610, 7250, 7250i, 6650, 6230, 6230i, 6260, N70, N70, 5300, N95, N95, E71, E72
    Android History: HTC Desire, SE Xperia Arc, HTC Sensation, Sensation XE, One X+, Google Nexus 5

  • Trapping and making use of keyboard keys in java

    hello friends,
    wish to seek your advice and help once again. i'm trying to create a 'calculator' application using java. i've created buttons that represent such keys like: '*', '/', '\', '+', '-' etc. and '1', '2', '3', '4', '5' etc. but i don't know what to do so that when i click on the button '2' and then the button '*' and again the button '5' and finally on the button '='; it will know how to multiply '2' with '5' and give me a result of '10' on the textfield. please, any advice from someone will be appreciated. thanks in advance.

    If it's just clicking on a button you're asking, you need to add an actionListener to each button, then in actionPerformed() you need to identify the button to determine what action to take
    e.g. if the button is 0 to 9, displayTextfield += button.getText()
    if the button is +, currentTotal += displayTextfield.getText() etc
    I have a working calculator at a website, which might give you a few ideas. A lot of the code deals with a strip list, and the order of the + - / * = keys
    e.g if I want to deduct 2 from 4, the keystrokes are 4+2- , not like small calculators 4-2=
    http://michael-dunn.freeservers.com/java/Calculator.htm

  • Mtl-secondary_locators - making use of the "primary_locator_flag' column

    We are using Oracle Inventory and I would like to assign an item to a subinventory against several locators. I would like to be able to assign one of these locators as the default locator for that part within that subinventory (not within all subinventories). I have looked at the table mtl_secondary_locators and it appears there is a column to do this but I cannot for the life of me find the form which populates it!
    I have tried both the item subinventories and stock locators forms from the Inventory responsibility but still am having no luck.
    Can anyone please advice?
    Thanks,

    Hi all,
    I am facing a similar issue in Oracle Configurator.
    Error 
    The column(s), START_DATE_ACTIVE, must exist. The missing column is either required by the database or required based on the data that is being imported.
    Is there a solution ?
    Please help.
    Thanks,
    Rajesh

  • Inserting data into subtypes by making use of the super type

    Dear All,
    Let's say I have the following statements defining two object types and create two tables for them:
    create type t1 as object(x number) not final;
    create type t2 under t1(y number);
    create table t1t of t1;
    create table t2t of t2;
    I know I can use insert into t2t values(t2(12,12)) to get a new row.
    However, let's say I have run an insert into t1t values(t1(12)) and I want to make use of that object in the insert for t2t (something like
    insert into t2t values(t1value,12)). Is this possible?
    Jim

    >
    That works, but do we need to repeat all the data in t1's constructor? In the trivial example it is easy because t1 has a single argument but if you are meant to be typing everythinh again, you might as well do the full insert. Is there not something that will give you the value of the object you need (something like select value(e) from t1...)?
    Another idea that I am going to try is various member methods so that if you know the ID of the superclass objects you get the information; still can not beleive there is no function that will give me the values of the superclass.
    >
    You are using the default constructor.
    Just create your own constructors. Create several of them if you want: one that takes a T1 instance. Then you can provide that T1 instance statically or from a query and the constructor will access the values without you needing to specify them.
    You could also create your own constructor so that if you only provide one value the constructor calls 'super' and creates some 'default' T1.x value.

  • CG36 - Import report - No file format in the key file?

    Hi all,
    Transaction CG36: .Key files are successfully checked by u2018Check directoryu2019 in transaction CG36. The second step is the import process. The Import shows u2018greenu2019 successfully. But the Job description shows the following message:
    No file format in the key file test.key
    Number of errors: 0
    Job Finished:
    More details:
    No file format in the key file test.key
    Message no.C114
    Diagnosis:
    No entry for the document file type was found in the key file test.key
    System response:
    The report for the key file test.key is not imported.
    Procedure:
    Ensure that a document category is entered in the key file test.key
    TEST.KEY - Key file structure:
    CPN=TEST
    DTY=SDB
    SID=000000000492
    PRN=TEST PROD
    CTY=GB
    LAC=E
    STA=V
    DAT=19.03.1996
    FNA=1.PDF
    FTT=PDF
    During the report import (CG36, Dok-X), the workstation application is defined using the FFT entry in the key file, as displayed above, the key file as FTT=PDF defined correctly.
    We have processed the customizing settings which are required and described under: Report Import: Check Additional Settings (under EH&S u2013 Product Safety > Interfaces > Import and Export > Basis Settings for Import and Export).
    Is anybody familiar with the issue: No file format in the key file?
    What do I do wrong? Is the above Key file structure incorrect?
    Is configuration in SAP DMS required?
    Thank you in advance.
    Kind regards,
    Roy Derks

    Hello Roy
    my assumption would be: there is a typing error in the key file. If the content of the key files is like what you have published you must use in the key file
    FFT=PDF
    and not
    FTT=PDF.
    No further information is necessary and the other data seems to be perfect.
    With best regards
    C.B.
    PS: if necessary my be you could check DMS customizing. By standard EH&S implemenation a document type "IBD" should be there whiich is used for e.g. pdf file.
    PPS: I have no idea why the reimport check does not show up this issue.
    Edited by: Christoph Bergemann on Apr 8, 2010 8:49 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:50 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:54 PM

  • How to set the Key Photo in .Mac Web Gallery ?

    Has anyone managed to set the key photo in a .Mac Web Gallery album ? The key photo is the photo used on the main page of the Web Gallery to illustrate the event.
    In iPhoto, all you do is select in the left column a published .Mac Web Gallery, right-click on the photo you want to set as the key photo, and select "set as key photo".
    In aperture, you can do the same in a project, but this will only set the key photo for your "all projects" view. This key photo is not used when exporting the project to .mac web gallery.
    In all the web galleries I export from Aperture, the first picture is used as the key photo, it's really a problem. Any solution ?
    Message was edited by: skiss

    There is a small "Header Bar" if you will in iPhoto, you can drag the photo you want to that header bar and I think that accomplishes what you want if I understand what you mean by Key Photo (the photo that shows up in e-mail if you forward the gallery to others). My wife and I stumbled on that solution as we were trying to figure it out. Actually I think wife gets the credit, she had the mouse in her hand when it happened .

  • Making Useful life field optional in Asset master creation(AS01)

    Hi all,
    I want to make 'Useful life' field in 'Depreciation area' tab as optional in AS01 (Asset master).
    1. I made the screen layout changes using AO21 and made Useful life optional
    2. I assigned the above screen layout in OAYZ
    Despite doing this, during asset master creation, the field still shows as 'Required' and not as 'optional'.
    Am I missing anything else?  Kindly provide some pointers.
    Thanks,
    Sridevi

    Hi Sridevi
    Please check your depreciation key. If your depreciation is based on useful life, the key is required regardless the field status.
    Thanks
    Sanjeev

  • Using UITouch as key in NSMutableDictionary?

    I'm storing some information about touches, and am using the fact that the touch objects are the same ones for the same touch. Now I wanted to make this more efficient by using the UITouch as the key in a NSMutableDictionary for faster lookup - but that doesn't work. Apparently, the dictionary tries to copy the object, but it throws an exception in some copyWithZone method.
    I guess I could encapsulate the hash value in a simple class to use as the key, but I wonder if there is a better way to do this? Also, why does NSMutableDictionary try to copy the object that's used the key? Why doesn't it simply store the pointer?

    From the +iPhone Application Programming Guide+
    In your event-handling code you can store relevant bits of touch state for later comparison with the mutated UITouch instance. As an example, say you want to compare the final location of each touch with its original location. In the touchesBegan:withEvent: method, you can obtain the original location of each touch from the locationInView: method and store those in a CFDictionary object using the addresses of the UITouch objects as keys. Then, in the touchesEnded:withEvent: method you can use the address of each passed-in UITouch object to obtain the object’s original location and compare that with its current location. *(You should use a CFDictionary object rather than an NSDictionary object; the latter copies its keys, but the UITouch class does not adopt the NSCopying protocol, which is required for object copying.)*
    http://developer.apple.com/iPhone/library/documentation/iPhone/Conceptual/iPhone OSProgrammingGuide/EventHandling/EventHandling.html#//apple_ref/doc/uid/TP400070 72-CH9-SW17

  • Load LiDAR data into Spatial 11g making use of Point Cloud Type?

    Dear all,
    from an aerial LiDAR scan I have approximately 226 million points, spread over 9 files. I would like to load them into Oracle Spatial 11g, making use of the new point cloud data type. I have the book "Pro Oracle Spatial for Oracle Database 11g" here and Appendix E explains how you have these two tables that together manage your point cloud. I find the example given in the book rather simplified though as they have only x, y and z and a row id colum. In addition to this I also have r, g, b and i (intensity) values.
    I was wondering if anyone could give me a hint on how to store all the information in one table and making use of the sdo_pc data type at the same time.
    Also, the example has the points already in a table, but I'd like to load it all directly from my files into the point cloud table (I know how to use sqlldr, but how do I get it into this point cloud table structure). What's the cleverest way to go about this?
    All ideas are greatly appreciated!!
    Regards,
    Bia.

    Hi,-
    Our LAS converter supports LAS 1.1 format.
    LAS version 1.0 has fewer entries for the data than LAS version 1.1 so you might just ignore those extra fields that donot exist in LAS 1.0.
    Therefore, i am expecting your data to be fine with our LAS to SDO_PC converter.
    Thanks

  • Question: How does the "KEY-COMMIT" trigger work?

    Hello All,
    What is the “KEY-COMMIT” Trigger for the BLK_UPDATE data block for? When is the Trigger being activated? Where can I find the information regarding the "KEY-COMMIT" Trigger (FYI, I have looked at the ORACLE Form online document and the help in the Forms 6i Builder, but so far I found nothing)?
    Any information regarding to the "KEY-COMMIT" Trigger would be greatly appreciated!
    Thanks in advance,
    Jinlan
    --

    From my other post, I got the following information from Andreas Weiden and just want to share with you all here:
    "If you want the code inside your KEY-COMMIT-trigger executed, you will have to do a DO_KEY('COMMIT_FORM'); instead"
    This information really clarifies the def and use of the "KEY-COMMIT" trigger. Great thanks to Andreas for sharing.

  • How do I clear the control alt delete key downs when using input acquire.vi?

    I am trying to monitor keystroks...  When I use the Input Acquire.vi after I log in to my system it says the Control LAlt and the Delete key are down and my code does not like that because the keyboard value is not corect...the Keypressed array always has 3 keys down....
    Is there a way to clear them or send key ups some how to get rid of them.
    Thanks for any help you can provide...
    I am using Labview 8.0
    Thanks
    Eric Horwitz

    There is no way that you can press multiple buttons at exactly the same time. Which keys are you trying to press? Are you talking about "PlatMods" (shift, ctrl, etc.)?
    Keep a shift registers with the states of the desired buttons in a boolean array and change the respective elements to true or false, depending on key-up and key-down events. On the Key down events, check if all elements are true and act accordingly.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • HP 2730p external Monitor problems Intel GMA 4500

    Hi, So far I'm really happy with Archlinux on my Laptop (HP 2730p), but I can't get it to work properly with my external monitor The monitor (HF287) is detected and connected just fine, but that's about it According to the OSD of the monitor it's run

  • How to allign UI Elements

    Hi, Can you please tell em how to allign UI Elements? I wan to provide some space between two Buttons or labels and Input Field. I am using either Flow Lay out of Matrix Layout

  • Mountain lion messages cannot sign in

    Just updated my Mac Pro to Mountain Lion.  The messages app begins to walk me through setup, but when I try to log in using my apple ID, it says "Could not sign in.  Please check your network connection and try again." I have tried my apple ID, my me

  • Implement a Pop-Up LOV in a report.

    Hi, I would like to use the 'HTMLDB_ITEM' item to generate a textfield with a link to a Pop-Up LOV in an Apex report. Anyone ever tried that before? Thanks. Edited by: Jacky411 on Jan 14, 2009 2:49 PM

  • Motorola Input Disappeared

    I downloaded ICS earlier this week on to my Droid 4.  The "Select Keyboard" notification kept popping up and it was annoying me, so I looked around on line to see if there was a way to make it stop.  Someone suggested disabling the "Motorola Input" a