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

📄 script1.vbs

📁 在程序中加入脚本支持
💻 VBS
字号:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''
'' script1.vbs - Don Box, 1996-1997
'' 
'' A VBScript program
'' 

'' handler that will execute when games are played by "shell"
Sub shell_OnPlayGame(s)
  shell.writeLn("playing " & s)
End Sub

'' function that starts three instances of notepad and one instance of freecell
Sub Foo()
    FOR i = 1 TO 3
        shell.exec "notepad.exe"
    NEXT
    shell.exec "freecell.exe"
End Sub

'' function that writes some text to the console
Sub Bar(x, y)
    shell.write(x)
    shell.write(", ")
    shell.writeLn(y)
    shell.writeLn("VBScript Rocks!")
    FOR i = 1 TO y
        shell.writeLn("I love COM")
    NEXT
    shell.writeLn("Every app should be scriptable!")
End Sub

'' main entry point that uses the shell object
Sub main()
    shell.alert("The X is now silent AND invisible!")
    Bar 10, 20
    Foo
End Sub


  

⌨️ 快捷键说明

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