• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

User Access Monitoring

 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to use java to monitor what a user is doing in a GUI environment such as Windows or Mac? For example, is there any way to to know what the last command in the start menu the user visited was? (assuming the program was active when the user visited it)

Any ideas or pointers?
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hm, I've never heard of anything along those lines, and this really seems like the sort of thing that Java's designers would not want to let you do as it would open the door to all sorts of abuses. 'Course that's when they were thinking that Applets would be important in the world. For trusted applications, I suppose it's not unreasonable to allow access to stuff like this. Except it's inherently pretty OS-dependent, no? I'm guessing that to do something like this you'll really have to find OS-specific solutions, accessed through Runtime.exec() or maybe JNI. Unless someone else knows of a nifty new capability added somewhere in one of the recent JDKs...
 
Scott Selikoff
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh it would definitely be OS dependant. I was just wondering if anyone had experiencing accessing windows calls similar to what I'd have to make to do this. Off hand, I thought of one solution that relies on the registry since the registry keeps track of recently opened programs to a limited degree.
 
If you were a tree, what sort of tree would you be? This tiny ad is a poop beast.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic