Change focus to another application

P Zero

Registered User.
Local time
Today, 13:24
Joined
Mar 15, 2006
Messages
41
Hi. Its been a while since I've been on here, but I'm back!

I have a button on a form and I need it to do the following -

  1. Check if AutoCAD is running
  2. If AutoCAD is running, maximise it and move the focus to it
  3. If AutoCAD is not running, start it and move the focus to it

I'm thinking this should be fairly simple, but I'm stuck fast and the deadline is looming. Can anyone please help?
 
For the part of determining if it runs:
Search for the GetObject and CreateObject function.

Changing the focus is a different ball game. Probably some API call.
 

Users who are viewing this thread

Back
Top Bottom