prinall.vbs
来自「是一个很好的编辑器」· VBS 代码 · 共 21 行
VBS
21 行
' it will print all open files to printer
const module_name = "PrintAll" 'this name must be unique !!!
const module_ver = "0.001a" 'version
sub PrintAll
set obj = NewEditor()
for i = 0 to editorsCount - 1
obj.assignEditorByIndex(i)
if i = 0 then 'for first file we call printer settings dialog
obj.printFile(True)
else 'all other files will be printed to selected printer
obj.printFile(False)
end if
next
end sub
' name "Init" is required, its called automatically during initialization to create menu items
sub Init
addMenuItem "Print all files","", "PrintAll"
end sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?