System Icon
System

Unified System Commands

Core API Hook: Shell32 / Registry Automation

Trigger general system settings toggles (e.g. Do Not Disturb, Lock Screen, empty Recycle Bin) through one-touch keys.

Configuration Parameters

Parameter Type Description
Target string The unified system target command choice: 'LockWorkstation', 'ToggleMute', 'EmptyRecycleBin', 'ToggleDND', or 'ShowDesktop'.

config.json Mapping

{
  "Type": "System",
  "Name": "Lock Workstation",
  "Target": "LockWorkstation"
}

Save inside database layout actions configuration map.

Native Execution Hook

// System execution logic
if (action.Target == "LockWorkstation")
{
    [DllImport("user32.dll")]
    public static extern bool LockWorkStation();
    LockWorkStation();
}
else if (action.Target == "EmptyRecycleBin")
{
    [DllImport("Shell32.dll", CharSet = CharSet.Unicode)]
    static extern uint SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, uint dwFlags);
    SHEmptyRecycleBin(IntPtr.Zero, null, 0x00000007); // SHERB_NOCONFIRMATION
}

Executed within IsoCore remapping runtime loop.

← Back to Actions Directory IsoKey Module: System