Socket
Book a DemoInstallSign in
Socket

windows-focus-assist

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windows-focus-assist

Gets the Focus Assist status in Windows 10 CU or later.

1.4.0
latest
Source
npmnpm
Version published
Weekly downloads
652
-8.68%
Maintainers
0
Weekly downloads
 
Created
Source

windows-focus-assist

windows-focus-assist checks if Windows 10 Focus Assist - natively, without shelling out, and without any dependencies.

With Windows 10 1803 (Creators Update), Microsoft introduced Focus Assist replacing Quiet Hours. Unfortunately there is no simple registry key anymore for Win32 Apps to check when to be quit. This native node module uses an unsupported/undocumented API to get the status of the Focus Assist. The original code was provided by Rafael Rivera

⚠ The API used by windows-focus-assist can change/break at any time in the future. ⚠

npm install windows-focus-assist
const { getFocusAssist, isPriority } = require('windows-focus-assist');

const focusAssist = getFocusAssist();
console.log('FocusAssist:', focusAssist.name);

const isInPriority = isPriority('myApp.AppUserModelId');
console.log('isInPriorityList:', isInPriority.name);

License

MIT, please see LICENSE for details. Copyright (c) 2018 Jan Hannemann.

Keywords

windows

FAQs

Package last updated on 01 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.