Object «script»
Last updated
Was this helpful?
Was this helpful?
script.random(min, max);script.random(min, max);var a = script.random(0, 10); // random number from 0 to 10a = script.random(0, 10); # random number from 0 to 10script.readAll('fileName');script.readAll('fileName');var lines = script.readAll('input.txt'); // reads the text file input.txtlines = script.readAll('input.txt'); # reads the text file input.txtscript.removeFile('fileName');script.removeFile('fileName');script.removeFile('file.txt'); // delete file file.txtscript.removeFile('file.txt'); # delete file file.txtscript.run();script.run();script.system();ript.system();script.system("reboot");script.system("reboot");script.time();script.time();script.timer(n);script.timer(n);script.timer(1000);script.timer(1000);script.wait(msCount);script.wait(msCount);script.wait(1000); // stop the execution of the script for one secondscript.wait(1000); # stop the execution of the script for one secondscript.writeToFile('fileName', 'text');script.writeToFile('fileName', 'text');script.writeToFile('output.txt', 'Hello, world'); // write "Hello, world" in the output.txt filescript.writeToFile('output.txt', 'Hello, world'); # write "Hello, world" in the output.txt file