Page 1 of 1

Template buttons, close application / Close application and shutdown PC

Posted: Sat Oct 08, 2016 10:13 am
by bctBCT76
Dear all,

I wish I can place 2 buttons on the main template:
-button one to close Runtime application running;
-button two to close Runtime and shutdown PC.

would that be possible? Please let me know your suggestions to achieve that..

Re: Template buttons, close application / Close application and shutdown PC

Posted: Tue Oct 11, 2016 1:47 pm
by admin
Dear Sir,
yes, you can create a simple code function called by "OnClick" property.

Code for close application:

Function void CloseApplication()
EnableShutdown(false);
CloseSession();
end

Code for shutdown pc:

Function void ShutdownSystem()
EnableShutdown(true);
CloseSession();
end