SergioFeitoza Posted May 7, 2020 Posted May 7, 2020 Please see the attachment figure. How to do this using code ? Quote
SergioFeitoza Posted May 8, 2020 Author Posted May 8, 2020 Based on the X11 comment I used code below. It idoes more or less what I need. A question to you all Which code should I include in the code below which would be equivalent to do manually - in the Delphi IDE - the RUN >> PROGRAM RESET . This is not necessary in VCL but when I am running the Unigui code I close the browser page but the Delphi remains "running" //////////////////////////////////////////// procedure TMainForm.CloseBUTClick(Sender: TObject); ( include ShellAPI in the USES clause) var Comando:string; begin Comando:= 'taskkill -im switchgeardesign.exe /f /t'; // Comando:= 'taskkill -im bds.exe /f /t'; ShellExecute(Handle, 'open', 'cmd.exe', PChar('/c'+Comando ), nil, 0); UniApplication.Terminate(' To close the application, just close the tab. To restart click below'); end; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.