mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-23 22:13:14 +03:00
Fixed SMBios fetching problems on some systems.
This commit is contained in:
parent
6e70037a3e
commit
bc9a45c3a3
@ -143,15 +143,45 @@ function SMBiosTables()
|
||||
});
|
||||
return;
|
||||
}
|
||||
throw (process.platform + ' not supported');
|
||||
if (callback) { callback.apply(this, [null]); return; } else { return (null); }
|
||||
};
|
||||
this.parse = function parse(data) {
|
||||
var r = {};
|
||||
try
|
||||
{
|
||||
r.processorInfo = this.processorInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.memoryInfo = this.memoryInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.systemInfo = this.systemInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.systemSlots = this.systemInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.amtInfo = this.amtInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
return r;
|
||||
}
|
||||
this.processorInfo = function processorInfo(data) {
|
||||
|
@ -143,15 +143,45 @@ function SMBiosTables()
|
||||
});
|
||||
return;
|
||||
}
|
||||
throw (process.platform + ' not supported');
|
||||
if (callback) { callback.apply(this, [null]); return; } else { return (null); }
|
||||
};
|
||||
this.parse = function parse(data) {
|
||||
var r = {};
|
||||
try
|
||||
{
|
||||
r.processorInfo = this.processorInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.memoryInfo = this.memoryInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.systemInfo = this.systemInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.systemSlots = this.systemInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
try
|
||||
{
|
||||
r.amtInfo = this.amtInfo(data);
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
}
|
||||
return r;
|
||||
}
|
||||
this.processorInfo = function processorInfo(data) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "meshcentral",
|
||||
"version": "0.2.2-l",
|
||||
"version": "0.2.2-n",
|
||||
"keywords": [
|
||||
"Remote Management",
|
||||
"Intel AMT",
|
||||
|
@ -458,6 +458,7 @@
|
||||
<option value=2>Win+L</option>
|
||||
<option value=3>Win+M</option>
|
||||
<option value=4>Shift+Win+M</option>
|
||||
<option value=6>Win+R</option>
|
||||
</select>
|
||||
<input id="DeskWD" type=button value="Send" onkeypress="return false" onkeydown="return false" onclick="deskSendKeys()">
|
||||
<input id="DeskCAD" style="margin-left:6px" type="button" value="Ctrl-Alt-Del" onkeypress="return false" onkeydown="return false" onclick="sendCAD()">
|
||||
@ -3972,6 +3973,12 @@
|
||||
} else {
|
||||
desktop.m.SendKeyMsgKC([[desktop.m.KeyAction.EXDOWN,0x5B], [desktop.m.KeyAction.EXUP,0x5B]]); // MeshAgent: L-Winkey press, L-Winkey release
|
||||
}
|
||||
} else if (ks == 6) { // WIN+R
|
||||
if (desktop.contype == 2) {
|
||||
desktop.m.sendkey([[0xffe7, 1], [0x72, 1], [0x72, 0], [0xffe7, 0]]); // Intel AMT: Meta-left down, 'l' press, 'l' release, Meta-left release
|
||||
} else {
|
||||
desktop.m.SendKeyMsgKC([[desktop.m.KeyAction.EXDOWN, 0x5B], [desktop.m.KeyAction.DOWN, 82], [desktop.m.KeyAction.UP, 82], [desktop.m.KeyAction.EXUP, 0x5B]]); // MeshAgent: L-Winkey press, 'R' press, 'R' release, L-Winkey release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user