⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 script1.jvs

📁 在程序中加入脚本支持
💻 JVS
字号:
/////////////////////////////////////////////////////////////
//
// script1.jvs - Don Box, 1996-1997
// 
// A JavaScript program
//

// handler that will execute when games are played by "shell"
function shell_OnPlayGame(s) {
  shell.writeLn("playing " + s);
}

// function that starts three instances of notepad and one instance of freecell
function Foo() {
    for (i = 0; i < 3; i++) {
        shell.exec("notepad.exe")
    }
    shell.exec("freecell.exe")
}

// function that writes some text to the console
function Bar(x, y) {
    shell.write(x)
    shell.write(", ")
    shell.writeLn(y)
    shell.writeLn("JavaScript Rocks!")
    while (y--) {
        shell.writeLn("I love COM")
	}
    shell.writeLn("Every app should be scriptable!")
}

// main entry point that uses the shell object
function main() {
    shell.alert("The X is now silent AND invisible!")
    Bar(10, 20)
    Foo()
}



  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -