Back

SetAutoStart

Hello World

Set a DroidScript project name which will be launched automatically when DroidScript starts.

app.SetAutoStart( appName )

Note: This function is deprecated. in favour of ide.AutoStart


See Also: SetSharedApp, SetAutoBoot

Example - Auto Start 'Hello World'

function OnStart()
{
    app.SetAutoStart( "Hello World" );
    app.ShowPopup( "You may now restart DroidScript." );
}
Copy All       Run      

Example - Unset Autostart

function OnStart()
{
    app.SetAutoStart( "" );
    app.ShowPopup( "Autostart unset." );
}
Copy All       Run      
String