• Post Reply Bookmark Topic Watch Topic
  • New Topic

User Access Monitoring  RSS feed

 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • 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?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • 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
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!