tweetie777
Programmer
I know how to run an exe file using the SHELLEXECUTE command. How do you close that same file? Thanks to anyone who can help. Please provide a sample of code.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
procedure TForm1.Button1Click(Sender: TObject);
var fnhandle : thandle;
begin
FNHandle := FindWindow(nil,'FormCaptionText');
SendMessage(FNHandle,WM_Close,0,0);
end;