|
|
|
|
Functions
Events
MioScript Reference
|
|
Syntax
| app.init(productId, name, version, build, log, runAsProcess) |
Parameters
| PID | productId | Product ID. Uses {APP_ID} for the ID of the current product.
| | STRING | name | Product Name. Uses {APP_NAME} for the ID of the current product.
| | STRING | version | Version Number. Uses {APP_VERSION} for the version number defined in the tab Settings.
| | STRING | build | Build Number. Uses {APP_BUILD} for the version number increased automatically by MioFactory when you publish your application.
| | BOOL | log | Set to {CREATE_LOG} to enable or disable the log file as set in the tab settings.
| | BOOL | runAsProcess | Default is false. When this parameter is set to true, the application is not visible in the list of applications in the Windows Task Manager. The application is listed only in the list of processes, and is not visible when the user press ALT+TAB to switch from an application to another. |
Return value
No value is returned.
Description
Initializes the application.
This function do various tasks such as setting the application icon, creating an unique user Id, initializing the log file a variables.
When found, the file app.ico is used as the application icon. This file should be stored in the application folder.
You should call this function in event.load as shown below.
Note: This function is defined in the library klib.k and is linked automatically. |
MioScript Sample Code
event.load
app.init("{APP_ID}", "{APP_NAME}", "{APP_VERSION}", "{APP_BUILD}", "{CREATE_LOG}")
...
event.end |
|
|
|