在 Windows 7 中启动时显示默认窗口布局
我有一台 Win7 PC 作为实验控制系统的一部分。所讨论的实验同时使用 4 个窗口,我想找到用脚本打开、定位和调整这 4 个窗口的方法。
该脚本将在启动时运行,以便新启动的 PC 向用户默认显示四个窗口。
显然我可以使用启动文件夹中的批处理文件来打开窗口并运行应用程序,但是有没有办法指定这些窗口的布局?
非常感谢
斯
I have a Win7 PC in use as part of an experiment control system. The experiment in question uses 4 windows simultaneously, and I would like to find away to open, position and size these 4 windows with a script.
The script would run at start up, so that the newly booted PC presents the user with the four windows as default.
Obviously I can use a batch file in the startup folder to open windows and run applications, but is there a way to specify the layout of these windows?
Many thanks
Si
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我可以使用批处理文件打开应用程序,然后运行 WiLMA 重新安置他们
I can use a batch file to open the apps, then run WiLMA to relocate them
假设您可以访问支持调用 Windows API 函数的脚本语言,那么这应该不会太难。否则,我建议用某种语言编写一个小型可执行文件(至少 C++、C# 或 VB.Net 中的任何一个都可以正常工作)并让它完成。
您可以使用
FindWindow
,如所述 此处,找到窗口和MoveWindow
,如所述此处,移动它们。Assuming that you have access to a scripting language that supports making calls to Windows API functions it shouldn't be too hard. Otherwise I'd suggest writing a small executable in some language (at least any of C++, C# or VB.Net would all work fine) and have that do it.
You could use
FindWindow
, as described here, to find the windows andMoveWindow
, as described here, to move them around.我使用 AutoHotkey 脚本来设置我的所有环境(3 个不同虚拟屏幕中的大约 7 个窗口),可以工作很好。您可以设置窗口的位置等。
I use an AutoHotkey script to set up all my environment (around 7 windows in 3 different virtual screens), works pretty well. You can set the location of windows etc.