Author Topic: how to catch autocad acitvate event?  (Read 1770 times)

0 Members and 1 Guest are viewing this topic.

guohq

  • Newt
  • Posts: 84
how to catch autocad acitvate event?
« on: August 06, 2016, 04:30:55 AM »
for example , I open two applications. one is autocad,the other is excel. The current application is excel.when I want to use autocad,the current application will be changed . How to catch this event when autocad is actived?

MickD

  • King Gator
  • Posts: 3636
  • (x-in)->[process]->(y-out) ... simples!
Re: how to catch autocad acitvate event?
« Reply #1 on: August 06, 2016, 08:31:50 PM »
You will need to look outside of the AutoCAD application and talk/listen to the operating system.
Here's a link for some study that should lead you in the right direction, hope it helps

https://msdn.microsoft.com/en-us/library/ms165650.aspx
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien