wfl

windows-foreground-love

API wrapper for AllowSetForegroundWindow

Showing:

Popularity

Downloads/wk

4.1K

GitHub Stars

13

Maintenance

Last Commit

2yrs ago

Contributors

4

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

API wrapper for AllowSetForegroundWindow

Installing

npm install windows-foreground-love

Using

var allowSetForegroundWindow = require('windows-foreground-love').allowSetForegroundWindow
console.log(allowSetForegroundWindow(pid))
console.log(allowSetForegroundWindow()) // all processes will be enabled to set the foreground window

Supported platforms

  • Windows
  • Other platforms: installs, but doesn't do anything and always returns false

Developing

  • npm install -g node-gyp
  • node-gyp configure
  • node-gyp build
  • npm test

Resources

The Old New Thing: Foreground activation permission is like love: You can’t steal it, it has to be given to you

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100