Upload via GUI (186 Dateien)

This commit is contained in:
2026-10-04 14:48:53 +00:00
parent c0b552ef39
commit 8efd5bc497
25 changed files with 2344 additions and 1015 deletions
+12 -3
View File
@@ -68,7 +68,10 @@ public static class DesktopToggle
{
_lastDownTick = 0;
var pt = info.pt;
dispatcher?.BeginInvoke(() => OnDoubleClick(pt));
var first = _lastDownPt;
// Schon im Hook (ohne COM) aussortieren: Doppelklick auf ein Icon = Programmstart
if (!DesktopIcons.HitsIcon(pt.x, pt.y, margin: 8) && !DesktopIcons.HitsIcon(first.x, first.y, margin: 8))
dispatcher?.BeginInvoke(() => OnDoubleClick(pt, first));
}
else
{
@@ -144,9 +147,15 @@ public static class DesktopToggle
SendInput((uint)inputs.Length, inputs, Marshal.SizeOf<INPUT>());
}
private static void OnDoubleClick(POINT pt)
private static void OnDoubleClick(POINT pt, POINT first)
{
if (!IsEmptyDesktopSpot(pt)) return;
if (!IsEmptyDesktopSpot(pt) || !IsEmptyDesktopSpot(first)) return;
// Positionen frisch lesen – der Zwischenspeicher kann ein paar Sekunden alt sein (Icon gerade verschoben)
if (IconsVisible())
{
try { DesktopIcons.RefreshCache(); } catch { return; }
if (DesktopIcons.HitsIcon(pt.x, pt.y, margin: 8) || DesktopIcons.HitsIcon(first.x, first.y, margin: 8)) return;
}
Toggle();
}