Synaccess-networks NP-0801DTM Manuale Utente Pagina 271

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 330
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 270
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
Thenameofthepreco mpiledexecutablefilethatisexecutedatstartupaccordingtolast#STARTMODESCR
setting.
Thisfile,eithertextualorprecompiled,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.Allprecompiledexecutablefilesmusthave.pyoextension.
<script_name>mustmatchtothenameofafilewrittenby#WSCRIPTtohaveitrun.
Thecommanddoesnotcheckwhetheratextualscriptnamed<script_name>doesexistornotintheEasyScript
relatednonvolatilememory.Ifthefile<script_name>isnotpresentatstartupthenthecompilerdoesnot
execute.
ScriptExecutionStartMode#STARTMODES CR
Setcommandsetsthecurrentscript(see#ESCRIPT)executionstartmode.
Readcommandreportsthecurrentscriptstartmodeandthecurrentscriptstarttimeout,intheformat:
Vedere la pagina 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 329 330

Commenti su questo manuale

Nessun commento