Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Java/Windows Programming (https://www.askmehelpdesk.com/showthread.php?t=8800)

  • Apr 3, 2005, 07:21 PM
    dagma20
    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?
  • Mar 8, 2011, 04:20 AM
    nwarkar
    Jvisualvm.exe find and run above file in bin directory of java installation.

  • All times are GMT -7. The time now is 06:43 AM.