Update cookies preferences
Promotic

onAppStartBegin - event of the PmaRoot object

Description:
The event is triggered immediately after the application is launched.
Parameters:
pMe(Object) Reference to the PmaRoot object where the event rises.
pEvent(Object) Reference to an object describing detailed information about the specific event.
pEvent.Reset - (Boolean) [for reading] If it is true, then the previous run of the application has been exited illegal (e.g. computer reset, outage, etc.). Otherwise the value is false.
Note:
At that time still no Pma objects are created and therefore their properties and methods cannot be used in the event algorithm. After execution of this event, starting the application continues by creating Pma objects (the onStart event is triggered for each object) and finally the onAppStartEnd event is triggered.
See also:
Example:
The automatic start of the disk control if the previous launching the PROMOTIC application hasn't been terminated correctly
JavaScriptVBScriptSelect and copy to clipboard

if (pEvent.Reset)
{
Pm.CreateProcessSync("SCANDSKW.EXE /a /n", "");
}
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.