Hello,
I am trying to close the application by .js code and i don't find that. I try with scripts/Window/CloseAll/CloseAll.js or scripts/File/CloseFile/CloseFile.js but these only terminate the current files.
Is there any other way?
Thanks.
[SOLVED] Close the application
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
[SOLVED] Close the application
Last edited by sinase on Wed Mar 31, 2021 8:13 am, edited 3 times in total.
Re: Close the application
Try this:
Code: Select all
var appWin = EAction.getMainWindow();
appWin.quit();
Re: Close the application
Many thanks.
Re: Close the application
Hello,
With the previous code, qcad is running on the background yet ( i can see that in the task manager). I would need to terminate the execution completely, is there other option that i can try?
Thank you.
Regards.
With the previous code, qcad is running on the background yet ( i can see that in the task manager). I would need to terminate the execution completely, is there other option that i can try?
Thank you.
Regards.
Re: Close the application
Hello,
it works as follows:
var appWin = EAction.getMainWindow();
appWin.quit();
this.terminate();
return;
it works as follows:
var appWin = EAction.getMainWindow();
appWin.quit();
this.terminate();
return;