Xbindkeys - how to emulate a key press?

Hello!
In kde-dolphin and pcmanfm my "goleft/goright" mousebuttons (button 8 and 9) dont work.
I read about xbindkeys
http://hanschen.org/2009/10/13/mouse-sh … xbindkeys/
There is written that I have to do this
# Back
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
  b:6
But where can I find this "xte" package?
I do not have it on my computer!
thank you!

Thank you all it works now!
I was missing the xautomation package
But I will have a look at xdotool
Thanks!

Similar Messages

  • How to pass the key pressed in javascript

    I'm asking this question here as I could not find the needed help elsewhere .
    I don't know how to pass the key pressed in the function on OnKeyPress event .
    I'm trying the following :
    <input type="text" name="a" onKeyPress="check();">
    I want to pass the key presses in the check function .
    How to collect the key pressed in the function check ?
    Thanks.

    As I said above, that won't work in Mozilla.
    In fact IMO Netscape/Mozilla javascript event handling has been behind IE since version 4.
    Be that as it may: here is a workaround (for Mozilla): It seems you have to assign the onkeypress event for it rather than declaring it as part of the textfield.
    Of the two textfields on this form, both work in IE, and only the first one will work properly in Mozilla. I left it in just to demonstrate the difference.
    And a couple of links for ya
    javascript forum: http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=3
    Keypress events: http://www.din.or.jp/~hagi3/JavaScript/JSTips/Mozilla/Samples/KeyEvent.htm
    <html>
    <head>
    <script language="javascript" >
    <!--
    function check(evnt){
      alert("A key was pressed!");
      // IE handling
      if (window.event){
        evnt = window.event;
        alert(evnt.keyCode);
      // netscape/mozilla handling 
      else{
        alert(evnt.which);
    //-->
    </script>
    </head>
    <body >
    <form name="myform" method="post">
    Test <input type="text" name="myTest"><BR>
    Test <input type="text" name="myTest2" onKeyPress="check();"><BR>
    <script> document.myform.myTest.onkeypress = check; </script>
    </form>
    </body>
    </html>

  • How to emulate INSert  key (in Terminal.app)

    iBook keyboard have no INSert key. I am using it very often on PC because I like working in Terminal and using Midnight Commander (insert key is used there to selecting files).
    How to emulate this key in Terminal.app (like you can emulate other keys for example page down/up and so on with fnshitfarrows), or maybe you now how to define custom emulation rule of some key shortcut to get this key.
    I don't need INS key outside Terminal.app.

    Just found answer here: http://hints.macworld.com/article.php?story=20080122065954390
    In Terminal.app's Preferences, go to Settings and select Keyboard. Find the Key you want to replace -- in my case, F12 -- and change the default Action value to:
    \033[2~

  • How to detect any key pressed for program running in the background?

    Hi All,
    is it possible to detect when any key is pressed if a java program is not in the focus? For example, when I have a console based program I can write something like:
    System.in.read();
    and wait until any key is pressed. However, if I move the mouse away from the console and make any other window active, the console program "doesn't hear" anything. Ok, it's clear, of course, but how is it possible to make the program detect any keys pressed even if it's running in the background?
    Thanks a lot for any hints!

    qnx wrote:
    1) Stop trying to make spyware. -> I don't do anything like this!
    2) Stop re-posting the same questions. -> didn't know they are the same, sorry.
    3) Stop taking us for fools. -> what? Honestly, I don't think that I realy deserved this :)With a limited posting history and the type of questions you are asking they are unusual.
    There are very few legitimate problem domains that would require what you are asking about. There are illegitimate ones though. And the legitimate ones would generally require someone with quite a bit of programming experience and would also be required (the fact that java can't do it would not get rid of the requirement.)
    Thus one might make assumptions about your intentions.

  • How to binding a key press event of "Esc" to "cancle" button

    I create a class extended JComponent. Than I add a button named "cancle " to it.
    Than I add the class's instance to a JDialog object.
    I try to get the key press event through add a keyListener to the class instance, but no works.
    I try to add a keymap and action map to the dialog 's getRootPane() also no works.
    Who can tell me how can I do?

    Thats the way I did it:
        // map escape key
        ActionListener escapeActionListener = new ActionListener()
          public void actionPerformed(ActionEvent e)
            cancelPressed();
        this.registerKeyboardAction( escapeActionListener,
                                     KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false),
                                     JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT );

  • 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 to detect space key pressed event

    I am working on a japplet where it is needed to pause the applet on the occurrence of a space bar key pressed event can anybody help
    thanks in advance

    Have a look at the tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html
    http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html
    -Puce

  • 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.

  • How to get the key press

    Hi,
    One more question, how do you get the keypress in the main
    movie? I've tried on onClipEvent (keyDown) key.getCode etc but that
    requires to be in a movie.

    there are a couple of ways to handle this. If you are looking
    for a sepcific Key you can set up a Listener. or more like what
    your trying here, but as in:

  • How can i call key press event for dynamically  created texbox

    Hi,
    I create a one texbox using javascript .now i want to call onFocus event that textbox.How is it

    I develop grid application using javascript only.When they press add button dynamically add one row and each cell contain one textbox for enter new data.if they want to edit previous data when cursor goes to that textbox,all textvalue is selected format

  • How to listen to key press?

    I am creating a drawing module and want to listen to SHIFT keypress to draw 0/90/45 degree lines. I tried using KeyListener and KeyAdapter but later learned that they only work when components with text input are in focus. Can anyone provide me with a link / tutorial on this?

    [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Key Bindings

  • How to invoke a key press event in application that has focus

    Even though I know there are programs out there already that do this similar function, I want to write my own program that converts MIDI events into keypresses. Here is how it would work:
    - my program does not have focus, some other app has focus while my app runs in the backround
    -a midi event happens
    -a mapping is done by my app running in the backround: midi event->keypress
    -my app causes a keystroke event to be sent to whatever application has the focus.
    my problem:
    The part I am having trouble figuring out is how to invoke a keypress to the application that has the focus. Can someone shed some light how this would be done? I have learned a little about the Text Services Manager but this just a component of Carbon. I'd think that I needed to talk to a much lower level part of the operating system to be able to send a keypress to ANY app that is running.
    I would prefer to work in Carbon, c++
    The thing that would make my midi-keystroke program different from others out there is a much more complex mapping algorithm between the MIDI event and the keypress chosen. That's why I want to write my own.
    Thanks much anyone who can help!!
    Jay

    quartz event services contains the calls needed to perform this function

  • How to handle multiple key press in numeric keys

    I have used the code from eta . Code is somethg like tis
    lastKeyPress = System.currentTimeMillis();
    protected void keyPressed(int keyCode){
              boolean keyRepeated = false;
              if(System.currentTimeMillis() - lastKeyPress < 1000 &&
         lastKey == keyCode) {
              keyRepeated = true;
              lastKey = keyCode;
         lastKeyPress = System.currentTimeMillis();
    switch(keyCode) {
              case KEY_NUM0 :
              case KEY_NUM1 :
              case KEY_NUM2 :
              case KEY_NUM3 :
              case KEY_NUM4 :
              case KEY_NUM5 :
              case KEY_NUM6 :
              case KEY_NUM7 :
              case KEY_NUM8 :
              case KEY_NUM9 :
              case KEY_POUND :
                                  System.out.println(keyCode);
                                  System.out.println(keyRepeated + "     Repeat");
    But the 'keyRepeated ' always returning false. It doesnt satisfies the 'if' condition. So i m unable to differentiate btween 'a' ,'b' and 'c'. Pls any one take me to the correct solution

    sure pls follow this snippet
    private char getChar(int keyCode, boolean keyRepeated,int mode) {
    switch(keyCode) {
    case KEY_STAR :
    if(keyRepeated) {
         if(lastChar == symbols[0])
    return symbols[1];
    else if(lastChar == symbols[1])
    return symbols[2];
    else if(lastChar == symbols[2])
    return symbols[3];
    else if(lastChar == symbols[3])
    return symbols[4];
    else if(lastChar == symbols[4])
    return symbols[5];
    else if(lastChar == symbols[5])
    return symbols[6];
    else if(lastChar == symbols[6])
    return symbols[7];
    else if(lastChar == symbols[7])
    return symbols[8];
    else if(lastChar == symbols[8])
    return symbols[0];
    return symbols[0];
    case KEY_NUM1 :
    if(keyRepeated) {
    if(lastChar == '1')
    return symbols[0];
    else if(lastChar == symbols[0])
    return symbols[1];
    else if(lastChar == symbols[1])
    return symbols[2];
    else if(lastChar == symbols[2])
    return symbols[3];
    else if(lastChar == symbols[3])
    return symbols[4];
    else if(lastChar == symbols[4])
    return symbols[5];
    else if(lastChar == symbols[5])
    return symbols[6];
    else if(lastChar == symbols[6])
    return symbols[7];
    else if(lastChar == symbols[7])
    return symbols[8];
    else if(lastChar == symbols[8])
    return '1';
    return '1';
    case KEY_NUM2 :
         if(mode==LOWERALPHA){                 
         if(keyRepeated) {
         if(lastChar == 'c')
         lastChar = '2';
         else if(lastChar == '2')
         lastChar = 'a';
         else
         lastChar++;
         return lastChar;
         return 'a';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'C')
         lastChar = '2';
         else if(lastChar == '2')
         lastChar = 'A';
         else
         lastChar++;
         return lastChar;
         return 'A';           
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='2';
              else{
                   lastChar='2';                
              return lastChar;
    case KEY_NUM0 :
    if(keyRepeated) {
    if(lastChar == '0')
    lastChar = ' ';
    //else
    //lastChar++;
    return lastChar;
    return '0';
    case KEY_NUM3 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'f')
         lastChar = '3';
         else if(lastChar == '3')
         lastChar = 'd';
         else
         lastChar++;
         return lastChar;
         return 'd';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'F')
         lastChar = '3';
         else if(lastChar == '3')
         lastChar = 'D';
         else
         lastChar++;
         return lastChar;
         return 'D';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='3';
              else{
                   lastChar='3';                
              return lastChar;
    case KEY_NUM4 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'i')
         lastChar = '4';
         else if(lastChar == '4')
         lastChar = 'g';
         else
         lastChar++;
         return lastChar;
         return 'g';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'I')
         lastChar = '4';
         else if(lastChar == '4')
         lastChar = 'G';
         else
         lastChar++;
         return lastChar;
         return 'G';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='4';
              else{
                   lastChar='4';                
              return lastChar;
    case KEY_NUM5 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'l')
         lastChar = '5';
         else if(lastChar == '5')
         lastChar = 'j';
         else
         lastChar++;
         return lastChar;
         return 'j';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'L')
         lastChar = '5';
         else if(lastChar == '5')
         lastChar = 'J';
         else
         lastChar++;
         return lastChar;
         return 'J';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='5';
              else{
                   lastChar='5';                
              return lastChar;
    case KEY_NUM6 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'o')
         lastChar = '6';
         else if(lastChar == '6')
         lastChar = 'm';
         else
         lastChar++;
         return lastChar;
         return 'm';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'O')
         lastChar = '6';
         else if(lastChar == '6')
         lastChar = 'M';
         else
         lastChar++;
         return lastChar;
         return 'M';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='6';
              else{
                   lastChar='6';                
              return lastChar;
    case KEY_NUM7 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 's')
         lastChar = '7';
         else if(lastChar == '7')
         lastChar = 'p';
         else
         lastChar++;
         return lastChar;
         return 'p';
         }else if(mode==UPPERALPHA){
                   if(keyRepeated) {
         if(lastChar == 'S')
         lastChar = '7';
         else if(lastChar == '7')
         lastChar = 'P';
         else
         lastChar++;
         return lastChar;
         return 'P';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='7';
              else{
                   lastChar='7';                
              return lastChar;
    case KEY_NUM8 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'v')
         lastChar = '8';
         else if(lastChar == '8')
         lastChar = 't';
         else
         lastChar++;
         return lastChar;
         return 't';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'V')
         lastChar = '8';
         else if(lastChar == '8')
         lastChar = 'T';
         else
         lastChar++;
         return lastChar;
         return 'T';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='8';
              else{
                   lastChar='8';                
              return lastChar;
    case KEY_NUM9 :
         if(mode==LOWERALPHA){
         if(keyRepeated) {
         if(lastChar == 'z')
         lastChar = '9';
         else if(lastChar == '9')
         lastChar = 'w';
         else
         lastChar++;
         return lastChar;
         return 'w';
         }else if(mode==UPPERALPHA){
              if(keyRepeated) {
         if(lastChar == 'Z')
         lastChar = '9';
         else if(lastChar == '9')
         lastChar = 'W';
         else
         lastChar++;
         return lastChar;
         return 'W';
         }else if(mode==NUMERIC){
              if(keyRepeated)
                   lastChar='9';
              else{
                   lastChar='9';                
              return lastChar;
    default :
    return '\u200D';
    }

  • How to change 'z' key into 'A' key with key blinding?

    How to change 'z' key into 'A' key?
    Although txt.setText("A") can set the text field with 'a', but it is not original input from keyboard because it cant trigger the key listener.
    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Main
    {   public static void main(String[] args)
        {   JFrame f = new JFrame("Test");
            Test GUI = new Test();
            GUI.setOpaque(true);
            f.setContentPane(GUI);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setVisible(true);
    class Test extends JPanel
    {   JTextArea txta = new JTextArea(10,20);
        JTextField txt = new JTextField(10);
        JScrollPane sp_txta = new JScrollPane(txta);
        public Test()
        {   this.setPreferredSize(new Dimension(400,300));
            setLayout(new BorderLayout());
            txta.setEditable(false);
            add(sp_txta, BorderLayout.CENTER);
            add(txt, BorderLayout.PAGE_END);
            Action testAction = new AbstractAction()
            {   public void actionPerformed(ActionEvent ae){ txt.setText("A"); }
            txt.getInputMap().put(KeyStroke.getKeyStroke('z'), "test");    //Change z into A
            txt.getActionMap().put("test", testAction);
            txt.addKeyListener
            (   new KeyListener()
                {   public void keyPressed(KeyEvent e){ txta.append(e.getKeyChar() + " key is pressed \n"); }
                    public void keyReleased(KeyEvent e){ txta.append(e.getKeyChar() + " key is released \n"); }
                    public void keyTyped(KeyEvent e){ txta.append(e.getKeyChar() + " key is typed \n"); }
    }Edited by: 835972 on Feb 11, 2011 8:11 AM

    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.With r.keyPress method, it only can perform single key pressed at a time. Do you have any idea how to perform multiple key pressed at a time?The javadoc for Robot.keyPress suggests ( "+The key should be released using the keyRelease method+" ) that the key remains "pressed" until you keyRelease(...) it. So, press the keys sequentially:
    theRobot.keyPress(KeyEvent.VK_Q);
    theRobot.keyPress(KeyEvent.VK_W);
    // At this stage both Q and W are pressed "in same time"
    ... // do stuff
    theRobot.keyRelease(KeyEvent.VK_W);
    // At this stage, only Q is pressedI suspect that in real life, unless you're a very gifted musician, you don't really press keys "at the same time" (under the time resolution of a keyboard, which I imagine is around a few milliseconds).

  • Left and right key press going to different markers

    Hello there does anyone know exactly how to set the key press
    of the left and right arrow keys on the key board so when i press
    the left key it goes back a marker and when pressing the right key
    it goes to the next marker. I am fairly new to lingo so any help
    would be great and as simple as possible thanks

    Hi,
    I've created a slide show type application where arrow keys
    as well as PageUp and
    PageDown were used to move forward and back. Forward and Back
    were not always
    'previous' or 'next' markers. So, I created buttons on the
    stage that acted as
    forward and back, and each button had the regular mouseUp
    event with the link to
    the suitable location. I actually put the buttons off stage
    and in a movie script
    at:
    on keyDown
    case the keyCode of
    121 : sendSprite (10, #mouseUp) -- pageUp
    116 : sendSprite (11, #mouseUp) -- pageDown
    end case
    end
    Using the 'sendSprite', when the user pressed a key, I could
    activate the behavior
    attached to the related navigation sprite. And, I could
    easily add or remove key
    controls by changing the movie script.
    I have more info on using sendSprite, sendAllSprites and call
    commands at::
    http://www.deansdirectortutorials.com/Lingo/sendSprite.htm
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au
    email: [email protected]

Maybe you are looking for

  • Trying to change the name of my home page

    This is the first time I have published a website. I just got my first mac last week and I am trying iweb for the first time. I go the sites out there without a problem, but then I decided I wanted my home page to be called "Home" instead of "Welcome

  • ENET/100 causes host computer to power on

    I have an ENET/100 in a separate rack from my host computer connect via ethernet.  When power is applied to the rack containing the ENET/100, the host computer in the other rack powers on.  I have disabled all the wake on LAN options.  Any ideas?

  • Visio Web Access web part connection order

    I have a Visio Web Access webpart that is currently connected to 3 different query filter webparts.  Here is what the query filter webparts are doing  - #1 - This is passing in the page name to the "Web Drawing Url and Page Name" connection  - #2 - T

  • How do you set up a Yahoo eMail account with all of the folders on an iPad 1st generation?

    I setup my account using the Mail settings.  I can retrieve my eMail, but I don't have any of the folders that I have on Yahoo.  Also, when I delete an eMail it does not delete on the server (they reappear when I check mail again). Any suggestions? T

  • 紧急求助,哪位热心的朋友帮助一下,谢谢

    在做集团复制时报错,是远程通过SCC8导出,提示ORA-00600 错误,数据库错误日志如下,哪位朋友帮助一下,谢谢:<br> <br>   4 21:35:52 2010<br> ORA-1654: unable to extend index SAPSR3.JEST~0 by 128 in tablespace               PSAPSR3 <br> ORA-1654: unable to extend index SAPSR3.JEST~0 by 1024 in tables