App Context Router
Core API Hook: SetWinEventHook (Foreground Window Change Sync)
Set up context-dependent profiles where keys dynamically switch actions depending on the foreground application focused.
Configuration Parameters
| Parameter | Type | Description |
|---|---|---|
| Target | string | Mapping configuration listing target processes and corresponding action GUID routing mappings. |
config.json Mapping
{
"Type": "AppBasedTrigger",
"Name": "Macro Router Action",
"Target": "photoshop.exe->brush_action_guid, vscode.exe->compile_action_guid"
}
Save inside database layout actions configuration map.
Native Execution Hook
// AppBasedTrigger execution logic var hwnd = Win32.GetForegroundWindow(); Win32.GetWindowThreadProcessId(hwnd, out uint processId); var process = Process.GetProcessById((int)processId); var focusedExe = Path.GetFileName(process.MainModule.FileName).ToLower(); // Parse context map and route execution to matched sub-action UUID var targetGuid = action.ContextRouteMap[focusedExe]; InputManager.Instance.ExecuteActionSync(targetGuid);
Executed within IsoCore remapping runtime loop.
← Back to Actions Directory
IsoKey Module: AppBasedTrigger