Results 1 to 4 of 4
  1. #1
    Srt252 is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default Monitoring open windows with java

    Ok im trying to make a java program that detects mouse clicks, but only in a certain open window, i dont really know how to start this or how to obtain information about other applications running, but i have about 2 years experience with java and ive used the mouse events and key events but i dont really know much about windows. any help would be appreciated. -specifically im trying to make a program for a game that will reset a timer every time i click in the game window (a browser window) and the timer will show me how much time i have until i get logged out (im tired of waiting for someone else to make this so ive taken matters into my own hands to make my life just that much easier).

  2. #2
    Srt252 is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default

    ok so im looking at the window focus listener and that could be promising though thats only useful if i made the window, any chance i could apply that to an already active window?

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

    Default

    If you are talking about monitoring user interactions with a non-Java window, with a window that is in the OS and has been created by another program, I think that you may have chosen the wrong tool. Java is great for many things, but it's not so hot at interacting with the OS. You may be better off with C++ or if this is a Windows issue perhaps VB or C#. Your mileage may vary.

  4. #4
    Srt252 is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default

    yeah ive come to that realization myself, and i guess ill start experimenting with c++

Similar Threads

  1. Which concept used in java for monitoring the printer
    By kalinga2k4 in forum Networking
    Replies: 1
    Last Post: 06-14-2008, 01:25 AM
  2. Monitoring IP!
    By rameshraj in forum Advanced Java
    Replies: 4
    Last Post: 04-27-2008, 07:50 PM
  3. Check if Windows application is already open
    By mpiaser in forum Advanced Java
    Replies: 1
    Last Post: 12-07-2007, 09:56 PM
  4. Help with windows in java
    By lenny in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 06:22 AM
  5. Disk File System Access and Monitoring
    By drveresh in forum Advanced Java
    Replies: 1
    Last Post: 07-03-2007, 02:01 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
  •