Module Windows-Shell

Windows 外壳程序

在 Windows Desktop, Windows Server, Windows Server Core 以及 Windows PE环境下

运行的轻量 Windows 外壳程序(基本桌面,开始菜单,任务栏,托盘区域,时钟区域)。

详细

WinXShell.jcfg 配置文件
WinXShell.lua 扩展脚本

WinXShell.jcfg

JS_DESKTOP 桌面 设置
JS_THEMES 主题 设置
JS_TASKBAR 任务栏 设置
JS_STARTMENU 开始菜单 设置
JS_QUICKLAUNCH 快速启动栏 设置
JS_NOTIFYAREA 托盘区域 设置
JS_NOTIFYCLOCK 时钟区域 设置
JS_DAEMON Daemon模式 设置
JS_FILEEXPLORER 文件资源管理器 设置

WinXShell.lua

ShellEvents 事件函数(外壳)
CustomActions 自定义时钟信息显示格式

事件函数(外壳)

App:PreShell () 外壳启动前序事件函数
App:OnShell () 外壳启动事件函数
App:OnFirstShellRun () 系统启动后,第一次外壳启动事件函数


详细

WinXShell.jcfg
配置文件
WinXShell.lua
扩展脚本

WinXShell.jcfg

json 格式的配置文件,可配置外壳程序的各部分功能的显示效果。
JS_DESKTOP
桌面 设置

Fields:

  • 3rd_open_arguments string 双击桌面图标时,调用 第三方文件资源管理器 的参数格式
  • cascademenu{'WinXNew'} string 桌面新建二级菜单
  • iconsize int 桌面图标大小
  • bkcolor color 桌面的背景色
  • wallpaper_mode int 壁纸显示模式
    • 0 - strech 拉伸 (默认)
    • 1 - tile 平铺
    • 2 - center 居中
  • wallpaper string 壁纸图片路径,不指定时使用系统壁纸

Usage:

    "JS_DESKTOP": {
        "3rd_open_arguments": "\"%s\"",
        "cascademenu": {
          "WinXNew": "Directory\\Background\\shell\\WinXNew"
        },
        "#iconsize": 32,
        "bkcolor comment": "green for eyes",
        "bkcolor": [199, 237, 204],
        "wallpaperstyle comment": "value:0-strech(default);1-tile;2-center",
        "::WP_MODE": 0,
        "wallpaper comment": "if it is not set or be empty, will use system's wallpaper image file",
        "::WP": ""
    }
JS_THEMES
主题 设置

Fields:

  • taskbar{'bkcolor'} color 任务栏背景色
  • taskbar{'task_line_color'} color 任务图标海缆线颜色
  • taskbar{'textcolor'} color 任务标题颜色

Usage:

    JS_THEMES = {
      "blue": {
        "taskbar": {
          "bkcolor": [0, 120, 215],
          "task_line_color": [238, 238, 238],
          "textcolor": "0xffffff"
        }
      },
      "dark": {
        "taskbar": {
          "bkcolor": [38, 38, 38],
          "task_line_color": [238, 238, 238],
          "textcolor": "0xffffff"
        }
      },
      "light": {
        "taskbar": {
          "style": "light",
          "bkcolor": [238, 238, 238],
          "task_line_color": [0, 120, 215],
          "textcolor": "0x000000"
        }
      }
    }
JS_TASKBAR
任务栏 设置

Fields:

  • visible bool 是否显示任务栏
  • smallicon bool 是否使用小图标显示
  • thumbnail bool 是否显示任务缩略图
  • task_close_button bool 是否显示任务快捷关闭按钮
  • no_task_title bool 是否隐藏任务标题
  • userebar bool 是否使用rebar(快速启动栏)
  • theme string 主题名
  • height int 任务栏高度

Usage:

    "JS_TASKBAR": {
      "visible"true,
      "smallicon": false,
      "thumbnail": true,
      "task_close_button": true,
      "no_task_title": false,
      "userebar": false,
      "theme": "dark",
      "height": 40
    }
JS_STARTMENU
开始菜单 设置

