【文件属性】:
文件名称:active-win-cli:获取活动窗口的titleidetc
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-26 07:56:23
JavaScript
主动双赢
获取的标题/ id / etc (macOS和Linux)
安装
$ npm install --global active-win-cli
用法
$ active-win --help
Usage
$ active-win [property]
Returns title, id, app, pid, or the specified property
Examples
$ active-win
npm install
54
Terminal
368
$ active-win app
Terminal
小费
您可以将id属性与内置的screencapture CLI工具一起使用,以对活动窗口进行屏幕截图:
$ screencapture -l$(active-win id) screensh
【文件预览】:
active-win-cli-main
----.gitignore(13B)
----package.json(893B)
----cli.js(685B)
----test.js(273B)
----.github()
--------workflows()
----license(1KB)
----readme.md(763B)
----.gitattributes(29B)
----.editorconfig(190B)