mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-06 00:13:33 +00:00
Minor fix in case agent does not support remote desktop.
This commit is contained in:
@@ -144,14 +144,7 @@ namespace MeshCentralRouter
|
||||
{
|
||||
isHookWanted = false;
|
||||
}
|
||||
if (Settings.GetRegValue("Exp_KeyboardHookPriority", false))
|
||||
{
|
||||
isHookPriority = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
isHookPriority = false;
|
||||
}
|
||||
isHookPriority = Settings.GetRegValue("Exp_KeyboardHookPriority", false);
|
||||
}
|
||||
|
||||
public void AttachKeyboard()
|
||||
@@ -418,7 +411,8 @@ namespace MeshCentralRouter
|
||||
|
||||
if (remoteKeybaordMap == true) return;
|
||||
|
||||
if (killNextKeyPress > 0) {
|
||||
if (killNextKeyPress > 0)
|
||||
{
|
||||
long t = DateTime.Now.Ticks;
|
||||
if ((t - killNextKeyPress) < 10) { killNextKeyPress = 0; return; }
|
||||
}
|
||||
@@ -631,7 +625,8 @@ namespace MeshCentralRouter
|
||||
private void KVMControl_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
long ct = DateTime.Now.Ticks;
|
||||
if ((lastMouseMove + 30) < ct) {
|
||||
if ((lastMouseMove + 30) < ct)
|
||||
{
|
||||
lastMouseMove = ct;
|
||||
SendMouse(e, 0);
|
||||
}
|
||||
|
||||
@@ -475,7 +475,8 @@ namespace MeshCentralRouter
|
||||
{
|
||||
kvmStats = new KVMStats(this);
|
||||
kvmStats.Show(this);
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
kvmStats.Focus();
|
||||
}
|
||||
|
||||
@@ -1666,6 +1666,7 @@ namespace MeshCentralRouter
|
||||
if (devicesListView.SelectedItems.Count != 1) { return; }
|
||||
ListViewItem selecteditem = devicesListView.SelectedItems[0];
|
||||
NodeClass node = (NodeClass)selecteditem.Tag;
|
||||
if ((node.agentcaps & 1) == 0) { return; } // Agent does not support remote desktop
|
||||
if ((node.conn & 1) == 0) { return; } // Agent not connected on this device
|
||||
if (node.desktopViewer == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user