I'm doing an NSIS installer and want to check if AutoCAD (2008) is running. I was trying to use FindWindow but it seems that AutoCAD's window has a variable class name..
Afx:00400000:8:00010011:00000000:xxxxxxxx
The last part is changing at every startup so I can't use it. I tried googling it, found this:
http://mail.python.org/pipermail/python-win32/2007-February/005559.htmlUnfortunately I think he was guessing because I couldn't confirm his theory with the parent class name.
Trying to find acad.exe in running processes is a bit messy under NSIS, haven't tried it yet and I'm not sure that I can find the window caption by process. Will be investigating this...
I don't want to go through all open windows checking their class name and caption nor trying to rename acad.exe to find if its locked or not :ugly:
Any ideas?