Call ShowWindow from node via ffi-napi
Win32 only!
What can I do with this?
Hide, show, maximize or minimize a window where you know either the window's hWnd or the process' PID.
The helper methods (methods not starting with "winApi") will only work when you are running node.exe as the main process, unlike running cmd.exe -> node, which makes cmd.exe the main process. This is because they use process.pid
as the PID.
Installing
npm install --save windows-api-show-window
Testing (manual only)
// run with win + rnode {repository-location}/test/index.js
Usage
var api = ; api; api; api; api; api;
Advanced usage
api; api;
Troubleshooting
If node-gyp fails: Check out the node-gyp documentation and felixrieseberg/windows-build-tools