"real" keyreleased events?

I have searched high and low for this answer.
Does anyone know how to catch "real" key pressed or key released events?
I am trying to write an app, that has a fastforward and rewind action. I need to know how long they have held down the button.
Java for some reason, enlighten me please, sends the key press and key released any type a key is pressed...the names are quite misleading to me.
I have tried many different things and nothing i have tried works. I am so close to finishing the alpha stage of my app, and i ran into this wall.
Greatly appreciated for an answer,
shane

Either i am just not getting it again....or something else here is the code i wrote.
import java.awt.event.*;
import javax.swing.*;
public class Test extends JFrame {
    JEditorPane editMain = new JEditorPane();
    long l=0;
    public Test() throws Exception{
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JButton b=new JButton("Test");
        this.getContentPane().add(b);
        b.addKeyListener(new KeyAdapter() {
              public void keyTyped(KeyEvent e) {
              public void keyPressed(KeyEvent e) {
                  if (l==0) {
                      l = System.currentTimeMillis();
                    System.out.println("key pressed");
                  e.consume();
              public void keyReleased(KeyEvent e) {
                  l=System.currentTimeMillis()-l;
                  System.out.println("press time released="+l);
                  l=0;
                  e.consume();
    public static void main(String args[]) throws Exception {
        Test gI = new Test();
        gI.setSize(420, 380);
        gI.setLocationRelativeTo(null);
        gI.setVisible(true);
}There is the code above i wrote. Now this still does not work becuase there is no way to tell when it was released. Here is the output from me holding down one key for a couple of like two seconds, and then released.
Maybe yall can see what i talking about now. Here
key pressed
press time released=500
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=33
key pressed
press time released=34
key pressed
press time released=32
key pressed
press time released=28
key pressed
press time released=30
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=33
key pressed
press time released=34
key pressed
press time released=33
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=29
key pressed
press time released=29
key pressed
press time released=34
key pressed
press time released=34
key pressed
press time released=24
Process Test finishedAm I wrong here, but wouldnt you expect just 2 println's here.
Even if i put some delay on this, or try to consume. I think this is a linux/java problem. But i am kinda obsessed now, I want to know a work around.

Similar Messages

  • [SOLVED] Keyboard issue - fn+key "KeyRelease" event not triggered

    Hi Archers :)
    First post, sorry if not in the right section.
    I have a quite anoying bug. I bought a no name laptop, imported by Textorm, model M116 SU7300, same model as this one (http://www.textorm.com/pc-portable/pc-p … 22%5D.html)
    On the keyboard, the '<' and '>' symbols are mapped on "fn+W" and "fn+MAJ+W".
    Everything works fine in a TTY console. All others fn-KEY are working well.
    The problem is with a Xorg environment : when pressing fn+W or fn+MAJ+W, it seems that the release key is never triggered, acting like if I was pressing the key in continue.
    When pressing another key, the crazy '<' input stop, but then, fn+W won't works again... until I trigger a press/release event with 'acpi_fakekey 86'.
    Then, same scenario.
    I booted a live Archbang,  same result (well, I wasn't very surprised), and a live Sabayon... same result.
    Using xev, I can see that when pressing/releasing fn+W, the KeyReleased event is never triggered. I can provide a log if needed.
    So it seems related to the Xorg driver....
    I tryied to use the kbd driver by adding an xorg.conf
    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "fr" # "fr-oss" pour Feisty et +
    Option "XkbVariant" "latin9"
    EndSection
    Section "ServerFlags"
    Option "AutoAddDevices" "Off"
    EndSection
    I can confirm that the kbd driver was in use with Xorg log :
    [ 900.371] (II) LoadModule: "kbd"
    [ 900.371] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
    [ 900.371] (II) Module kbd: vendor="X.Org Foundation"
    [ 900.371] compiled for 1.14.0, module version = 1.7.0
    [ 900.371] Module class: X.Org XInput Driver
    [ 900.371] ABI class: X.Org XInput driver, version 19.1
    [ 900.780] (II) Using input driver 'kbd' for 'Generic Keyboard'
    [ 900.780] (**) Option "CoreKeyboard" "on"
    [ 900.780] (**) Generic Keyboard: always reports core events
    [ 900.780] (**) Generic Keyboard: always reports core events
    [ 900.780] (**) Option "Protocol" "standard"
    [ 900.780] (**) Option "XkbRules" "xorg"
    [ 900.780] (**) Option "XkbModel" "pc105"
    [ 900.780] (**) Option "XkbLayout" "fr"
    [ 900.780] (**) Option "XkbVariant" "latin9"
    [ 900.780] (II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD, id 6)
    ... no luck. Same comportement.
    I tryed the xorg-input-evdev git version, no luck. (But if I understand, xorg-input-evdev use kbd as underlying driver?)
    I also tryed xorg-server-dev 1.14.99.1-1
    So for now, I use a ugly hack : I mapped "W-W" and "S-W-W" in my openbox rc.xml to execute "acpi_fakekey 86". Nearly working all the time.
    I know this isn't directly related to Arch, but if someone has any pointers... I take any ideas.
    Thanks in advance!
    PS :
    xorg-server 1.14.1-1
    xf86-input-evdev 2.8.0-1
    Last edited by jc.saaddupuy (2013-05-28 18:28:05)

    Wow thanks!
    I confirm that this is working.
    Thanks to your infos, I investigate the udev stuff.
    You will have to know the vendor and product name of your machine :
    cat /sys/class/dmi/id/{sys_vendor,product_name}
    Thats the strings your udev rule have to match in ENV{DMI_VENDOR} and ATTR{[dmi/id]product_name}.
    For me, both was empty, so I use a wildcard :
    ENV{DMI_VENDOR}=="*", ATTR{[dmi/id]product_name}=="*"
    Then, you'll have to specify which codes needs to trigger a key release (sames as found with keymap -i)
    Add a file in /usr/lib/udev/keymaps/force-release/  whith the hex values (one per line)
    I named mine 'textorm'
    /echo 0x56 > /usr/lib/udev/keymaps/force-release/textorm
    And add it in the RUN of your udev rule (not the full file name):
    ENV{DMI_VENDOR}=="*", ATTR{[dmi/id]product_name}=="*", RUN+="keyboard-force-release.sh $devpath textorm"
    Knowing your serio ( /sys/bus/serio/devices/serio0), you can test the keyboard-force-release.sh script (the serio parameter HAVE TO NOT begin with /sys/)
    /usr/lib/udev/keyboard-force-release.sh bus/serio/devices/serio0 textorm
    You can then check the /sys/bus/serio/devices/serio0/force_release content.
    Works like a charm :)

  • Differences between Robot class generated events and real input events

    Hello everyone!
    I'm having a problem with the translation of the description of the awt.Robot class.
    - "This class is used to generate native system input events" -
    Does this mean there is no difference between real input events and generated events from the Robot class? Difference in reference to that the generated events can't be recognized as generated events by the os or programs.
    Thanks in advance.
    Chris B.

    The Robot class will use an interface provided by the operating system to inject events. Those are very close to 'real' input events, but not quite there. There are, for instance, several games out there which have a protection mechanism against Robot's events to prevent scripting/botting. However, any application that is not paying special attention to the event's source will assume that the input events generated by Robot are actually coming from the user, so you can 'control' any application with the exception of the beforementioned games.

  • ValueChanged- and keyReleased-Events in JTree

    Hello,
    Suppose I have Items in a JTree. Any time the selected item changes, heavy work has to be done to get the details of the node and present it to the user.
    Suppose further the user uses the arrow-keys to scroll through the list an he holds down the key. I do get many calls to my Listeners valueChanged(TreeSelectionEvent event), but I am interested just in the last event, in order to avoid all the heavy work. How can this be done?
    I tried the following, but I do get a keyReleased-Event at any new selection. (Maybe because a nested component of the JTree feels like I had released the arrow-key. Is this a bug?):
    private class NodeSelectionEventHandler implements KeyListener, TreeSelectionListener {
    private boolean forwardEvents = true;
    private EventObject lastEvent;
    public void keyTyped(KeyEvent e) {
    public void keyPressed(KeyEvent e) {
    forwardEvents = false;
    public void keyReleased(KeyEvent e) {
    //System.out.println(e.getComponent());
    // Leider bekomme ich nach jeder auswahl mit Cursortaste auch einen
    // keyReleased-Event, obwohl die Taste immer noch gedrueckt ist.
    forwardEvents = true;
    if (lastEvent != null) {
    lastEvent = null;
    fireNodeSelectionChanged();
    //System.out.println("Last Selection forwarded");
    public void valueChanged(TreeSelectionEvent event) {
    // there is no event.getValueIsAdjusting() in JDK1.3
    handelEvent(event);
    private void handelEvent(EventObject event) {
    //Thread.dumpStack();
    if (forwardEvents) {
    lastEvent = null;
    fireNodeSelectionChanged();
    //System.out.println("Selection forwarded");
    else {
    lastEvent = event;
    //System.out.println("Selection eaten");

    I have a JTree from which I generate classes on selection.
    To ensure only one event is fired I install two listeners.
    I install a mouse listener and capture an event when the mouse is clicked, and I install a key listener and only catch the enter key being pressed as follows:
    tree.addMouseListener(new java.awt.event.MouseAdapter() {
              public void mouseClicked(MouseEvent e) {
              showFunction();
    tree.addKeyListener(new java.awt.event.KeyAdapter() {
    public void keyReleased(KeyEvent e) {
    if (e.getKeyCode() == KeyEvent.VK_ENTER) {
    showFunction();
    This means something happens only if a user clicks on the node with the mouse or selects the node and presses the enter button. I have used this as a general standard throughout my application and it works on all platforms.
    Hope this helps

  • Suspend a keyReleased event

    How i can suspend a keyReleased event?
    I try with:
    public void keyReleased (KeyEvent e) {
          while(myCondition) { // nothing. code of the my main Thread puts slowww }
           // process the keyReleased event
    }When exit of the while the speed are normal.
    ...

    Sorry, read:
    "I need to suspend keyPressed until JUMP finish, then keyReleased continue, next sentence clear the HashMap entry."
    instead of:
    "I need to suspend keyPressed until JUMP finish, then keyPressed continue, next sentence clear the HashMap entry."
    Any suggested idea is to use:
    public class keyboard extends KeyListener {
             private Frame frame; // where main Thread is locale
             private HashMap keymap  = new HasMap();
             public keyboard(Frame frame) {
                    this.frame=frame;
                    frame.addKeyListener(this);
             public void keyReleased() {
                       if(frame.JUMP) return;
                      // code                
              public void clearHashMap() {
                   // clear HashMap
    public class frame() {
              // call it 40 FPS
              public void doAnim {
                   // complex code to post it
                   When jump has finish keyboard.clearHashMap();
    }Once JUMP has finish clear ALL the HashMap.

  • Capturing converting draft to real document event

    Hi all
    i wish to capture the event of turning a draft document of type warehouse transfer to a real document. in order to do so i want to capture the click event on the "Add" button in the document transfer draft form. the  problem is the draft and the real document forms have the same type. my question is how can i differntiate when i'm in a warehouse transfer draft form and not in warehouse transfer real document form?
    appreciate the help
    Yoav

    Hi, Yoav!
    The first thing i thought out is to check if there is such document in the draft-table(ODRF). When you get the Add-click event, do the query that selects from the ODRF table the document with the specific parameters - Docnum(from the 260 EditBox on the warehouse transfer form), DocDate and ObjType (67). If the record is found - it's an adding the document from the draft, if not found - it's from the real document...
    HTH!
    Aleksey Kuznetsov

  • JTree and real Components / event forwarding

    Ok, so Ive seen some people forward events from JTree to node based Components.
    I was just wondering, whether thats the right way to go.
    Wouldn't it be better to write your own TreeLayoutManager, add the node based components with nodes as constraints to the the manager and add or remove them when the tree expands/collapses.
    My only problem is, when to trigger the doLayout and how to get the proper node sizes. The only given value is the available width in the cellrenderer.
    The cellrenderer would just return an empty, properly sized JLabel, and the "layoutmanager" would take care of the the real positioning.
    That way I could have the painting speed benefits of a Jtree, combined with the flexibility of real components stored as nodes in it, right?
    Well, I'm just looking for opinions on this.
    Shoot :-D

    Hi,
    Thanks for your post.
    >>What is meant by HeartbeatInterval and Max Latency Time?
    Heartbeat Interval determines how often collector will check if source is still online,
    MaxItems and MaxLatencyTime determine how source will batch items. In this example it will wait for 1 events or 1 seconds
    <MaxItems>1</MaxItems>
    <MaxLatencyTime>1000</MaxLatencyTime>
    >>Next: When configuring the source computer i have to configure a Refresh time in the Policy key. (Computer Settings - Policies - Administrative Templates - Windows Components - Event Forwarding)
    If you enable this policy setting, you can configure the Source Computer to contact a specific FQDN (Fully Qualified Domain Name) or IP Address and request subscription specifics.
    If you disable or do not configure this policy setting, the Event Collector computer will not be specified.
    >>when is this value being used for what? If I do not specify this refresh param, what is the default value?
    In my view, it is connection refresh time, we must set this parameter, for example,
    Use the following syntax when using the HTTPS protocol:
    Server=https://<FQDN of the collector>:5986/wsman/SubscriptionManager/WEC,Refresh=<Refresh interval in seconds>,IssuerCA=<Thumb print of the client authentication certificate>
    Meanwhile, i think you may ask in MSDN forums for technical support.
    https://social.msdn.microsoft.com/Forums/en-US/home
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Real focusOut event of the extension?

    Hi,
    Application: InDesign CC 2014 10.1.0.70 x64
    I ran into another problem. A main part of my Flex-Extension was the onFocusOut-Event, which I used to save the data the user entered.
    I want to receive an event when the user leaves the extension by clicking back to his opened document.
    Previously (in flex) I could use the com.adobe.csxs.events.StateChangeEvent.WINDOW_LOSE_FOCUS but it seems there is no event that mimics the old one I used.
    In my HTML file I have:
    <body onblur="onFocusOut()" onfocusout="onFocusOut()">
    In my JS file:
    function onFocusOut()
      alert("Focus out!");
    onfocusout is never fired and blur gets fired way too often for my usecase. It gets fired when I click around in the extension panel background, etc.
    Am I missing something?
    Thanks!

    Hi lesavage,
    as described above, the onBlur event is probably not the right event for me, as it:
    does get fired when I click somewhere in the background of my extension window
    does get fired when I click on a button in my extension window
    does get fired when I try to select text within my extension window
    does get fired when the extension is minimized
    does not get fired when I have been clicking around in my extension window and then click back into the actual document (this is what I need)
    Please note that I set up the onblur event on my <body> html element.
    Any suggestions?
    Thanks!

  • KeyReleased event problems

    Hi everybody,
    i have a JTable and what I want to is that when the user type something in the TextField the table will show the names of the company that start with the letter that the user typed. But the problem is that each time the user type the event executes 2 times, this is the code:
    private void txt_searchCompanyKeyReleased(java.awt.event.KeyEvent evt) {
    TableModel model = jt_Company.getModel();
    ArrayList<String[]> dataArray = new ArrayList<String[]>();
    String[] data = new String[ jt_Company.getRowCount() ];
    String s = txt_searchCompany.getText();
    System.out.println("Cantidad de filas: " + jt_Company.getRowCount()+ "\nCantidad de col: " + jt_Company.getColumnCount());
    for(int i = 0; i < jt_Company.getRowCount(); i++)
       for(int j = 0; j < model.getColumnCount(); j++)
           if(model.getValueAt(i, 1).toString().startsWith(s) == true)
             data = model.getValueAt(i, j).toString();
             dataArray.add(data);
              System.out.println(" " + data[0] + "Tamano de ArrayList: " + data.  length);
    jt_Company.setModel(new Business.CompanyTable(dataArray));
    }//End of the method
    the method compares very well the string and the name of the companies in each row, but as mention before the method do it 2 times that means that the string array will the double of rows.
    How can I do to make the event execute only one time
    Thanks a lot.......

    Hi,
    KeyListener is not probably a good idea for you. You should use DocumentListener. for Example:
    jTextFieldIP.getDocument().addDocumentListener(new DocumentListener()
       public void changeUpdate(DocumentEvent e){}
       public void insertUpdate(DocumentEvent e)
           try
               jListCode.setSelectedIndex(Integer.parseInt(jTextFieldIP.getText()));
            catch(NumberFormatException ne)
                JOptionPane.showMessageDialog(null, "Only numbers in this field please.");
       public void removeUpdate(DocumentEvent e)
           insertUpdate(e);
    } );

  • KeyReleased Event

    Hi everybody,
    i have a JTable and what I want to is that when the user type something in the TextField the table will show the names of the company that start with the letter that the user typed. But the problem is that each time the user type the event executes 2 times, this is the code:
    private void txt_searchCompanyKeyReleased(java.awt.event.KeyEvent evt) {
    TableModel model = jt_Company.getModel();
    ArrayList<String[]> dataArray = new ArrayList<String[]>();
    String[] data = new String[ jt_Company.getRowCount() ];
    String s = txt_searchCompany.getText();
    System.out.println("Cantidad de filas: " + jt_Company.getRowCount()+ "\nCantidad de col: " + jt_Company.getColumnCount());
    for(int i = 0; i < jt_Company.getRowCount(); i++)
       for(int j = 0; j < model.getColumnCount(); j++)
           if(model.getValueAt(i, 1).toString().startsWith(s) == true)
             data = model.getValueAt(i, j).toString();
             dataArray.add(data);
              System.out.println(" " + data[0] + "Tamano de ArrayList: " + data.  length);
    jt_Company.setModel(new Business.CompanyTable(dataArray));
    }//End of the methodthe method compares very well the string and the name of the companies in each row, but as mention before the method does it 2 times that means that the string array will the double of rows.
    How can I do to make the event execute only one time
    Thanks a lot.......

    Hi camickr, i tried what you said and It works well, but now i am traying to do another thing.
    Look, i want that the textfield remove the last character when the user type one of this character: ( ' / * % ? = > < etc...)and this is the code:
    class MyDocumentListener implements DocumentListener {
        /** Creates a new instance of MyDocumentListener */
        public MyDocumentListener() {
        public void insertUpdate(DocumentEvent e) {
          updateLog(e);
        public void removeUpdate(DocumentEvent e) {
          updateLog(e);
        public void changedUpdate(DocumentEvent e) {
        //Plain text components don't fire these events.
        public void updateLog(DocumentEvent e) {
           int i = e.getDocument().getLength();
           String name = " ";
           try{
                name = e.getDocument().getText(i-1, 1);
                if(restriction.restrictionSearchBy(name) == true)
                   JOptionPane.showMessageDialog(null, "Hola" + name);
                   txt_searchCompany.getDocument().remove(i-1, 1);
                   e.getDocument().remove(i-1, 1);// I tried this and did not work also
                else{
           catch(javax.swing.text.BadLocationException b){}
    }but i got this exception when i run it:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Attempt to mutate in notification
    at javax.swing.text.AbstractDocument.writeLock(AbstractDocument.java:1343)
    at javax.swing.text.AbstractDocument.remove(AbstractDocument.java:569)
    at Client.MDIFrame$MyDocumentListener.updateLog(MDIFrame.java:867)
    at Client.MDIFrame$MyDocumentListener.insertUpdate(MDIFrame.java:847)
    at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
    at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:754)
    at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:711)
    at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
    at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:673)
    at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1099)
    at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:839)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:2763)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:2798)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:2726)
    at java.awt.Component.processEvent(Component.java:5265)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
    at java.awt.Component.dispatchEventImpl(Component.java:3841)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    what can i do the remove it.
    Thanks a lot....

  • Real Simple Events Problem. Please Help.

    Hi
    I'm a student learning java at the moment and having a problem getting events sorted. I am trying to reference a evetn between two classes defined within the same main class.
    private ColorPanel c;
    ....withing class called ButtonPanel
    public void actionPerformed(ActionEvent event) {
    Object source = event.getSource();
    if (source == aButton){
    aButton.addActionListener(c);
    .........within class called ColorPanel
    public void actionPerformed(ActionEvent event) {
    String cmd = event.getActionCommand();
    Color c = getBackground();
    if (cmd.equals("red")) c = Color.red;
    Am i going about this the right way. Any help greatly appreciated.
    Alan
    P.s. the program has two frames, press a button in one and it changes the color in the other.

    When you build aButton, add the action handler you show in your ColorPanel class:
    JButton aButton = new JButton(...);
    aButton.addActionListener( yourListener );Then in the actionPerformed method do the color change, like you show. You only need one action handler - the one that listens for mouse clicks and sets the color.
    You shouldn't add listeners in an actionPerformed method. If you add them every time you'll get another call to the actionPerformed for every additional handler added and your program will die a slow death.

  • Real Time Events Ticker

    I wanted to create a little text box my friends and family
    could put into their webpages -- their blogs and such -- that loads
    text that I edit. I'm sure there's
    some way I can do this, but I'm stumped. I can't find
    anything like this online, or any tutorials, and I'm going crazy. I
    think this would be a wonderful way to keep people updated on
    performance dates and special event announcements... Should I even
    be trying to do this with Flash?

    OrwellianAvatar wrote:
    > I wanted to create a little text box my friends and
    family could put into their
    > webpages -- their blogs and such -- that loads text that
    I edit. I'm sure
    > there's
    some way I can do this, but I'm stumped. I can't find
    anything
    > like this online, or any tutorials, and I'm going crazy.
    "can't find anything like this online..." - you have got to
    be kidding.
    google.com - search "flash ticker" - countless results.
    Searching google forums, also brings lots of results.
    > I think this would be
    > a wonderful way to keep people updated on performance
    dates and special event
    > announcements... Should I even be trying to do this
    with Flash?
    It has been around for about 7 years, good idea indeed.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • [SOLVED] PgUp/PgDown Improperly Spawn Two Keyboard Events

    After doing an upgrade (pacman -Syu), I can no longer use the following keys on my keyboard without unappreciated consequences:
    - PgUp
    - PgDown
    - now, apparently, the Left arrow
    When I use xev, I get two separate events for every one real keyboard event, with two keycodes.
    For example, this is what happens when I press PgUp:
    KeyPress event, serial 24, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850204, (679,556), root:(680,571),
    state 0x0, keycode 112 (keysym 0xffaf, KP_Divide), same_screen YES,
    XLookupString gives 1 bytes: (2f) "/"
    XmbLookupString gives 1 bytes: (2f) "/"
    XFilterEvent returns: False
    KeyPress event, serial 24, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850204, (679,556), root:(680,571),
    state 0x0, keycode 99 (keysym 0xff55, Prior), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False
    MappingNotify event, serial 27, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248
    KeyRelease event, serial 27, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850306, (679,556), root:(680,571),
    state 0x0, keycode 112 (keysym 0xffaf, KP_Divide), same_screen YES,
    XLookupString gives 1 bytes: (2f) "/"
    XFilterEvent returns: False
    MappingNotify event, serial 27, synthetic NO, window 0x0,
    request MappingKeyboard, first_keycode 8, count 248
    KeyRelease event, serial 27, synthetic NO, window 0x1800001,
    root 0xae, subw 0x0, time 1850306, (679,556), root:(680,571),
    state 0x0, keycode 99 (keysym 0xff55, Prior), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False
    I've checked xmodmap -pke, but I have no idea what it means:
    keycode 99 = Prior NoSymbol Prior
    keycode 112 = KP_Divide XF86_Ungrab KP_Divide XF86_Ungrab
    Any help would be appreciated. Needless to say, this is pretty annoying when I'm trying to edit code and it searches my document instead of scrolling up, or capitalizes words (some vim feature I had previously never known about, and will most likely never use).
    Last edited by secretrobotron (2010-06-24 15:09:05)

    I'm pretty sure I'm using the latest xorg. I installed a fresh version of arch a couple months ago.
    My xorg.conf has about six lines concerning keyboards, most of which are
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "XkbLayout" "us"
    EndSection
    and the other being
    InputDevice "Keyboard0"
    in the ServerLayout section.
    Is there a newer way to do this? Perhaps omitting it altogether?
    I'm using xmonad, and I checked my keybindings in xmonad.hs to see if I had anything hilarious. Alas, I found nothing.

  • How to display events of only one IPS in Security Monitor?

    Hello,
    i searched the forum with no result. I have CW 2.2 with IDSMC 2.1. I got two IPS and 2 IDSM-2 (4.x is in production / 5.x is in test) which have all their four interfaces sniffing in different network segments. Now i am flooded by the thousands of messages from the internet with no possibilty to just concentrate my view on the events generated on only one special interface of a single IPS.
    To temporarily focus only one one interface of a single IPS how can i filter the events in Security Monitor to only display the events of a this device and a single interface?
    This would be extremly helpfull for to simulate attacks in an test environment with shuning/blocking. I have rare possiblities to set up a second CW IDSMC on another machine. And after all, i would appreciate to focus (filter) in that way for later examining my network to tune signatures and events.
    Furthermore, on IEV 4.1 i was able to get a real time dashboard showing 'real time' events. I did not see this functionality for IPS 5.x and IDSMC. How can i view real time data there to see my networks reaction to simulated attacks.
    Any ideas how to only display only wanted data in Security-Monitor?
    Thanks in advance, Gerhard

    As far as I know, you cannot display the events of only one IPS in Sec Mon.

  • Listening key events

    Hello there,
    I am trying to get the information of the key pressed on the keyboard. Following code works only for characters not for the arrow keys, alt, shift, F1 and etc...
    Can you tell me what should I do?
    Thanks.
    Berk Can Celebisoy
    class MyKeyEvents implements KeyListener
    public void keyTyped(KeyEvent e) {
    System.out.println(e.getKeyChar());
    public void keyReleased(KeyEvent e) {
    public void keyPressed(KeyEvent e) {
    }

    The KeyTyped event is only generated for displayable characters. KeyPressed/KeyReleased events are generated for all key strokes.
    Read the KeyEvent API for more information.

Maybe you are looking for