Fields:

  • enabled bool 是否响应开始菜单
  • start_pushed_bkcolor color 开始菜单按下状态的背景颜色
  • start_icon string 开始菜单图标
    • theme - 主题资源图标(exe文件的 ICO 资源)
    • empty - 空白图标
    • custom - 自定义图标(exe文件的 ICO 资源)
  • notopitems bool 隐藏开始菜单顶部快捷方式图标
  • noprograms bool 隐藏 程序 组
  • nosettings bool 隐藏 设定
  • nobrowse bool 隐藏 浏览
  • noconnections bool 隐藏 网络连接
  • nofind bool 隐藏 查找
  • norun bool 隐藏 运行
  • nologoff bool 隐藏 注销
  • norestart bool 隐藏 重启
  • noshutdown bool 隐藏 关机
  • noterm bool 隐藏 退出
  • commands{'reboot'} json 自定义重启命令
  • commands{'shutdown'} json 自定义关机命令

Usage:

    "JS_STARTMENU": {
        "enabled"true,
        "start_pushed_bkcolor": [0, 100, 180],
        "start_icon_comment": "theme;empty;custom",
        "start_icon": "theme",
        "notopitems": false,
        "noprograms": false,
        "nosettings": true,
        "nobrowse": false,
        "noconnections": false,
        "nofind": true,
        "norun": false,
        "nologoff": true,
        "norestart": false,
        "noshutdown": false,
        "noterm": true,
        "commands": {
          "reboot": {
            "command": "Wpeutil.exe",
            "parameters": "Reboot"
          },
          "shutdown": {
            "command": "Wpeutil.exe",
            "parameters": "Shutdown"
          }
        }
    }
JS_QUICKLAUNCH
快速启动栏 设置

Fields:

  • maxiconsinrow bool 快速启动栏最大单行图标个数
  • 3rd_startup_arguments bool 第三方文件资源管理器打开默认参数
  • hide_showdesktop bool 是否显示显示桌面图标
  • hide_fileexplorer bool 是否显示文件资源管理器图标
  • hide_fixedsep bool 是否隐藏系统与用户图标分割线
  • hide_usericons bool 是否隐藏用户图标
  • folder string 用户图标所在路径

Usage:

    "JS_QUICKLAUNCH": {
        "maxiconsinrow": 20,
        "3rd_startup_arguments": "",
        "hide_showdesktop": false,
        "hide_fileexplorer": false,
        "hide_fixedsep": false,
        "hide_usericons": false,
        "folder": "Microsoft\\Internet Explorer\\Quick Launch\\User Pinned\\TaskBar"
    }
JS_NOTIFYAREA
托盘区域 设置

Fields:

  • hide_toggle_button bool 是否隐藏托盘图标折叠按钮
  • hide_showdesktop_button bool 是否隐藏显示桌面按钮
  • handle_system_network bool 是否接管系统原生网络图标点击事件
  • handle_system_volume bool 是否接管系统原生网络图标点击事件

Usage:

    "JS_NOTIFYAREA": {
        "hide_toggle_button": false,
        "hide_showdesktop_button": false,
        "handle_system_network": true,
        "handle_system_volume": true
    }
JS_NOTIFYCLOCK
时钟区域 设置

Fields:

  • visible bool 是否显示时钟区域

Usage:

    JS_NOTIFYCLOCK = {
        "visible": true
    }
JS_DAEMON
Daemon模式 设置

Fields:

  • clockarea_click json 定义时钟区域单击时调用命令
  • clockarea_dbclick json 定义时钟区域双击时调用命令
  • screen_brightness int 亮度

Usage:

    "JS_DAEMON": {
        "clockarea_click": {
          "command": "##{JVAR_MODULEPATH}\\#{JVAR_MODULENAME}",
          "parameters": "-code wxsUI('UI_Calendar','main.jcfg')"
        },
        "clockarea_dbclick": {
          "command": "timedate.cpl"
        },
        "screen_brightness": 100
      }
JS_FILEEXPLORER
文件资源管理器 设置

Fields:

  • 3rd_filename string 第三方文件资源管理器程序路径
  • padding-bottom int 内置文件资源管理器(文件打开对话框)的底部高度

Usage:

    JS_FILEEXPLORER = {
        "3rd_filename": "##{JVAR_MODULEPATH}\\explorer++.exe",
        "padding-bottom": 20
    }

WinXShell.lua

ShellEvents
事件函数(外壳)
CustomActions
自定义时钟信息显示格式

事件函数(外壳)

App:PreShell ()
外壳启动前序事件函数
App:OnShell ()
外壳启动事件函数
App:OnFirstShellRun ()
系统启动后,第一次外壳启动事件函数
generated by LDoc 1.4.6