开源软件名称(OpenSource Name):sentialx/node-window-manager开源软件地址(OpenSource Url):https://github.com/sentialx/node-window-manager开源编程语言(OpenSource Language):C++ 41.1%开源软件介绍(OpenSource Introduction):node-window-managerManage windows in Windows, macOS and InstallTo install this package, just run $ npm install node-window-manager Quick startThe following example shows how to get the currently focused window's title and hide it. const { windowManager } = require("node-window-manager");
const window = windowManager.getActiveWindow();
// Prints the currently focused window bounds.
console.log(window.getBounds());
// This method has to be called on macOS before changing the window's bounds, otherwise it will throw an error.
// It will prompt an accessibility permission request dialog, if needed.
windowManager.requestAccessibility();
// Sets the active window's bounds.
window.setBounds({ x: 0, y: 0 }); DocumentationThe documentation and API references are located in the |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论