Binds the function of a key on the keyboard for a button of the application

Is it possible to link the function with a key press of a button clicked in a flex/air application?

The reason I ask is that my request will be placed on a Linux system, but the guy who owns this system has a program on the desktop that is bound to the F10 key sense whenever you press F10 this program is open. He wants to be able to make it's move from the application of this program from the application itself, while maintaining my created application open in the background.

The problem is that this system will soon be operated by remote control there will be no F1-12 keys avaiable some letters and numbers. So what I have to do is create a button which when clicked operates the F10 key. The idea is that the user can switch between this program and the interface without actually seeing the Office at all. Is this possible?

Is so how could it be applied to this button in the following code? :-

<? XML version = "1.0" encoding = "utf-8"? >

< mx:WindowedApplication

' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute "

>

< mx:Button id = 'switch' " horizontalCenter =" 0 "red =' 0 " label =" switch " " "

/ >

< / mx:WindowedApplication >

I think Javascript might have the same problem, but perhaps mean you Java (two totally different animals).

You need the java.awt.Robot class. The keyPress() method will simulate a keypress.

You can probably find it fairly fast.

If this post answers your question or assistance, please mark it as such.

Tags: Flex

Similar Questions

  • Description and title of the application do not take effect in location

    Hello

    I can't search messages according to my topic relvant. Maybe I had walked into the wrong keywords. So, I post my question here, and wish a certain can provide assistance. Thanks in advance!

    In short, my question is: why it does not work when linking the application title and description with the resource key for multi-language.

    ------------------------------------------------

    Here is the detailed information.

    Firstly, the development environment is the last JDE plugin for Eclipse. It has been tested with phones as real Simulator, with different OS (4.5, 4.6 and 5.0), and all have the same result. So I chose the Simulator as example to explain my problem.

    The steps are:
    1.) create a BB project and create resources (.rrc and .rrh) files, for the English and the French, which contain only two resource. (See the image below).

    2.) bind the application title and description with the relevant resource key. (Leave the default title and description blank)

    3.) launch of the Simulator to check the result. At first, English language, go in "Options-> Applications-> (press the name of my test application). Please note that the description of the application is "not available".

    4.) change the language for the French, the name of the application has changed in the application list. But when you check the description of the app again, it is not always as expected.

    5.) then I add content to the default title and default description.

    6.) start the Simulator again. Please note that the description using the description by default, but no link.

    7.) change the language to French again. The description still not in force.

    So, do you have advice for this problem? Any suggestion is really appreciated!

    A correction to my previous post.  The localized names and descriptions are provided with the ALX file, but are not met in the JAD file.  This is why you must use an installation method that uses the ALX file.

    For deployments of the JAD file you need to detect the language accepted (via the HTTP header) on the web server and serve a JAD file that has the appropriate language populated.

  • Could not test the application on the device in draft mode

    Hi all!

    I have an application already published for BB10 devices, and I want to add support for the Playbook and test it before release.
    In the portal provider I have download the new .bar file and select all devices (Playbook too). The application modifies the State in project mode.
    Then to the Playbook I pass the link to http://appworld.blackberry.com/webstore/content/xxxxx, where xxxxx is the application ID and see my candidacy in AppWorld, but I couldn't download and test, rather download button I have a message: this application does not support this device profile.

    What I did wrong?

    Thank you!

    I solved this problem, thanks to Garrett.

    Before you bind the application in the browser, it needs to open AppWorld and type 'tst' and press 'return '.

    After that, if a link to the application in the browser, it will be aviliable in test mode.

    http://supportforums.BlackBerry.com/T5/BlackBerry-world-development/how-to-live-testing-the-payment-...

  • A search criterion and the result as a table in the header. Wanted to bind the result table to bean to access the value of the key

    The search criteria and the result is displayed in the table in a group header.  I want to get the value of the selected row and analyze the value of Vo in the next page for a variable binding. So I need to manage the value biniding to the bean tbal, but there is no option to bind the table to a bean. So, how can I get the selected value.

    Kind regards

    K M Krishna.

    First tell us your version of jdev, please.

    to get to the selected line you need not to link the table to a managed bean. You can for example drag the necessary attributes of the VO on the page and drop them as components of a inputText. the framework then generated the attribute bindings and sets the values of the current row for them. As you do not really need the inputText elements switch to source view (! it is essential!), then remove them. This will eliminate the Visual component, but attribute bindings are stored.

    Know you can access the values through their EL or as you get the value of an attribute via it's mandatory.

    Timo

  • Assign the function button to an Application program

    I want to attribute a function F1 key to f12, an application program - not a Microsoft application. We will consult the application here AP program. The AP allows me to specify a key or combination of keys that it will react to and perform a predefined operation. I am currently using CTRL + END and works very well. However, I often fat-finger the CTRL key and get something total tied and undesirable. So, I would assign a F1 - F12 key instead of CTRL + END to the AP. No CTRL, just ordered one.  I am F10 and when I use it, the AP does not respond as it does when you use CTRL + END.

    My question is NOT how to tell AP using F10. I know how to do this. Apparently another program 'owner' F10 and I would like to find how to "remove the attribution" that and assign it to the square to the AP. I'm not keen to experiment all 12 Fkeys, I could fall on whoever's doing something destructive.

    TIA,

    Phil

    F1 to F12 are not attributed to the global level.  Each application will decide for themselves.  Example: F2 is 'rename file' when you are inside a folder, but F2 is also "edit form" within Excel and 'move current paragraph"within the word.

    There is no way to 'Cancel' the F2 key: it changes automatically according to what type of program you are watching.

    When you press F5, the keyboard sends the order to the currently active program.  The program can decide to do anything he wants with it (or ignore it completely).  If the person who built the application that you use to add a subroutine "what to do when you press an F key' to the program.

    BUT!  You can also use a program like AutoHotKey to create a global macro.  So you can set it so that when you press F3, AutoHotKey intervenes, engulfs this command and sends a Ctrl-end signal instead.  Pretty cool feature and it could be what you need.

  • bind the parameter to dynamic sql

    Dear user

    I want to bind the variable at run time

    the problem is as follows:-

    I have a table like this: -.

    type_id, rule_dtls, rule_id, using_paramter

    rule_id and type_id is an idea just to the rule and object

    using_paramter:-is parameters used to bind the variable to the rule, it may be different

    as examples of data the spouse;

    using_paramter can be different parameter as AREA, BOARD_NO or face_no,

    rule_id, board_type, rule_dtls using_paramter
    17CASE WHEN: BOARD_NO < 1000 then 10 when: BOARD_NO > 1000 then CEIL (: BOARD_NO/5000) * 5 endBOARD_NO,BOARD_NO,BOARD_NO
    25
    WHEN BOX: AREA < 3 then 15 when : AREA > 3 then (: SPACE - 3 * 2) + 15 end
    BOX, BOX, BOX

    and I have the function of database 10g as follows:-

    CREATE OR REPLACE FUNCTION    get_bord_price(area number,face_no number,BOARD_NO number,BOARD_TYPE_v varchar2) RETURN number  IS
    amt number:=0;
    sql_v varchar2(500);
    BOARD_RULE varchar2(500);
    using_clom varchar2(500);
    price number;
    ERR varchar2(500);
    ERR_CODE NUMBER;
    BEGIN
    price:=0;
    select rule_dtls ,using_paramter into BOARD_RULE,using_clom from BOARD_RULE where BOARD_TYPE=BOARD_TYPE_v;
    sql_v:='select '||BOARD_RULE  ||' from dual';
    execute immediate sql_v 
    INTO price
    using using_clom;
    RETURN price;
    exception when others THEN
    ERR:=SQLERRM;
    return 0;
    END;
    
    
    

    the error is in

    using using_clom;

    How can I bind varable this:

    or is there another solution

    Hello

    Bind variables cannot be a variable.

    Identify the parts to be replaced (e.g.,: BOARD_NO,: AREA) and write statements to REPLACE to replace those.

    Manu.

  • slide show by using the keys on the keyboard for nav in flash professional CS5 with animated images

    recently, I discovered how to create a slideshow using the keys on the keyboard for the market front and rear in flash professional CS5 thanks entirely to kglad of this forum. I used still images for each slide, since, then with one of the slides, I added a slight undulation of water in one of the images in a separate document. is it possible to include this file in my slideshow now?

    original questions and answers using still pictures below

    I'm a graphic designer who has a presentation of my portfolio. I'm not too experienced in flash and do not use it much, but he needs to do this on the thing. I can do a fade in and out slide show, but I want to create a slide show where the screen remains out of the blade and does ' t until what I press the next or previous button. I don't want these keys on the screen, I want to be able to press a key on the keyboard as F1. is this possible and do you know in adobe flash Professional (or other adobe products) where I could get resources/tutorials to do. Any help so what would never be great.

    response

    create tweens to fade for each slide.  You'll probably want to fade out the image on image 1 (from frames 1 to 11).  Bland-in the image of frame 11 frame 1 to 11.  fade the image frame 11 11 to 21 etc.

    You can then use:

    var image: int = 1;

    var dir:uint;

    stage.addEventListener (KeyboardEvent.KEY_DOWN, downF);

    function downF(e:KeyboardEvent):void {}

    {if(e.keycode==Keyboard.Left)}

    dir = Keyboard.LEFT

    Frame = Math.Max (Frame-10, 1);

    this.addEventListener (Event.ENTER_FRAME, nextF);

    } else {if(e.keyCode==Keyboard.RIGHT)

    dir = Keyboard.RIGHT;

    Frame = Math.min (this.totalFrames, Frame + 10);

    this.addEventListener (Event.ENTER_FRAME, nextF);

    }

    }

    function nextF(e:Event):void {}

    {if(dir==Keyboard.Left)}

    prevFrame();

    } else {}

    nextFrame();

    }

    {if(this.currentFrame==Frame)}

    this.removeEventListener (Event.ENTER_FRAME, nextF);

    }

    }

    you have the fla that created the swf file?

    If so, just copy images from this fla and paste into a new movieclip in your fla slideshow.  Add this movieclip to your timeline.

  • Bind the control to the chronology of the effects with the chronology of the sequence

    This should be simple, but I can't work on how do it. First CC missing this obvious feature or am I a fool (don't answer that)...

    So, here I am, the editing effects - say for example I want to stay in an audio quickly melted and melted to hide the little noise. I want to zoom on the chronology of the effects that I can tune the exact position of the keyframes.

    The zoom in the effects window slider is time consuming and is not automatically Center on the frame that is currently selected in the sequence, in order to keep track of it and ending once zooms are really hard. Zoom on the chronology of the sequence control does not have these problems.

    SO, as I'm sure there is a good reason why my timeline effects and the chronology of the sequence does not relate normally is there a way to force this so that when I zoom the sequence of the clip (If selected) in the timeline panel?

    I don't make any sense?

    Any advice (other than "have you tried turning market again?") received with gratitude.

    Howie

    As Jim said, there is no way to bind the zoom level of the effect controls panel and the timeline. And you're right that zoom through the horizontal slider can be clumsy, lose the read head. However, if you zoom in/out keys, around here! The read head is properly centred.

    As for not being able to zoom in all the way, I never encountered this problem. If you can fill in details of the case when it won't zoom in completely for you, I'd be interested. However, one thing you might try is switching the effect controls panel to show Audio time units. In this mode, you can zoom in much more far.

  • Help re - bind the Navigation buttons

    I have Adobe Flash CS3 Pro.

    I have a header navigation file supplied with my flash Web site template and I find it difficult to make sense of the actionscript. It has a logo with effects, 5 buttons main nav that move and two additional link above the navigation bar buttons. For now, let's focus on all the Navigation buttons. Here's what I've collected. I have several buttons text on a movieclip, and I successfully edited the text for each button. If I look at the actionscript code in the top layer of this movieclip I see:

    "gotoAndStop (parent._parent.num);"

    I also have a movieclip symbol separated (with effects) with 5 layers of buttons listed in the actionscript code with the following actionscript code associated with each key of numbers from 1 to 5:

    onClipEvent (load) {}

    Num = 1;

    }

    onClipEvent (load) {}

    Num = 2;

    }

    onClipEvent (load) {}

    NUM = 3;

    }

    onClipEvent (load) {}

    NUM = 4;

    }

    onClipEvent (load) {}

    NUM = 5;

    }

    On the top layer of these 5 buttons, I have the following actionscript code:

    Stop();

    This ["Item" + _root. Button] .gotoAndPlay ("S1");

    _root. Link = _root.button;

    I also have a symbol to separate with the following actionscript code button:

    on {(overview)

    If {(_root.link <> 1)}

    menu. Item1.gotoAndPlay ("S1");

    }

    }

    on (releaseOutside, deployment) {}

    If {(_root.link <> 1)}

    menu. Item1.gotoAndPlay ("S2");

    }

    }

    on (release) {}

    If {(_root.link <> 1)}

    _root.menu ["Item" + _root. Link] .gotoAndPlay ("S2");

    _root. Link = 1;

    getURL ("index.html");

    }

    }

    Now, my Web site template came with pages of html 5 that my flash navigation buttons are: (index.html, 1.html - index, index - 2.html, index - 3.html, index - 4.html, index - 5.html). My problem is that I created a new page (index.html, about.html, featured.html, projects.html, contact.html). I wish all 5 buttons to match these pages, not existing pages of standard "index - tswan.html.

    In addition, this probably isn't relevant, but each html page has something to that effect so I can see how they correspond to each button.

    < script type = "text/javascript" >

    var fo = new FlashObject ("flash/menu_vf8.swf? ") button 2 =', the 'head', '100% ', '144', '7', ' ');

    fo.addParam ("quality", "high");

    fo.addParam ("wmode", "transparent");

    fo.addParam ("scale", "noscale");

    FO. Write ("Head");

    < /script >

    I guess my real question is: what actionscript should I update or delete the nav button LINKS to work with my new html rather than the pages of index pages - tswan.html 5 standard he wants automatically a link to?

    When I try and add a "getURL" command to each of the 5 buttons and test to preview the film, the links work, but it messes up the effects of the movieclip. In other words, the buttons do not move, they are immobile, but the links work. If I added this command to each key somehow, what actionscript would I need remove so there are no complications? I need help expertise here because it would be much appreciated. I am a novice with Flash script and its killing me that I can't understand it. I asked for assistance in support of the model and all they came back with the following message, it was, and it was not helpful:

    1. You need to duplicate each button you change - it is very important.

      (2) update the script to search in a similar way:

      on (release) {}
      If {(_root.link <>num)
      _parent ["Item" + _root. Link] .gotoAndPlay ("S2");
      _root. Link = num;
      If (num == 1) {}
      getURL ("index.html");
      } else {}
      getURL ("index-" + Number(num-1) + ".html");
      }
      }
      }

      Update for:

      on (release) {}
      getURL ("http://www.google.com");
      }

    menu.jpg

    Also, I read the following discussion, which was helpful to a certain extent, but it is not always answer my questions about links to work.

    http://forums.Adobe.com/message/3614092#3614092

    Can I make the code see you now, it's an approach I've seen somewhat regularly for AS1/2 designs.  These "num" values that specifies the html pages that are linked.  Each button is assigned a value of num, in your case 1 to 5.

    Based on the line of code...

    getURL ("index-" + Number(num-1) + ".html");

    I think that your header links pages were named index - 1.html thru index - 4.html.  If you can see why I say that there is hope, that you can fix yourself.

    If you want to bind the new pages you either must name them agree with this convention, sense rename index about.html - 1.html, rename featured.html index - 2.html, etc... or change the way the values num are defined or updated profit.

  • bind the parameter, Q1

    Hello everyone,
    We do great for user input parameters. We used the report wizard and changed the data by adding: where table.date BETWEEN: Enter_Start AND: Enter_End

    We received the message, "Note: the query"Q - 1 "has created the parameters bind"Date_Start","Date_End"."
    We didn't pay attention couples suite:
    1. ' Q - 1'
    2 bind the parameter (s)

    We just clicked OK, then, then buttons only. We were happy labels: Enter Start and End.

    Nothing is simple!
    We have some challenges when it comes to change: Enter_Start AND: Enter_End to: First_Date AND: Second_Date.

    where table.date BETWEEN: First_Date AND: Second_Date

    Now we have 4 labels: begin to enter, enter end, Date of the first and second Date. We want only 2 labels and 2 input parameters.

    If you have experience on the topic, please share with us.

    Thanks in advance,

    NY

    Arif Khadas wrote:

    If we do not like it?

    function boolean return AfterPForm is
    Start
    : order_by_clause: = "ORDER BY". : ID
    return (TRUE);
    end;

    Yes. Note that the ID parameter for valid column transmitted by the user name.

    I suppose that space must be in 'ORDER BY ' | : ID. What I mean like that...

    :order_by_clause := 'ORDER BY '|| :ID
    
  • I think that my safari is infected with the virus, he on redirect keeps me from another Web site each time that I click my mouse or press a key on my keyboard... Help!

    I think that my safari (Yosemite) is infected by the virus, he on redirect keeps me from another Web site each time that I click of my mouse or press a key on my keyboard... Help!

    I can't seem to download the print screen, here, anyway, it starts the LINK share appears every time it redirect:

    -"ps4ux.com/click? h = Ax722bagzrmWM3RP_5wPSvP63fG7dqaJCNo55LiVexxUaivPBxSeS7A3C2V4-bO...» »-

    middle part is hidden by «...» »

    the last part is:

    -"ttp: 3% a % 2F % www.apple.com%2F 2F & rt = 46 & date_sid = 50fc88582b4e8512b3e35e56351a22a3" in a new tab.

    Run etrecheck to go to etrecheck.com and see what is running under the hood.

  • How to prevent activation of the application switcher function the central button of the mouse

    I use a mouse third with a scroll wheel (button 3) as the central button of the mouse.  How can I prevent this activation of the application switcher function button?

    System Preferences > mouse allows you to assign actions to the buttons on the mouse. Some mice come with their own drivers/preferences.

  • How to bind the elements in the PC, items added in the "edit items...". "list of combobox

    Hello

    Could someone please tell me how can I bind the items added in the "combo box" could be linked to files saved in my PC and if a new file is added in the same folder in my PC, it could be added directly to the list of the combo box items... Thanking you in advance

    Concerning

    Julien

    Thank you very much...

  • can I remove one of the keys on my keyboard on my computer portable pavilion g6

    Product number is A1J18AV

    There is something behind my "D" key on my keyboard and it is difficult to press. Can I remove the key? and if I can, how?

    Hey armyman1016,

    Unfortunately, you can't take off individual keys. You can take the entire keyboard that will not give you the ability to watch under a certain touch, however.

    Now, if a small vacuum cleaner with a brush is available, use it to clear the keyboard of the debris. A can of compressed air can be used to blow the particles that get between the keys.

    Hope that answers your question.

    THX

  • conditionally quickly monitor the key based on LabVIEW being the application of the update in Windows

    Hi all

    I use LV 2009 in Vista.  I use a VI dynamic, in addition to higher level, to monitor the key pad.  It works great except for the fact that when I have another application open during the execution of the LabVIEW application, it still meets the press of button.  that is so that the use of the calculator and pressing the ESC key to clear the display, LabVIEW reacts as well.

    LabVIEW will know if it is the "application of the update" in windows environment?  I know he can tell it is windows that are in front, but what about other applications?  I think to use this to filter keys when LV is not the front application.

    Thank you!

    Charlie

    This is the vi registered under a vi 2009

Maybe you are looking for

  • Creator of recovery on T130 media

    I have this T130 laptop and I want to create a recovery using a USB media and the Toshiba Recovery Media Creator. Only the USB key that I use (Sandisk Cruzer 8 GB) does not work with this program. All solutions to make it work?

  • Windows 8 full for X230T driver?

    Hello world! I plan to buy a X230T. But it is always sold with Windows 7. Is there a complete driver already preset for Windows 8? Support the functions of the tablet which the pen? Thank you very much for your ideas.

  • How to keep my destop icons to be spread to other users on my computer?

    When I install programs, and they create an icon on my desktop it gets created too much on other users of the machine.  How can I remove the icons from other users and keep it on my desktop? And, when I install a program how I can only place oon my o

  • Disable the password to start up - use scanner

    When I start my cmputer currently there is an option to scan your fingerprint, or use a password. I know how to disable the password, but that's all just ridiculous because you can click the icon and get! How to completely remove the password option

  • results of vcops HE can be influenced by a bad configuration vcenter?

    the dashboard of the ability again to create virtual machines in the cluster, can be influenced by vcenter with the size of the slot (default Configuration) without reservation (memory/CPU) for VM?