赢+留下批处理脚本?

发布于 2024-12-27 14:54:35 字数 63 浏览 6 评论 0原文

是否可以使用批处理脚本将窗口最大化到屏幕左侧(Win + 向左箭头)?

谢谢,
最大限度

Is it possible to maximize a window to the left side of the screen (Win + Left Arrow) using a batch script?

Thanks,
Max

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逆夏时光 2025-01-03 14:54:35

我认为单独使用批处理是不可能的,但您可以将 vbscript 与 SendKeys。然后就可以用cscript.exe批量运行vb了。

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{LEFT}"

击键列表

我不确定如何使用 Windows 键,或者是否可以使用上面链接中的代码。为此,您可能需要更强大的东西,例如 C#。

I don't think this is possible with batch alone, but you might be able to use a vbscript with SendKeys. Then you can run the vb in batch with cscript.exe.

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{LEFT}"

List of key strokes

I'm not sure how you can do the Windows key, or if its possible with the codes in the link above. For that you may need something more powerful, like C#.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文