bottom-window
Version:
Send a window to the bottom of the Z-order by title (Windows only)
15 lines (12 loc) • 407 B
JavaScript
const path = require('path');
const { execFile } = require('child_process');
function sendToBottom(title, callback) {
const binaryPath = path.join(__dirname, 'bin','Release', 'BottomWindow.exe');
execFile(binaryPath, ['-t', title], (error, stdout, stderr) => {
if (error) return callback(error, null);
callback(null, stdout.trim());
});
}
module.exports = {
sendToBottom,
};