Results 1 to 5 of 5
  1. #1
    3ammary is offline Member
    Join Date
    Jan 2011
    Posts
    14
    Rep Power
    0

    Angry can i make a program to make keyboard and mouse idle or not responding for 10 second

    can i make a program to make keyboard and mouse idle or not responding for 10 seconds?
    please how can i do that

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    If you want to make your own program unresponsive to mouse/keyboard, then yes this can be done, but the specifics will depend on your program's set up. If you're trying to hijack the operating system's ability to respond to the mouse and keyboard, then no this can't be done with standard Java but would require outside help such as via JNA.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,304
    Blog Entries
    7
    Rep Power
    20

    Default

    I didn't even know a keyboard could be set to an idle mode; as far as I know a keyboard is idle as long as I don't touch it. I think it's the same with mice ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

  5. #5
    3ammary is offline Member
    Join Date
    Jan 2011
    Posts
    14
    Rep Power
    0

Similar Threads

  1. Replies: 9
    Last Post: 06-17-2011, 05:10 AM
  2. How to make object stop moving with mouse click
    By mackavelirip in forum New To Java
    Replies: 3
    Last Post: 05-06-2011, 03:23 AM
  3. Replies: 3
    Last Post: 11-26-2010, 03:08 PM
  4. Replies: 10
    Last Post: 10-14-2010, 01:33 AM
  5. Trying to make a GUI program
    By GettinGwap in forum New To Java
    Replies: 2
    Last Post: 11-04-2008, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •