Generating system events in java

Discussion in 'Java' started by jiggaman, Jul 23, 2003.

  1. jiggaman

    jiggaman Guest

    Hi,

    I am trying to generate events using a simple java program. what i
    am trying to do is essentially fake a event. for eg..here is what i
    want to do. I want to write a program that will allow me to generate a
    "CTRL+ESC" event. on a windows box when we press CTRL+ESC the start
    menu pops up. typically what i want it to do is when i run my program
    its should post the events such that it mimics a user pressing the
    CTRL+ESC keys.

    is this doable with the current java api. will i need to use any
    native libraries?
    i am desperate to have this working any and all help will be highly
    appreciated.

    thanx,

    Jiggaman
     
    jiggaman, Jul 23, 2003
    #1
    1. Advertising

  2. jiggaman wrote:

    > I am trying to generate events using a simple java program. what i
    > am trying to do is essentially fake a event. for eg..here is what i
    > want to do. I want to write a program that will allow me to generate a
    > "CTRL+ESC" event. on a windows box when we press CTRL+ESC the start
    > menu pops up. typically what i want it to do is when i run my program
    > its should post the events such that it mimics a user pressing the
    > CTRL+ESC keys.
    >
    > is this doable with the current java api. will i need to use any
    > native libraries?


    AFAIK this is possible only with a native library. You'll need
    to write a DLL that does the messaging stuff, and expose one
    method through it. The JNI is your friend.

    -Manish
     
    Manish Jethani, Jul 23, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mauricio Correa L.

    Generating hashes (System.security.cryptography)

    Mauricio Correa L., Jun 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    403
    Raterus
    Jun 18, 2004
  2. Ulf Meinhardt
    Replies:
    0
    Views:
    417
    Ulf Meinhardt
    Nov 11, 2004
  3. John Fly
    Replies:
    4
    Views:
    358
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Mar 12, 2007
  4. Replies:
    0
    Views:
    375
  5. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    375
    Chris
    Aug 30, 2005
Loading...

Share This Page