Results 1 to 9 of 9
  1. #1
    omriliba is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default getting info from OS

    hello all!
    i am trying to find the api that will give me information about what
    the user is doing right now: for example if hes online using facebook
    or playing some computer game and such
    which api supports these querries?
    thanks in advance!

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,889
    Rep Power
    8

    Default

    That sort of goes against what Java is and makes me question why you'd want that information to start with.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    omriliba is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    lol dont worry dude no harm/spying on the user intended, actually i am trying
    to make a software that sort of protects the user...
    so any advice?
    and thanks again
    omri

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,889
    Rep Power
    8

    Default

    Like I said, Java isn't really designed for that sort of capability. I suppose you could try to use the Robot class to create a screen capture and use that to discern what's going on, but I'd say that's a kludgey solution at best.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    Java doesn't have any built in process monitoring API. You might be able to find a 3rd party API that does this. ...or you could kick off some other process monitoring tool using Runtime.exec(), as long as that tool has a command line interface available. On windows, I'm not sure if such a tool exists.

  6. #6
    omriliba is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    Ok thank you both, Do you think that other languages (naimly c++) possess these capabilities?

  7. #7
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,889
    Rep Power
    8

    Default

    Quote Originally Posted by omriliba View Post
    Ok thank you both, Do you think that other languages (naimly c++) possess these capabilities?
    Not sure. What did google tell you? :p
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. #8
    omriliba is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    not much altough i mainly checked msdn
    BUT i am willing to compromise :) how about just getting the current URL from the browser?
    thanks!

  9. #9
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    Quote Originally Posted by omriliba View Post
    Ok thank you both, Do you think that other languages (naimly c++) possess these capabilities?
    It isn't a feature of the language, it's a feature of available API's. But yes, there are c APIs for systemwide process management on every modern OS.

Similar Threads

  1. Getting info from a GUI
    By waysgoose in forum New To Java
    Replies: 1
    Last Post: 10-16-2010, 01:03 PM
  2. SCJP 1.5 info
    By ajeeb in forum New To Java
    Replies: 1
    Last Post: 02-06-2009, 01:04 PM
  3. INFO About JDK1.6
    By ravi in forum New To Java
    Replies: 2
    Last Post: 11-03-2008, 02:30 PM
  4. Looking for some info.
    By Ragster in forum JDBC
    Replies: 2
    Last Post: 01-17-2008, 05:19 PM
  5. JVM Info
    By kishi in forum Advanced Java
    Replies: 0
    Last Post: 11-16-2007, 01:44 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
  •