Link to home
Start Free TrialLog in
Avatar of girlswants_me
girlswants_me

asked on

minimizing other application

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?
Avatar of Tasomia
Tasomia

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);
ASKER CERTIFIED SOLUTION
Avatar of Cesario Lababidi
Cesario Lababidi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial