0.1.2 • Published 6 years ago

window-system-inspector v0.1.2

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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

:warning: Not supported.

Mac

:warning: Not supported.

Help wanted

For now, Windows is the only supported platform.

Linux and Mac support help are wanted.

Known projects with similar functionalities