Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | app.getParam SEARCH    

  Functions
app.autoRestart
app.booster
app.cancelClose
app.close
app.filename
app.getParam
app.icon
app.init
app.install
app.language
app.maintenance
app.minimize
app.name
app.openAtStartup
app.restart
app.restore
app.setup
app.title
app.uninstall
app.uninstall.create
app.uninstall.remove

  Events
event.initialize
event.load
event.terminate

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
app.getParam

Language: MioScript
Product: MioFactory


Syntax

app.getParam(Index)


Parameters

INTIndexIndex of the parameter to retrieve


Return value

String.



Description

Returns the specified command line parameter.

How to distinguish when an application is started manually


When the application is started by Windows at startup (via the link added in Programs/Startup by the installer), the second parameter is set to AUTOSTART. This is useful if you want to prompt a login window when the user starts the application manually, but not when the application is started automatically by Windows.


if(app.getParam(1) == "AUTOSTART")
   ...
if.else
   ...
if.end