How to capture remote control events

Hello, I am now writing some simple xlets to test UI .
I can successfully receive arrow key and enter using KeyEvent,but failed at color key and other
keys in remote control. I have read some articles and got quite confused about the event model
of MHP,it seems complex to beginners.
I tried to receive color key event by this way:
a: main class (HComponent) implements xlet and UserEventListener;
b: define one userEventRepostiroy colorKey and add all colored key to it.
c: EventManager.getInstance().addUserEventListener(this,colorKey);
d:implement the userEventReceived method
I tried the color keys in remote control of my emulator ,but not captured, Can you tell me why? Thanks!!!!

Hi,
I am trying to program a normal JFrame application which can capture remote control inputs. (I know very little about Xlets. I just need a listener for an application).
Many of the buttons are captured by a normal KeyListener but some aren't (player controls like play/pause and red/green/yellow/blue colour buttons). Also, most of the ones that are captured just have keyCode() = 0 and keyChar() = '' so I can't determine which button was actually pressed.
Is there any way I can implement the UserEventListener example above without using an Xlet? Alternatively, is there any way I can manipulate KeyListener to get ALL button presses from the remote control? Any other ideas?
Thanks,
Brian
PS - here is my attempt: (Am I missing the point altogether? Not sure if a UserEventListener can be added to a component like other listeners)
package remotecontrol;
import javax.swing.JFrame;
import org.dvb.event.*;
public class frame extends JFrame implements UserEventListener
    public frame()
        UserEventRepository rep = new UserEventRepository("whatever");
        rep.addAllArrowKeys();
        rep.addAllNumericKeys();
        rep.addAllColourKeys();
        EventManager.getInstance().addUserEventListener(this, rep);
        setSize(200,100);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        show();
    public static void main(String[] args)
        frame app = new frame();
    public void userEventReceived(UserEvent userEvent)
        System.out.println("Remote button press captured: " + userEvent.getCode());
}

