Solved

minimizing other application

Posted on 2002-05-07
2
121 Views
Last Modified: 2010-04-04
How can i minimize a running application. like for example
the MIRC is running and i only want that application will minimize, how can i do it?
0
Comment
Question by:girlswants_me
2 Comments
 
LVL 2

Expert Comment

by:Tasomia
ID: 6993253
First you need the handle of the Window then
send a WM_SYSCOMMAND message with SC_MINIMIZE.

Example to minimize notepad:

hWindow := FindWindow('notepad',nil);

SendMessage(hWindow, WM_SYSCOMMAND, SC_MINIMIZE, 0);
0
 
LVL 8

Accepted Solution

by:
Cesario earned 60 total points
ID: 6993259
procedure TForm1.Button1Click(Sender: TObject);
VAR
  h : THandle;
begin
  // "AOL" is the caption with Application you whant to minimize
  h := FindWindow ( NIL,'AOL');
  IF H<>0
    Then ShowWindow(h,sw_Minimize);
end;

Good luck
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question