Node Windows
This is a simple module made for Windows Dock. Made for Windows 10 only.
Overview
- Manages all user open windows
- Gets icon from path
Installing
npm install node-windows-powershell
# or
yarn add node-windows-powershell
Documentation
function: getWindows() -> Window
Returns all visible user opened windows.
function: getIcon(path:string) -> string
Returns a base64 image of the icon present in the path.
Class: Window
Attributes
- title: Window title.
- name: Window process name.
- state: Current window state (starts null).
Methods
- minimize(): Minimizes window.
- restore(): Restores window.
- maximize(): Maximizes window.
- getPath() -> string: Returns executable's path.
- getIcon() -> string: Returns executable's icon in base64.