Specifications
EASYSCRIPTEXTENSIONPYTHONINTERPRETER,ATCOMMANDS
271 HSPA+ATCommandsReferenceGuide
Usingthehiddenattribute,youcanprotectyourfilesfrombeingviewedandcopied.Only thefilenamecanbe
viewed,itscontentishiddenevenifthefileisstillbeingruncorrectly.Ensureyoumaintainknowledgeabout
whatthefilecontains.
It’srecommendedtousetheextension.pyonlyfortextualscriptfilesandtheextension.pyoonlyforpre‐
compiledexecutablescriptfiles.
Examples
AT#WSCRIPT="First.py ",54,0
>>>herereceivetheprompt;thentypeorsendthetextualscript,sized54bytes.
OK
Textualscripthasbeenstored.
SelectActiveScript#ESCRIPT
Setcommandselectseither:
ThenameofthetextualscriptfilethatiscompiledandexecutedbytheEasyScript®compileratstartup
accordingtolast#STARTMODESCRsetting,or
Thenameofthepre‐co mpiledexecutablefilethatisexecutedatstartupaccordingtolast#STARTMODESCR
setting.
Thisfile,eithertextualorpre‐compiled,iscalledthecurrentscript.
Readcommandreportsasaquotedstringthefilenameofthecurrentscript.
TestcommandreturnsOKresultcode.
Syntax
Command Commandtype
AT#ESCRIPT=[<script_name>] Set
AT#ESCRIPT? Read
AT#ESCRIPT=? Test
ParametersandValues
<script_name> Stringtype,filename.Maximum16characters,casesensitive.
Notes
Alltextualscriptfilesmusthave.pyextension.Allpre‐compiledexecutablefilesmusthave.pyoextension.
<script_name>mustmatchtothenameofafilewrittenby#WSCRIPTtohaveitrun.
Thecommanddoesnotcheckwhetheratextualscriptnamed<script_name>doesexistornotintheEasyScript
relatednon‐volatilememory.Ifthefile<script_name>isnotpresentatstartupthenthecompilerdoesnot
execute.
ScriptExecutionStartMode#STARTMODES CR
Setcommandsetsthecurrentscript(see#ESCRIPT)executionstartmode.
Readcommandreportsthecurrentscriptstartmodeandthecurrentscriptstarttime‐out,intheformat: