Browse Source

fix

tags/v1.0.0
3136352472 5 years ago
parent
commit
637e2c1da8
  1. BIN
      CommandTrayHost/CommandTrayHost.exe
  2. 1
      CommandTrayHost/command_tray_host.cache
  3. 154
      CommandTrayHost/config.json
  4. 17
      preload.js

BIN
CommandTrayHost/CommandTrayHost.exe

1
CommandTrayHost/command_tray_host.cache

@ -1 +0,0 @@
{"configs":[{"alpha":170,"bottom":708,"enabled":true,"left":384,"name":"cmd例子","right":1344,"start_show":true,"top":200,"valid":11},{"alpha":255,"bottom":0,"enabled":false,"left":0,"name":"cmd例子3","right":0,"start_show":false,"top":0,"valid":0}]}

154
CommandTrayHost/config.json

@ -1,154 +0,0 @@
{
/**
* 0. wiki.
* 1. "cmd".exe..bat, 使 cmd.exe /ccmd.exe /k.
* 2. C:\\Windowsjson
* 3. ..\..\icons\icon.ico
*
* cmdworking_directory
* CommandTrayHost.exe
* 4. cmdpath
* path: i) pathcmdpathcmd
* ii) i) CommandTrayHost.exe
* working_directory:
* i) working_directory>CommandTrayHost.exe
* ii) i) path
* 5. Unicode()UTF-8
* VS CodeSublime TextJSON with Comments
* 6. CommandTrayHost.exe.
*
* 7. "enable_cache": true command_tray_host.cache
*
* CommandTrayHost.execonfig.json
* config.json(
* )退
* 8. 使alt win shift ctrl
* 0-9 A-Z.0x26
* https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
*
*
* 9. crontab crontab使
* 0 0/10 * * * * 10
* 0 1,11,21 * * * 1 11 21
* 0 2/10 12-14 * * * 1214210
* 10Mrotaterotate500
*/
"configs": [
{
// 8
"name": "cmd例子", //
"path": "C:\\Windows\\System32", // cmdexe,,CommandTrayHost.exe
"cmd": "cmd.exe", // cmd.exe
"working_directory": "", // . >CommandTrayHost.exepath
"addition_env_path": "", // dll
"use_builtin_console": false, // CREATE_NEW_CONSOLE
"is_gui": false, // GUI
"enabled": true, // CommandTrayHost
//
// CommandTrayHostUIPI/
"require_admin": false, //
"start_show": false, // ()
"ignore_all": false, //
"position": [ //
0.2, // STARTUPINFO.dwX 10-1
200 // STARTUPINFO.dwY,
],
"size": [ //
0.5, // STARTUPINFO.dwXSize,
0.5 // STARTUPINFO.dwYSize,
],
"icon": "", //
"alpha": 170, // 0-255,0255
"topmost": false, //
// 7
"hotkey": { //
"disable_enable": "Shift+Win+D", // /
"hide_show": "Shift+Win+H", // /
"restart": "Shift+Win+R", //
"elevate": "Shift+Win+A", //
},
"not_host_by_commandtrayhost": false, // trueCommandTrayHost
"not_monitor_by_commandtrayhost": false, // trueCommandTrayHost退
"kill_timeout": 200, // ms200ms
"exclusion_id": 1, // id0id
"kill_process_tree": false, // nginx. true,kill_timeout
},
{
"name": "cmd例子3",
"path": "C:\\Windows\\System32",
"cmd": "cmd.exe",
"working_directory": "",
"addition_env_path": "",
"use_builtin_console": false,
"is_gui": false,
"enabled": false,
},
],
"global": true,
//
"require_admin": false, // CommandTrayHostUAC
"icon": "", // icoico
"icon_size": 256, // 256 32 16
"cmd_menu_max_length": 0, // cmdpath00...
"lang": "auto", // zh-CN en-US https://msdn.microsoft.com/en-us/library/cc233982.aspx
"groups": [ // groups()object()object40objectname
{
"name": "cmd例子分组1", //
"groups": [
0, // configs0
1,
],
},
{
"name": "cmd例子分组2",
"groups": [
2,
1,
],
},
2,
{
"name": "empty test", // groupsname
},
],
"enable_groups": true, //
"groups_menu_symbol": "+", //
"left_click": [
0,
1
], // / configs0.CommandTrayHost
"enable_cache": true, // cache
"conform_cache_expire": true, // CommandTrayHostcachefalse
"disable_cache_position": false, //
"disable_cache_size": false, //
"disable_cache_enabled": true, //
"disable_cache_show": false, //
"disable_cache_alpha": false, // (alphaconfigs)
// 7
"hotkey": { //
"disable_all": "Alt+Win+Shift+D",
"enable_all": "Alt Win + Shift +E", // +
"hide_all": "Alt+WIN+Shift+H", //
"show_all": "AlT Win Shift s", //
"restart_all": "ALT+Win+Shift+U",
"elevate": "Alt+wIn+Shift+a",
"exit": "Alt+Win+Shift+X", //
"left_click": "Alt+Win+Shift+L",
"right_click": "Alt+Win+Shift+R",
//
"add_alpha": "Alt+Ctrl+Win+0x26", // ()
"minus_alpha": "Alt+Ctrl+Win+0x28", // Alt+Ctrl+Win+
"topmost": "Alt+Ctrl+Win+T", //
"hide_current": "Alt+Ctrl+Win+H", //
"show_all_docked": "Alt+Ctrl+Win+S", //
},
"repeat_mod_hotkey": false, // ,Windows XP
"global_hotkey_alpha_step": 5, //
"show_hotkey_in_menu": true, //
"enable_hotkey": true,
"start_show_silent": true, // ()
"auto_hot_reloading_config": true, // true
"auto_update": true,
"skip_prerelease": true,
"keep_update_history": false, //
}

17
preload.js

@ -14,8 +14,9 @@ function get(name) {
}
function inits() {
function p(page, cb) {
$.get("http://oa.ouxuan.net/api.php?m=index&a=getyydata&adminid=2&cfrom=mweb&event=wwc&num=work&key=&loadci=1&page=" + page, function (data) {
$.get(`http://oa.ouxuan.net/api.php?m=index&a=getyydata&adminid=${adminid}&cfrom=mweb&event=wwc&num=work&key=&loadci=1&page=${page}`, function (data) {
var data = JSON.parse(data);
if (data.code == 200) {
if (page < data["data"]["maxpage"]) {
@ -61,11 +62,17 @@ function inits() {
fs.writeFileSync("task.json", JSON.stringify(result))
setTimeout(function () {
location.reload()
// location.reload()
}, 1 * 1000);
})
}
start()
setTimeout(() => {
console.log(js)
console.log(js.request('adminid'))
console.log(adminid)
start()
}, 2000);
}
@ -73,8 +80,8 @@ function inits() {
window.addEventListener('DOMContentLoaded', () => {
let m = get("m");
// inits()
let m = get("m");
inits()
if (PageJs[m]) {
PageJs[m]()
} else {

Loading…
Cancel
Save