Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Skye Yu
jensen
Commits
47b45b87
Commit
47b45b87
authored
Dec 13, 2024
by
Skye Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(send schedule info): send data size adjust to 52 bits
parent
2c149765
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
37 deletions
+57
-37
jensen.js
src/utils/jensen.js
+5
-3
utils.js
src/utils/utils.js
+52
-34
No files found.
src/utils/jensen.js
View file @
47b45b87
...
...
@@ -917,13 +917,15 @@ Jensen.prototype.sendScheduleInfo = function (infos) {
if
(
shortcutKeys
[
info
.
platform
]
&&
shortcutKeys
[
info
.
platform
][
info
.
os
])
{
codes
=
shortcutKeys
[
info
.
platform
][
info
.
os
];
}
let
startDate
=
new
Array
(
7
).
fill
(
0
);
let
endDate
=
new
Array
(
7
).
fill
(
0
);
let
startDate
=
new
Array
(
8
).
fill
(
0
);
let
endDate
=
new
Array
(
8
).
fill
(
0
);
if
(
info
.
startDate
&&
info
.
endDate
)
{
startDate
=
sliceTime
(
formatTime
(
info
.
startDate
));
endDate
=
sliceTime
(
formatTime
(
info
.
endDate
));
startDate
.
push
(
0x00
);
endDate
.
push
(
0x00
);
}
const
reserved
=
0x00
;
// 预留
const
reserved
=
[
0x00
,
0x00
]
;
// 预留
bodys
=
bodys
.
concat
([...
startDate
,
...
endDate
,
reserved
,
...
codes
]);
}
console
.
log
(
'send schedule info'
,
infos
,
bodys
);
...
...
src/utils/utils.js
View file @
47b45b87
...
...
@@ -174,7 +174,7 @@ const enterKeyCode = (answer = 0, hangup = 0, reject = 0, micMute = 0) => {
if
(
hangup
)
code
|=
0x01
<<
1
;
if
(
reject
)
code
|=
0x01
<<
2
;
if
(
micMute
)
code
|=
0x01
<<
3
;
return
code
;
return
[
0x00
,
code
]
;
};
const
emptyCodes
=
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
];
...
...
@@ -182,129 +182,147 @@ const emptyCodes = [0, 0, 0, 0, 0, 0, 0, 0];
export
const
shortcutKeys
=
{
zoom
:
{
Windows
:
[
enterKeyCode
(
0
,
1
),
...
enterKeyCode
(
0
,
1
),
...
HotKeyBuilder
.
build
(
0x04
,
0x01
),
...
HotKeyBuilder
.
withAlt
().
withKey
(
'Q'
).
build
(),
...
HotKeyBuilder
.
build
(
0x04
,
0x10
),
...
HotKeyBuilder
.
withAlt
().
withKey
(
'A'
).
build
()
],
Mac
:
[
enterKeyCode
(
0
,
1
),
...
enterKeyCode
(
0
,
1
),
...
HotKeyBuilder
.
build
(
0x04
,
0x01
),
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'W'
).
build
(),
...
HotKeyBuilder
.
build
(
0x04
,
0x10
),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'A'
).
build
()
],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
teams
:
{
Windows
:
[
enterKeyCode
(),
...
enterKeyCode
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'A'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'H'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'D'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'M'
).
build
()
],
Mac
:
[
enterKeyCode
(),
...
enterKeyCode
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'A'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'H'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'M'
).
build
()
],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
'google-meeting'
:
{
Windows
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withControl
().
withKey
(
'D'
).
build
()],
Mac
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'D'
).
build
()],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Windows
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withControl
().
withKey
(
'D'
).
build
()],
Mac
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'D'
).
build
()],
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
webex
:
{
Windows
:
[
enterKeyCode
(),
...
enterKeyCode
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'C'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withKey
(
'L'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withKey
(
'D'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withKey
(
'M'
).
build
()
],
Mac
:
[
enterKeyCode
(),
...
enterKeyCode
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'C'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'L'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'M'
).
build
()
],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
feishu
:
{
Windows
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'D'
).
build
()],
Mac
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
()],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Windows
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'D'
).
build
()
],
Mac
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
()],
Linux
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
lark
:
{
Windows
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'D'
).
build
()],
Mac
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
()],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Windows
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'D'
).
build
()
],
Mac
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'D'
).
build
()],
Linux
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
weChat
:
{
Windows
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Mac
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Windows
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Mac
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
line
:
{
Windows
:
[
enterKeyCode
(
0
,
1
,
1
),
...
enterKeyCode
(
0
,
1
,
1
),
...
emptyCodes
,
...
HotKeyBuilder
.
withKey
(
'ESCAPE'
).
build
(),
...
HotKeyBuilder
.
withKey
(
'ESCAPE'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'A'
).
build
()
],
Mac
:
[
enterKeyCode
(
0
,
1
,
1
),
...
enterKeyCode
(
0
,
1
,
1
),
...
emptyCodes
,
...
HotKeyBuilder
.
withKey
(
'ESCAPE'
).
build
(),
...
HotKeyBuilder
.
withKey
(
'ESCAPE'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'A'
).
build
()
],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
'whats-app'
:
{
Windows
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Windows
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
],
Mac
:
[
enterKeyCode
(),
...
enterKeyCode
(),
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'W'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'W'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'M'
).
build
()
],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
slack
:
{
Windows
:
[
enterKeyCode
(),
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'SPACE'
).
build
()
],
Mac
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'SPACE'
).
build
()],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Mac
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'SPACE'
).
build
()
],
Linux
:
[...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
},
discord
:
{
Windows
:
[
enterKeyCode
(),
...
enterKeyCode
(),
HotKeyBuilder
.
withControl
().
withKey
(
'ENTER'
).
build
(),
...
emptyCodes
,
...
HotKeyBuilder
.
withKey
(
'ESCAPE'
).
build
(),
...
HotKeyBuilder
.
withControl
().
withShift
().
withKey
(
'M'
).
build
()
],
Mac
:
[
enterKeyCode
(),
...
enterKeyCode
(),
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'ENTER'
).
build
(),
...
emptyCodes
,
...
HotKeyBuilder
.
withGuiKey
().
withKey
(
'ESCAPE'
).
build
(),
...
HotKeyBuilder
.
withGuiKey
().
withShift
().
withKey
(
'M'
).
build
()
],
Linux
:
[
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
Linux
:
[
...
enterKeyCode
(),
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
,
...
emptyCodes
]
}
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment