User Tools

Site Tools


Privacy Policy


Version 2.50 is out since Jan 1st 2022

Frequently Asked Questions


Note for contributors

If you wish to create a new page in the DroidScript wiki, please click on the most appropriate namespace above and follow the notes for contributors there.

Because of spam, it has been necessary to add a CAPTCHA to the registration form and the save option for editing pages. You will not need to prove you are human if you are logged in, so please register.

Please feel free to improve any existing page, as well as adding new pages to increase the sum of public knowledge about DroidScript.

Formatting Syntax


Table of Contents

System Procedure


Some controls use the same methods.
For examples of the same methods look here.

Method Description
Sys.Out( cmd ) cmd will be passed to shell. For example, “echo hi >/sdcard/out.txt\n”. To obtain execution results, redirect standard out (>) and/or stderr (2>) to a temporary file in a writable directory, then read it back in using app.ReadFile(). NOTE: It is important to include the newline character at the end (\n). Otherwise, your system procedure will only work the first time, and subsequent times will delay output until the DroidScript's termination. Also note that output may not be immediately available. As a workaround, If the output file does not exist yet, you can use setTimeout() to poll for output repeatedly until it arrives.
Sys.ReadFileAsByte( filename ) Return the decimal number for the ASCII code of the first byte of the named file.
Sys.WriteToFile( filename, string ) Write the specified string to the named file. (app.WriteFile does the same)


built_in/sys_proc.txt · Last modified: 2015/11/12 07:23 (external edit)