• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic