window-system-inspector

0.1.2 • Public • Published

Window System Inspector

Current Version: 0.1.2

Inspect your Window System with abstracted native calls using N-API.

Install

npm i --save window-system-inspector

At this time, the supported platforms are:

Platforms

Windows

Supported methods:

  • activeWindow (Returns the active window)

Window object properties:

  • threadId (The thread that created this window)
  • processId (The process identifier)
  • processName (The process name)
  • processPath (The process file path)
  • title (The window title)
  • bounds (The window bounds. (x, y, width, height))

Code sample:

const wsinspector = require('window-system-inspector')

setInterval(() => {
  const activeWindow = wsinspector.activeWindow()

  console.log(`\nThread Id: ${activeWindow.threadId}`)

  console.log(`Process Id: ${activeWindow.processId}`)
  console.log(`Process Name: ${activeWindow.processName}`)
  console.log(`Process Path: ${activeWindow.processPath}`)

  console.log(`Title: ${activeWindow.title}`)

  console.log(`Bounds: ${JSON.stringify(activeWindow.bounds)}`)
}, 1000)

Linux

⚠️ Not supported.

Mac

⚠️ Not supported.

Help wanted

For now, Windows is the only supported platform.

Linux and Mac support help are wanted.

Known projects with similar functionalities

Package Sidebar

Install

npm i window-system-inspector

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

17.2 kB

Total Files

14

Last publish

Collaborators

  • aseu