How to send Remote controller key event

Hi Sir,
Can anyone tell me "how to send key event from "Remote
Controller" to Flex application?
for example. I want to control the Flash player or my Flex UI
application from remote controller such as use firefly
controller/streamzap controller/Gyration controller. Normally user
will use mouse or keyboard to enter/generate event, now I want to
use "Remote controller" to generate the key event. In Flex, how can
I capture the key event from "remote controller"? Any sample code
to provide that will be good.
Thanks.
Lin

Here's a couple related threads
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=583877
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=712386
I'd also suggest exploring the Search Forums available on the left,
which is how I found those threads:
http://onesearch.sun.com/search/onesearch/index.jsp?qt=focus+traversal+tab+text&subCat=siteforumid%3Ajava57&site=dev&dftab=siteforumid%3Ajava57&chooseCat=javaall&col=developer-forums

Similar Messages

  • How to implement "ALT + some key" event ?

    Hello,
    I'd like JDialog to catch key events only when user holds ALT button and presses some regular key (e.g. A,B,C, etc...).
    How this can be done ?
    Thanks for any advice !

    maybe you should use mnemonics?
    i don't know what is it you want to do.
    buti if you want for example to have JDialog, where are some buttons (OK & CANCEL) and want user to be able to click them by pressing ALT+O or ALT+C, then you might need to use mnemonics...
    if you want to enable some new kind of copy/paste/whatever combinations, then you might want to use keybindings
    http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html
    or see tutorial about using menus, and the part there which tells about enabling key operations
    http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#mnemonic
    or be more specific about your problem... what and Why are you trying to do.

  • How to handle Shift+Tab key event

    HI,
    This is Ramesh.I have added KeyListener to JTable. I am handling key events through key codes. But I am
    unable to handling multiple key strokes like Shift+Tab
    Can any one please give me suggestion how can I do it
    Thanks & Regards
    Ramesh K

    i dont know about Key BindingsWhich is why you where given a link to the tutorial in the first response.
    can you please give me suggestion.You've been given the suggestion 3 times. You can decide to learn to write code the way other Swing components are written. Or, you can do it the old way. The choice is up to you.

  • How to send a message(apple event) from mac os to our application

    on developer.apple.com i found a method which opens a given documetns through an apple event.
    my question is how to send open document event from mac to our application on xcode

    Assuming you're using Cocoa, the simplest solution is to call -[NSWorkspace openFile:withApplication:]. Example:
    NSWorkspace *ws = [NSWorkspace sharedWorkspace];
    NSString *appPath = [ws absolutePathForAppBundleWithIdentifier: @"com.apple.textedit"];
    [ws openFile: @"/path/to/file" withApplication: appPath];

  • Send a press key event without Batch Input?

    Hi.
    I need send a auto press key event (by example: press F8), by code.
    When I put a instruction in the report, the report simulate the key pressed.
    Exist some FM to do it? Is it posible?
    Thanks!

    Hi Marcos,
    you can use the method I recommended in an additional timer object method .
    Please adapt the below sample program I used to display the current time with auto update:
    *& Report  ZZCLOCK
    *& may be used to keep connection
    REPORT  zzclock.
    *       CLASS lcl_gui_timer DEFINITION
    class lcl_gui_timer definition inheriting from cl_gui_control.
      PUBLIC SECTION.
        CONSTANTS:  eventid_finished TYPE i VALUE 1 .
        CLASS-DATA: interval TYPE i VALUE '0'.
        EVENTS:     finished .
        METHODS:
                 cancel
                      EXCEPTIONS
                         error,
                 constructor
                     IMPORTING
                         lifetime TYPE i OPTIONAL
                         value(shellstyle) TYPE i OPTIONAL
                         value(parent) TYPE REF TO cl_gui_container OPTIONAL
                     EXCEPTIONS
                         error,
                 run
                     EXCEPTIONS
                         error,
                 dispatch REDEFINITION.
    ENDCLASS.                    "lcl_gui_timer DEFINITION
    *       CLASS lcl_event_handler DEFINITION
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
                    on_finished
                           FOR EVENT finished OF lcl_gui_timer.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    DATA: gui_timer TYPE REF TO lcl_gui_timer.
    DATA: event_handler TYPE REF TO lcl_event_handler.
    DATA: timeout_interval TYPE i VALUE '9'.
    PARAMETERS:
                p_datum TYPE sy-datum,
                p_uzeit TYPE sy-uzeit.
    AT SELECTION-SCREEN OUTPUT.
    * set to time rounded to 10 seconds
      p_datum = sy-datum.
      p_uzeit = sy-uzeit.
      CREATE OBJECT gui_timer.
      SET HANDLER event_handler->on_finished FOR gui_timer.
      gui_timer->interval = timeout_interval.
      CALL METHOD gui_timer->run.
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD on_finished.
    * Start Timer again
        gui_timer->interval = timeout_interval.
        CALL METHOD gui_timer->run.
    * cause PAI
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'REFR'.
      ENDMETHOD.                    "on_finished
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    *       CLASS lcl_gui_timer IMPLEMENTATION
    CLASS lcl_gui_timer IMPLEMENTATION.
      METHOD constructor.
        TYPE-POOLS: sfes.
        DATA clsid(80).
        DATA event_tab TYPE cntl_simple_events.
        DATA event_tab_line TYPE cntl_simple_event.
        IF clsid IS INITIAL.
          DATA: return,
                guitype TYPE i.
          guitype = 0.
          CALL FUNCTION 'GUI_HAS_OBJECTS'
            EXPORTING
              object_model = sfes_obj_activex
            IMPORTING
              return       = return
            EXCEPTIONS
              OTHERS       = 1.
          IF sy-subrc NE 0.
            RAISE error.
          ENDIF.
          IF return = 'X'.
            guitype = 1.
          ENDIF.
          IF guitype = 0.
            CALL FUNCTION 'GUI_HAS_OBJECTS'
              EXPORTING
                object_model = sfes_obj_javabeans
              IMPORTING
                return       = return
              EXCEPTIONS
                OTHERS       = 1.
            IF sy-subrc NE 0.
              RAISE error.
            ENDIF.
            IF return = 'X'.
              guitype = 2.
            ENDIF.
          ENDIF.
          CASE guitype.
            WHEN 1.
              clsid = 'Sapgui.InfoCtrl.1'.
            WHEN 2.
              clsid = 'com.sap.components.controls.sapImage.SapImage'.
          ENDCASE.
        ENDIF.
        CALL METHOD super->constructor
          EXPORTING
            clsid      = clsid
            shellstyle = 0
            parent     = cl_gui_container=>default_screen
            autoalign  = space
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
        CALL METHOD cl_gui_cfw=>subscribe
          EXPORTING
            shellid = h_control-shellid
            ref     = me
          EXCEPTIONS
            OTHERS  = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
    * Register the events
        event_tab_line-eventid = lcl_gui_timer=>eventid_finished.
        APPEND event_tab_line TO event_tab.
        CALL METHOD set_registered_events
          EXPORTING
            events = event_tab.
      ENDMETHOD.                    "constructor
      METHOD cancel.
        CALL METHOD call_method
          EXPORTING
            method     = 'SetTimer'
            p_count    = 1
            p1         = -1
            queue_only = 'X'
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
      ENDMETHOD.                    "cancel
      METHOD run.
        CALL METHOD call_method
          EXPORTING
            method     = 'SetTimer'
            p_count    = 1
            p1         = interval
            queue_only = 'X'
          EXCEPTIONS
            OTHERS     = 1.
        IF sy-subrc NE 0.
          RAISE error.
        ENDIF.
      ENDMETHOD.                    "run
      METHOD dispatch .
        CASE eventid.
          WHEN eventid_finished.
            RAISE EVENT finished.
        ENDCASE.
      ENDMETHOD.                    "dispatch
    ENDCLASS.                    "lcl_gui_timer IMPLEMENTATION
    Hope that's what you are looking for. I got the idea from a project where they used it to auto refresh an ALV grid...
    You may also search this forum for keywords timer or autorefresh. It has been discussed here earlier.
    Regards,
    Clemens

  • How to disable the F4 Key Event?

    Hi Guys,
    I have written my own FocusManager which allows me to traverse through disabled components. If a user presses the F4 key while the focus is in a disabled JComboBox, the popup becomes activated. Is there any way deactivate the F4 keystroke?
    I have tried:
    event.consume();
    combobox.setPopupVisible(false);
    combobox.hidePopup();
    I also read that F4 is a low-level event maintained by Windows. Is this true? Is there no alternative?
    -Sri :)

    To anyone who may be interested:
    I have tried all available solutions:
    1. hidePopup()
    2. setPopupVisible(false)
    3. unregistering the F4 key event
    4. catching the F4 key event and snubbing it
    I have had no luck with the above solutions. It leads me to believe that F4 key is registered under the windows environment and it is a low-level event.
    -Sri :)

  • How do you identify a key events source (std keyboard or a USB barcode reader emulating keyboard)?

    I have attached a USB barcode reader which essentially emulates a USB
    keyboard. Having looked through the VC++ V5.0 documentation and some SDK
    documents that I have, I could not find a library function that identifies
    what device sourced the keyboad event.
    Does know if this is possible ? Anyone have any ideas ?
    Thanks.

    If you over ride the "CWnd:reTranslateMessage" function you'll be able to trap keyboard messages.
    ex:
    BOOL CTestexecDlg:reTranslateMessage(MSG* pMsg)
    if (pMsg->message == WM_KEYDOWN && (pMsg->wParam == 13 || pMsg->wParam == VK_ESCAPE))
    // Enter or escape key was pressed; return TRUE to stop default handling
    return TRUE;
    if (pMsg->message == WM_KEYDOWN && pMsg->wParam == 0x30)
    BringWindowToTop( );
    return TRUE;
    if (pMsg->message == WM_KEYDOWN && pMsg->wParam == 0x31 && m_DisplayObject1 != NULL)
    // Enter or escape key was pressed; return TRUE to stop default handling
    m_DisplayObject1->SetWindowToTop( );
    return TRUE;
    if (pMsg->message == WM_KEYDOWN && pMsg->wPa
    ram == 0x32 && m_DisplayObject2 != NULL)
    // Enter or escape key was pressed; return TRUE to stop default handling
    m_DisplayObject2->SetWindowToTop( );
    return TRUE;
    if (pMsg->message == WM_KEYDOWN && pMsg->wParam == 0x33 && m_DisplayObject2 != NULL)
    // Enter or escape key was pressed; return TRUE to stop default handling
    m_DisplayObject3->SetWindowToTop( );
    return TRUE;
    return CDialog:reTranslateMessage(pMsg);
    Steve

  • How to send edits into new event?

    Hello there,
         I imported several videos into a new event. What I am trying to do is to edit specific sections of the videos and then rearrange them to make a single movie.
    I started making edits to one of the video, but realised that If I continued I would have hundreds of little clips to move around. What I would like to do is send all my edits as separate clips into a new event to make it easier and less messy. Is there a way to do it quickly instead of exporting them one by one to re-importing them into imovie?
    Sorry if this question was already asked, I searched but found nothing.
    Thank you in advance.
    OSX 10.9.5
    iMovie 10.0.3

    No.  Events are to import original media into. in this case your input videos.  What you could do is to split the videos into pieces using Quicktime Player and afterwards import those into an event.
    I'm afraid I'm not really clear why you want to put the edited pieces into a new event?  You must have created them in a project timeline so why not rearrange them there, delete the bits you don't want and complete and share the movie.   If you want to re-use the same pieces in another movie, keep the project and when you want to use them again copy the bits you want to re-use into the new project.
    Geoff.

  • How to make the TAB Key Event called

    Hi ,
    I want to make the tab key called twice when I hit on a button. It should jump to the next 2 cell.
    Thanks.
    DT

    Here's a couple related threads
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=583877
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=712386
    I'd also suggest exploring the Search Forums available on the left,
    which is how I found those threads:
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=focus+traversal+tab+text&subCat=siteforumid%3Ajava57&site=dev&dftab=siteforumid%3Ajava57&chooseCat=javaall&col=developer-forums

  • In ALV display model ,how to accept the ENTER key event?

    Dear All,
    I have used ALV by  GRID DISPLAY model ,not class model.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          i_structure_name         = 'T_ITAB'
          is_layout                = gs_layout
          it_fieldcat              = t_fieldcat[]
          i_default                = 'X'
          i_save                   = 'A'
        TABLES
          t_outtab                 = t_itab
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    For example :
    IN ALV DISPLAY, there are two fields, one is MATNR, the other is MAKTX.
    When user input the material value in MATNR field and press ENTER, then ALV can run my code to select the MAKTX into MAKTX field and display it synchronization.
    Now I have realized update edit in ALV,but I found only I double click ALV row, then the MAKTX can update.
    Please give me help,
    Thanks
    Sun

    This is the document written by me on Interactive ALV.. hope this maybe helpful for u..
    When an Interactive Report is needed in Classical Display, we go for AT LINE-SELECTION. But when the same is needed in ALV Display, this method won't work. Instead, we need to use other way which is explained below:
    We use REUSE_ALV_GRID_DISPLAY for ALV Display. Now, normally we call that FM in the following way:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = 'PROGRAM_NAME'
                it_fieldcat             = tb_fieldcat
           TABLES
                t_outtab                = tb_output.
    When it is needed to get an Interactive ALV, call the same FM in the following manner:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program      = 'ZTEST75599_1'
                it_fieldcat             = tb_fieldcat
                i_callback_user_command = 'USER_COMMAND'
           TABLES
                t_outtab                = tb_output.
    Now, in the report, create a subroutine with the name USER_COMMAND as follows:
    FORM user_command  USING p_ucomm    LIKE sy-ucomm
                             p_selfield TYPE slis_selfield.
      CASE p_ucomm.
        WHEN '&IC1'.   " &IC1 - SAP standard code for double-clicking
    Based on the requirement, write the logic                          *
      ENDCASE.
    ENDFORM.
    No need to call the subroutine as PERFORM user_command. This will be takane care by REUSE_ALV_GRID_DISPLAY. We need to just write the subroutine in the report. That suffices.
    Some more useful points for Interactive ALV:
    1. If Hotspot is needed, then that should be done by declaring hotspot (one field in slis_t_fieldcat_alv) as 'X' in tb_fieldcat which is of type slis_t_fieldcat_alv. When hotspot is active, single click will be enough or else you should double click on the output data.
    2. In Classical Display, when it is needed to read the record on which we double clicked, we do that in following way:
       AT LINE-SELECTION.
           GET CURSOR LINE wf_line. " wf_line gives the line number on which it has been clicked
             READ LINE wf_line OF CURRENT PAGE.
      But this won't work for ALV. Instead, the following logic can be used:
    FORM user_command  USING p_ucomm    LIKE sy-ucomm
                             p_selfield TYPE slis_selfield.
      CASE p_ucomm.
        WHEN '&IC1'.   " &IC1 - SAP standard code for double-clicking
          READ TABLE tb_output INTO wa_output INDEX p_selfield-tabindex.
          IF sy-subrc EQ 0.
    Based on the requirement, write the logic                          *
          ENDIF.
      ENDCASE.
    ENDFORM.

  • Catch several key events

    hi...how do i catch several keys events?
    Example:
    i have a menubar with a menuitem Pan and need to catch the keys UP,DOWN,RIGHT,LEFT.
    I know how to catch one key using a menushortcut.
    Thanks.

    Like this :
    menubaritem.addKeyListener(new KeyListener(){
       public void keyPressed(KeyEvent evt){
          int keyCode = evt.getKeyCode();
          switch(keyCode){
             case KeyEvent.VK_UP:
                //your code here...
                break;
             case KeyEvent.VK_DOWN:
                //your code here...
                break;
             case KeyEvent.VK_LEFT:
                //your code here
                break;
             case KeyEvent.VK_RIGHT:
                //your code here
                break;
       public void keyTyped(KeyEvent evt){}
       public void keyReleased(KeyEvent evt){}

  • How to send key for unicode characters?

    Hi Gurus,
    I want to send an unicode character to screen, but can't figure out a way to do so. In java, we can send a virtual key code using java.awt.event.KeyEvent. But how can I send a unicode character to the screen? Must I implement an input method? how to do that....?
    Anyone can give me some ideas?
    Thanks,
    Perky

    Found tha answer myself: set System.useCodePage to false

  • How to create native key events

    Hello
    can someone tell me please if (and if yes, how) it is possible to create native, therefore by the underlying recognized key events? My Java-App needs to send several key inputs which are also required to be noticed by Windows...
    Thanks
    Matthias

    see java.awt.Robot

  • How to configure HA between local controller and remote controller in DC

    Good day,
    If I have two Cisco 5508 Controllers, running Software version 7.4, how would my failover happen when the AP's run in local mode, and the local controller fail, and you configured your remote controller as your secondary controller.  Question is, will the APs automatically convert to FlexConnect mode when they failover to the remote controller in the DC?  I know you cannot configure HA as the controllers have to be connected with ethernet copper cable on the redundancy port, giving you a distance limitation of 100m.
    Thank you in advance
    Adrian

    Hello ,
    As per your query i can suggest you the following solution-
    In wireless network deployments that run controller versions earlier than 5.0, when a controller goes down, it takes a long time for all the APs and the associated clients to move to a backup controller and for wireless service to resume.
    The features discussed in the document are implemented on the controller CLI in WLC software release 5.0 in order to decrease the time that it takes for access points and their associated clients to move to a backup controller and for wireless service to resume after a controller goes down:
    In order to reduce the controller failure detection time, you can configure the heartbeat interval between the controller and access point with a smaller timeout value.
    In addition to the option to configure primary, secondary, and tertiary controllers for a specific access point, you can now also configure primary and secondary backup controllers for a specific controller. If the local controller of the access point fails, it chooses an available controller from the backup controller list in this order:
    •o primary
    •o secondary
    •o tertiary
    •o primary backup
    •o secondary backup
    The access point maintains a list of backup controllers and periodically sends primary discovery requests to each entry on the list. You can now configure a primary discovery request timer in order to specify the amount of time that a controller has to respond to the discovery request of the access point before the access point assumes that the controller cannot be joined and waits for a discovery response from the next controller in the list.
    Hope this will help you.

  • How come when I send a picture with iPhoto email it always send the same picture event when I choose a different picture until I log out from iPhoto

    how come when I send a picture with iPhoto email it always send the same picture event when I choose a different picture until I log out from iPhoto

    Why? Because something is wrong.
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

Maybe you are looking for