-1

I'm trying to write a Java app for monitoring the autocad usage in my company... like a log with usage timing. Is it possible with java to check if autocad window (or any other service) is focused?

Thank you in advance!

  • Maybe thru something like : Runtime.getRuntime().exec("cmd", "/c", "taskmgr && doSomething"); , or ProcessBuilder builder = new ProcessBuilder("cmd", "/c", "taskmgr && doSomething" ); . Of course there might be other better solutions. – loadP Jun 13 '17 at 04:27

1 Answers1

0

Not exactly what you are looking for but you can get AutoCAD to write the contents of the text window to a log file. (LOGFILEMODE system variable, see also LOGFILEPATH and LOGFILENAME) You would need to enable the setting and set the path and name on each machine. Then you have the painful task of parsing the log files.

mohnston
  • 737
  • 1
  • 6
  • 18