Re: Testing for an executing application, and switiching to it
From: Marc Rohloff (marc)
Date: 10/15/03
- Next message: Adrian: "Re: Anyone used MS BITS COM API with Delphi ?"
- Previous message: Deborah Pate (TeamB): "Re: Testing for an executing application, and switiching to it"
- In reply to: adze: "Re: Testing for an executing application, and switiching to it"
- Next in thread: adze: "Re: Testing for an executing application, and switiching to it"
- Reply: adze: "Re: Testing for an executing application, and switiching to it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 15 Oct 2003 09:41:07 -0400
> Your instructions were clear and it's not obvious to me what I'm
> doing wrong. I have D7P, WinXP Pro SP1 & Word2K.
WordApplication1.Connect;
WordApplication1.Visible := true;
WordApplication1.Activate;
if WordApplication1.WindowState = wdWindowStateMinimize
then WordApplication1.WindowState := wdWindowStateNormal;
The advantage of this solution over Deborah's (no offense intended) is
that I can see your client's adding requirements like 'and open a new
document' which is hard to implement her way.
> Deborah's suggestion returns a handle for Word, I just need to find
> a way to test the state of the application hanging off that handle
> and restoring it if it's minimised.
ShowWindow(handle, SW_RESTORE);
Marc
- Next message: Adrian: "Re: Anyone used MS BITS COM API with Delphi ?"
- Previous message: Deborah Pate (TeamB): "Re: Testing for an executing application, and switiching to it"
- In reply to: adze: "Re: Testing for an executing application, and switiching to it"
- Next in thread: adze: "Re: Testing for an executing application, and switiching to it"
- Reply: adze: "Re: Testing for an executing application, and switiching to it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|