Inspect your Window System with abstracted native calls using N-API.
npm i --save window-system-inspector
At this time, the supported platforms are:
- activeWindow (Returns the active window)
- 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))
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)
For now, Windows is the only supported platform.