Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2008, 01:40 AM
Member
 
Join Date: Jun 2008
Posts: 3
Srt252 is on a distinguished road
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).
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-17-2008, 02:30 AM
Member
 
Join Date: Jun 2008
Posts: 3
Srt252 is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-17-2008, 05:14 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 899
Fubarable is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-18-2008, 08:45 AM
Member
 
Join Date: Jun 2008
Posts: 3
Srt252 is on a distinguished road
yeah ive come to that realization myself, and i guess ill start experimenting with c++
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which concept used in java for monitoring the printer kalinga2k4 Networking 1 06-14-2008 03:25 AM
Monitoring IP! rameshraj Advanced Java 4 04-27-2008 09:50 PM
Check if Windows application is already open mpiaser Advanced Java 1 12-07-2007 11:56 PM
Help with windows in java lenny AWT / Swing 1 08-07-2007 08:22 AM
Disk File System Access and Monitoring drveresh Advanced Java 1 07-03-2007 04:01 PM


All times are GMT +3. The time now is 01:38 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org