andrezzzz
asked on
maximise or minimise other aplication
how i can create programm who maximise and minimise otther programm's window ???
ASKER
but if i want minimaize or maximise all aplication.
for example i have in form timer and after every 5 seconds i want maximize one aplication ?
for example i have in form timer and after every 5 seconds i want maximize one aplication ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This example uses notepad, but you can change the application name to anything you want.
procedure TForm1.Button1Click(Sender
var
myapp: Thandle;
begin
MyApp := FindWindow(nil,'Untitled - Notepad');
ShowWindow(MyApp,SW_MAXIMI
end;
procedure TForm1.Button2Click(Sender
var
myapp: Thandle;
begin
MyApp := FindWindow(nil,'Untitled - Notepad');
ShowWindow(MyApp,SW_MINIMI
end;