You can use the FindWindow method to determine if the IDE is running.
This is not a perfect solution since it only tells you that Delphi is
running on your computer. It does not tell you if it currently being
used to debug.


// Adjust for your version of Delphi if needed.

   if FindWindow( 'TApplication', 'Delphi 6' ) = 0 then
      ShowMessage( 'Delphi is not running' )
   else
      ShowMessage( 'Delphi is running' );



Alternatively, you can use the EnumWindows method, but it essentially
does the same thing.






-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wilfried Mestdagh
Sent: Monday, June 06, 2005 5:00 AM
To: [email protected]
Subject: running inside delphi IDE

Hello,

I have several programs that just display tray icon when starting up.
But when I have to debug / maintain such programs with delphi IDE this
is annoying of course.

I like to set some code in my program that this does not happens. So I
like to detect if I'm running inside the delphi IDE. Someone know how ?

---
Rgds, Wilfried
http://www.mestdagh.biz


__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to