Similar Messages

  • How to capture Wnidows(OS) event from Java program

    Hi,
    I am developing one application , in that if the user didn't do any thing in 15 mins,i need to log out from my application(not windows).Here i need to check Java event as weel as windows(OS) events also.Any one knows how to capture the OS events??

    I want to know the status of mouse and keyboard(Windows 2000).If the status of the mosue or keyboard doesn't change from 15min i need to log of the java application.

  • How do i remote control another imac

    I used to use ichat to help out my mom with her mac remotely. Does facetime allow me to do this? What happened to ichat?

    Yianni Macris wrote:
    How do I remote control my iMac
    In what way do you want to control it, turn the volume up or control the whole computer.

  • How can I remote control my iPad 2 with my iPhone.....apart from limited 2screens?

    Is there an app yet or in development which means I can remotely control some aspects of my iPad 2 with my iPhone.....I have used 2screens but am hoping for a more universal app......thanks
    Stephen

    Actually, if you Don't know how to do, you could go to
    http://charlie-roberts.com/Control/ (the web site of the creator of your app.)

  • How do I remote control a user in remote desktop services in Windows Server 2012?

    Hello,
    we currently operate in a 2008 R2 environment with the majority of clients connecting to our terminal servers.  We use the remote control feature in terminal services manager to connect to a users session when a user phones our helpdesk with
    a question / issue.
    Just today I've installed 2012 server on a hyper-v virtual machine to have a play with it.  I've installed the Remote Desktop Services and noticed this remote control feature is gone.  I can still log off or send a message to a user, but I can
    no longer remote control their session.
    I've seen one or two other posts stating this feature has been removed completely.
    So, a couple of questions:
    1. How on earth do I "shadow" or connect to a users session now?
    2. If I have to go third party to get this functionality back, what's the best software on the market for this and does it support remote connecting of users who have their RDP session span multiple monitors? (2008 R2 doesn't)
    3. Will Microsoft ever bring this feature back? as at this stage I doubt we would move to 2012.  This is the one feature that is crucial to the day-to-day running of our helpdesk.
    Cheers.

    A large percentage of our IT support business is through remote management. Most of our large enterprise customers are Terminal Server environment (now called Remote Desktop - why does Microsoft have to change EVERYTHING - how would they feel if I changed
    the colour of the sky from blue to red just because I could?).
    Last week, after much expense to the customer (and realising that there WOULD be some cosmetic headaches to contend with Server Management) we installed a new "Remote Desktop Server" for them and shifting them from 2003 - a big leap so we discovered.
    During deployment it came as a HORRIFIC surprise that we could not remote control user's sessions!
    Yes, we ARE to blame for not fully realising the cock-up Microsoft has made for us. We should have fully researched every detail of what changes they made and what they have robbed us of.
    Firstly, the removal of the ability to fully manage user's sessions came as a HUGE blow!
    The remaining multiple issues that followed (including the hugely cumbersome and SLOW way of accessing user's sessions and the false information that the console was reporting users logged in when they had already logged out) suddenly resulted in us decommissioning
    the new 2012 installation in favour of a 2008 R2 installation.
    Some may ask; Why not use "Third Party" apps to counteract the issue? Firstly; why spend MORE and why use a third party app that "is as" cumbersome to use just because of a freaking feature that Microsoft deemed a "security risk" - for G.D sake!
    We have now been directed by management to convince customers that a move to 2012 is NOT recommended - good choice boss, I love you!
    The question is; will Microsoft re-implement this feature and fix Server Management performance/accessibility in a future release before 2008 R2 is no longer available? Probably not - it looks like their stubbornness to forge ahead with their craze mind-set
    of transforming their products into something that is now annoying millions (including their bloody push towards everything-cloud which NONE of our customers want anything to do with).
    Microsoft! Get us back on to your side and take a step back, take a deep breath and listen to consumers!

  • How do I Remotely Control my Canon EOS-1D Mark II Camera?

    Hi, I was wondering if anyone out there knew of a driver or a piece of software that I can download to remotely view and remotely control my Canon EOS-1D Mark II digital camera from my MacBook Pro? The drivers that Canon provides only work on PPC platform, not Intel (to the best of my knowledge), and I can't seem to find an alternative. I even tried the trial version of Phase One's Capture Pro, but it didn't work with the camera!
    I know this may not be the correct forum to place this question, but didn't exactly know where else to go with it! Please if someone can please help I'd be eternally grateful! The way I have my camera mounted is nearly impossible to accurately view the object through the viewfinder without climbing up the side of a wall!! Any help, ideas, or suggestions will be much appreciated!
    Thanks!
    MacBook Pro Mac OS X (10.4.8)
    MacBook Pro   Mac OS X (10.4.8)  

    adholden
    Welcome to the Apple Discussions
    The PPC software should run on the Intel Machine using the Rosetta emulation. Try it and see. Some cameras can be controlled - at least pics can be taken - via Image Capture (It's in your Applications Folder). From the Image Capture Help:
    Many cameras let you take a picture using Image Capture when the camera is connected to your computer.
    Connect your camera, and click Download Some.
    Click Take Picture.
    The camera snaps a picture, which then appears in the window.
    If you don't see the Take Picture icon, choose View > Customize Toolbar, and drag the icon to the toolbar.
    If the Take Picture icon is dimmed, your camera does not support this feature.
    This works with my Canon S2.
    Regards
    TD

  • HT1941 how do i remote control my mac mini from my macbook air

    I want to control my iTunes library from my mac air.  How do I setup the remote control to accomplish this?

    1. Use the Remote App on iDevices. There are third-party apps also available.
    2. Use Screen Sharing on the MBAir.
    3. More elaborate solutions using the IR Remote and IR Blasters are also possible.
    4. AirParrot and Beamer may also provide some capabilities.
    5. AirPlay requires ATV and a Mac.

  • How to capture Flash SWC events?

    Can someone point me in the right direction on how to capture an event from a Flash SWC in Flex?
    Scenario:
    I have an animated gameboard that I built in Flash. Nothing fancy, just a simple tile game where you select a tile, click it and it flips over to reveal something.
    I've managed to export a SWC, and get it to display just dandy in my Flex project, but I cannot figure out how to get Flex to capture and respond to any type of event... custom or predefined (such as MouseEvent.CLICK) when clicking one of the tiles in the swc.
    I've done quite a bit of googling but I'm cross-eyed at this point and could use some expert direction.
    Thanks in advance.
    JL

    Hi Alex,
    After further research, I've found some answers to my questions, but I've encountered a related obsticle.
    I finally stumbled upon the Flex 3 Component Kit documentation, and on page 9 of that document, it describes in detail an example of adding custom events.
    To summarize, my related obsticle this:
    I created a simple MovieClip symbol in Flash (named "My Circle").
    I created a simple external class mimicing the example code in the Flex 3 Component Kit documentation (named "MyCircle.as") which extends mx.flash.UIMovieClip
    The .fla containing the MovieClip symbol "My Circle" and the external class "MyCircle.as" reside in the same directory
    In Flash I convert the symbol "My Circle" to a Flex component and verify that the class is "MyCircle" and there is no base class
    I export the now converted MovieClip as a .swc file
    In my Flex project, I add MyCircle.swc to the Library path
    In my Flex project source I add an instance of MyCircle as <local:MyCircle id="my_circle" />
    Switching to Design view in my Flex project I don't see anything. I refresh design view and still do not see a graphic representation of my .swc file. There are no errors or warnings
    Using the Outline, I select the instance of MyCircle and discover that it is indeed on the stage, but it's bounding box dimensions are essentially zero. It seems there is no image in the swc.
    Returning to Flash, I duplicated the MovieClip symbol, renamed it to "My Circle No External Class", and converted it to a Flex component. I also verified that this new component had a class name of "MyCircleNoExternalClass" and had a base class of mx.flash.UIMovieClip.
    Following the above proceedure to correctly link it to my Flex project's Library path and adding an instance of <local:MyCircleNoExternalClass /> to the source, the .swc file show's up beautifully.
    So, why would adding an external class file (with the ultimate goal of being able to dispatch custom events) cause the contents of the MovieClip itself to not be included in the .swc?
    Again, I'm following the example on page 9 of the Flex 3 Component Kit documentation and using the Flex 3.3 SDK.

  • Does anyone know how to capture a menu event on a existing EXE program?

    I have figured out how to add menu Item to an existing EXE program, but I have not yet been able to figure out how to capture there events.  Any help would be greatly appreciated.

    "[email protected]" <[email protected]> wrote in message news:[email protected]..
    I have figured out how to add menu Item to an existing EXE program, but I have not yet been able to figure out how to capture there events.&nbsp; Any help would be greatly appreciated.
    It's not entirely clear what you are trying to acieve. I think you're trying to add menu items to an exsisting exe without recompiling it, from LabVIEW. If so the following applies.
    You have to hook the winproc. When a menu item is selected, windows send a message to the window's winproc. There are some API's that can be used to point the address of the winproc to another routine. This routine can do filtering, and then call the original routine.
    Note that LabVIEW doesn't (or didn't until LV7) use windows menu's, so when a LabVIEW (or exe created with LabVIEW) menu item is called, windows will not send anything. That is the price for platform independency.
    I think the OpenG site (or perhaps Winutils from NI) has some vi's to hook windows messages that are send to LabVIEW. Perhaps you can also use them hook another application.
    Regards,
    Wiebe.

  • How can I remotely control what iTunes song my iMac is playing to multiple AppleTV's?

    So I own an iMac that has homesharing enabled.  I then tell the iMac to play to both of my AppleTV's by holding OPTION key down while clicking on Airplay, and checking off the devices that I want it to stream to filling my home with sound that is in sync in every room.  Works beautifully.  Only problem is that I can not then control the iMac remotely from let's say the bedroom to pick a new artist.  The ATV's become dumb clients simply playing what the iMac is pumping to them.  Is there a remote interface that allows me to control iTunes on the iMac to choose the sounds being broadcast to the other Apple devices?
    NO.  VNC is a ghetto work around to accomplish this.  Yes, I could do that, but it is inefficient, and inelegant.  I am looking for a remote control app with the  functionality that allows me to connect to and see the device that I want to control, and then by choosing my iMac, see all artists/albums/songs, play them and let the iMac pump the tunes to the devices that I told iTunes to Airplay to.
    Ideally, the AppleTV's should know that they are acting as clients to the iMac serving centrally, but when I pick up an AppleTV remote, it overrides the stream from the iMac, and then the ATV begins streaming independently from the other.  I KNOW there is a solution to this...
    Any suggestions?
    Thanks!
    Adam

    ok...  solved it.  By using the Apple Remote app, you can tell the app to control your iMac (I did not know that) and that solved the issue.  Now the iMac plays the song I want to all of the devices that I told the iMac to play to.  Perfect.

  • How can i remotely control a macintosh centris 650

    I have an old Centris 650 with some NuBus cards that I still want to use. I'd like to remotely control the Centris, and I would think there are two possible ways to do it: remote control via Ethernet, or emulating the mouse and keyboard (and sharing a monitor). So far, neither approach seems viable. I can find ADB->USB adapters, but not the other way around. The Centris is currently running OS 7.1, though I have installers up to 7.5.5, if installing that would help.
    All I need to be able to do is boot one or two applications and make simple adjustments to their UIs.
    Anyone have any suggestions?
    thanks!

    Apple Remote Access can do that.
    http://support.apple.com/kb/TA36867?viewlocale=en_US

  • How to setup Remote Control for a user

    We have Zen 4, eDir 8.7.3, NW 6.5 and I have a regular user (no admin
    rights) that I want to allow to remote control into all our
    workstations that are spread out over 40 OUs.
    1. What rights does this person need to do be able to Remote in to the
    workstations?
    2. What is a good solution to set this up?
    Thanks

    Port,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to capture Mouse Down event outside a control?

    Mouse Capture doesn't work:
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    Mouse.Capture(button1);
    button1.PreviewMouseDown += Down;
    private void Down(object sender, MouseButtonEventArgs e)
    MessageBox.Show("Hello World!"); // doesn't show

    Hi Ziya,
    the Capture-method returns a bool whether the capture was successful or not. So when you do this, you'll see that your capture didn't work:
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    var success = Mouse.Capture(button1);
    if(!success)
    MessageBox.Show("Not captured");
    button1.PreviewMouseDown += Down;
    The problem with the code above is that your Window is not loaded at that time when the code in the constructor is executed. And as long as it is not loaded, there's nothing to capture. :-)
    So you should do your capture-logic in the Loaded-event of the window. That event occurs after the Window has been loaded. So the code below will work for you:
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    this.Loaded += (s, e) =>
    var success = Mouse.Capture(button1);
    if (!success)
    MessageBox.Show("Not captured");
    button1.PreviewMouseDown += Down;
    Thomas Claudius Huber
    "If you can't make your app run faster, make it at least look & feel extremly fast"
    My latest Pluralsight-courses:
    XAML Layout in Depth
    Windows Store Apps - Data Binding in Depth
    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com

  • How to raise Remote System Event

    Hi,
    I need to load data from a remote DB system (Not SAP system) when data is created or modified.  I setup DB Connect to load the remote data with an event triggered InfoPackage.  How can remote system trigger the local event?
    Thanks,
    Frank

    Frank, there should be a command on the server that your R/3 or BW system resides on called <b>sapevt</b>.  This command sits outside the SAP system and its sole purpose is to allow you to raise an SAP event from outside the SAP system.
    check out the following link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/frameset.htm
    Regards,
    George

  • Urgent Help need - How to capture client change event

    Dear Gurus,
    I am not able to track whether user has changed any field in the table or not. I am using IWDNodeElement.isChangedByClient  to capture , but it is always returning me false.
    PLEASE HELP.
    Sample code
    wdContext.nodeTravelTable().moveFirst();
              try
                   for(int i = 1; i <= tblSize; i++)
                        wdComponentAPI.getMessageManager().reportSuccess("Currency is " + wdContext.currentCurrency_travelTableElement().getCElement());
                        wdComponentAPI.getMessageManager().reportSuccess("Is client changed" + wdContext.currentTravelModeElement().isChangedByClient());
                        if(wdContext.currentTravelModeElement().isChangedByClient())
    Thanks in Advance.
    Best Regards,
    Prasad PMV
    PS:Max points will be awarded for any kind of help

    Reply by Thomas Chadzelek 
    I would not recommend to use the changed()/isChanged() methods. They represents "dirty flags" used by our framework in certain situations ("delta handling"). I don't think that applications need access to it, except in certain situations. Anyway, these flags are set whenever an attribute is changed and reset at the end of the roundtrip.
    isChangedByClient() represents a different set of "dirty flags" whose reset is under the application's control. They are set whenever a user changes an attribute (through the Web Dynpro client), but not when server-side code does such a change.
    In NW04, these flags are quite coars-grained. A node element is marked as changed when any of its attributes has been changed.

Maybe you are looking for

  • My college kids charge on my credit card- how can I see who is charging what?Unlike all other vendors, you can't get info from apple 800 number on the charge

    how can I find out what my college kids are buying on itunes. It is charged to my credit card number but the 800 number given to the credit card company takes me to the web site. I can only see purchases with my own account. Short of cutting off appl

  • Can't get rid of pesky junk mail

    I use the Apple Mail Version 6.5 (1508) application for my emails.  I have found the Junk Mail feature to be very helpful.  If I label a message "Junk," It is treated as junk when I receive the same message later on.  However, there is one pesky junk

  • Access ECC report in CRM

    Hi, I have got a requirement where-in I have to access some standard reports in ECC from SAP CRM 2007. Any pointers on how to do this will be appriciated... Thanks in advance... Regards Ravindran.

  • Balancing field "fund" in line item not filled

    Hi all, We are getting this error "balancing field 'fund' in line item xxx not filled when we try to post a goods issue. Everything in fmderive and document splitting rules seem to be fine. Please let us know. Thanks.

  • Do I need J2EE for JMS to work?

    Hi, I'm fairly new to JMS and I have a couple of questions. We are writing an application that is supposed to send and receive messages with the help of JMS. The broker in question is WebMethods (which product I don't exactly know). Now for the quest