Ask Experts Questions for FREE Help !
Ask
    dagma20's Avatar
    dagma20 Posts: 1, Reputation: 1
    New Member
     
    #1

    Apr 3, 2005, 07:21 PM
    Java/Windows Programming
    Hi I'm trying to see whether it is possible to interact with windows through java. I have a RMI program that is installed on several computers in a network. I want to see when a user is in the idle stage i.e. no key pressing & no mosue moving etc.. If the program is running, I think the program can only test if there is no KeyPressing for that program so if another windows application, like word is open it won't detect a idle status. Im not sure if that makes sense, but basically I'm trying to imitate windows version of the idle process, and I'm not sure if it is possible to 'talk' to windows to see if the user is idle.

    Therefore I think I would do it as,

    JFrame program waiting for keypresses if none are detected after x amount of time then an 'admin' program version is alerted.

    But would this cause problems?

    The problem I think that would occur is that the key presses would always not be detected as the program is not the actual listener anymore and the user could still actually be using the computer but not in the eyes of the java program so any ideas how to talk to windows to detect an idle status?
    nwarkar's Avatar
    nwarkar Posts: 2, Reputation: 1
    New Member
     
    #2

    Mar 8, 2011, 04:20 AM
    Jvisualvm.exe find and run above file in bin directory of java installation.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Java programming [ 1 Answers ]

Hi, I am running a java program. I want to see the Heap memory used for that program. How to see it?

Java programming [ 1 Answers ]

Read the following statements and explain why it is either true or false 1. The garbage collection mechanism is platform dependent 2.you can suggest when garbage collection will run but you cannot be certain when it will take place. 3.a reference to a primitative variable is eligble for...

Java programming [ 1 Answers ]

Read the following statements and explain why it is either true or false 1. The garbage collection mechanism is platform dependent 2.you can suggest when garbage collection will run but you cannot be certain when it will take place. 3.a reference to a primitative variable is eligble for...


View more questions Search