Board index » delphi » FindWindow API call
Randy R. Johnson
![]() Delphi Developer |
Wed, 18 Aug 1999 03:00:00 GMT
|
Randy R. Johnson
![]() Delphi Developer |
Wed, 18 Aug 1999 03:00:00 GMT
FindWindow API callHi, I'm trying to write a launcher program which will detect if there is -Benjamin |
Jani J?rvin
![]() Delphi Developer |
Wed, 18 Aug 1999 03:00:00 GMT
Re:FindWindow API call"Randy R. Johnson" <rrj...@earthlink.net> wrote: Quote>I'm trying to write a launcher program which will detect if there is caption. If you leave either parameter as nil, it means that it is a "wildcard" ie. anything goes. Delphi forms use the name of the form type ("TMainForm" for example) You could also use the TApplication class (corresponds to the Example: if (FindWindow('TApplication','Your_Title_Here') <> 0) then HTH. Regards, Jani J?rvinen Tools, information, tips, reviews & bug lists mailto:ja...@dystopia.fi |
Michael Suedka
![]() Delphi Developer |
Wed, 18 Aug 1999 03:00:00 GMT
Re:FindWindow API callrrj...@earthlink.net (Randy R. Johnson) wrote Quote> I'm trying to write a launcher program which will detect if there is If you can uniquely identify your program by a classname or a window Michael Michael Suedkamp m...@suedkm.franken.de |
John
![]() Delphi Developer |
Thu, 19 Aug 1999 03:00:00 GMT
Re:FindWindow API callQuote> rrj...@earthlink.net (Randy R. Johnson) wrote minimise it. Put a button on a delphi form and add the following code. It works, I'll leave it up to others to clean up the code. procedure TForm1.Button1Click(Sender: TObject); begin if hwnd > 0 then // if found end; --------------------------------------- |
John
![]() Delphi Developer |
Sat, 21 Aug 1999 03:00:00 GMT
Re:FindWindow API callQuoteRandy R. Johnson wrote: "Calculator" procedure TForm1.Button1Click(Sender: TObject); begin if hwnd > 0 then end; end. |
M Predd
![]() Delphi Developer |
Sat, 21 Aug 1999 03:00:00 GMT
Re:FindWindow API callAnother way to do this is to add a string to the global atom table when There is an article in a recent PC Magazine by Jeff Prosise that Mark QuoteJohn wrote: |