简体   繁体   English

Autohotkey Windows 10 个虚拟桌面

[英]Autohotkey Windows 10 Virtual Desktops

I have an AHK script which saves window positions.我有一个 AHK 脚本可以保存 window 位置。 At the moment I save Title, X, Y, Width, Height, Class, FullPath etc. I also want to save on which Virtual Desktop they are located on.目前我保存标题、X、Y、宽度、高度、Class、FullPath 等。我还想保存它们所在的虚拟桌面。

I dont know how Windows 10 handles Virtual Desktops: Do they have a UID?我不知道 Windows 10 如何处理虚拟桌面:他们有 UID 吗? Do these UIDs change after a reboot?重启后这些 UID 会改变吗? Is there any way to actually number them?有什么方法可以实际编号它们吗?

I would like to do it in a way which has a low chance of breaking in case of a Windows update, but obviously that's mostly a dream.我想以一种在 Windows 更新的情况下破坏的可能性很小的方式来做,但显然这主要是一个梦想。

Thanks for any help!谢谢你的帮助!

I've made an ahk function library,我制作了一个 ahk function 库,

to get the desktop (number) a window is on, use VD_getDesktopOfWindow(wintitle) , where wintitle can be combination of WinTitle , ahk_class , ahk_exe , ahk_id , etc.要获取打开 window 的桌面(编号),请使用VD_getDesktopOfWindow(wintitle) ,其中wintitle可以是WinTitleahk_classahk_exeahk_id等的组合。

https://github.com/FuPeiJiang/VD.ahk https://github.com/FuPeiJiang/VD.ahk

I've just made a script "list VD of all windows.ahk" in folder "other examples" to do what you need我刚刚在文件夹“其他示例”中创建了一个脚本“列出所有 windows.ahk 的 VD”来执行您需要的操作

It gets every window in every VD, and tells you, in order of VD, which windows are inside it.它获取每个 VD 中的每个 window,并按照 VD 的顺序告诉您,其中 windows 在其中。

Desktop 1: program.exe
Desktop 1: otherProgram.exe
Desktop 2: foobar.exe
Desktop 3: youGetThePoint.exe

the actual format is different实际格式不同

https://github.com/FuPeiJiang/VD.ahk/blob/master/other%20examples/list%20VD%20of%20all%20windows.ahk https://github.com/FuPeiJiang/VD.ahk/blob/master/other%20examples/list%20VD%20of%20all%20windows.ahk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows 10 中虚拟桌面的编程控制 - Programmatic control of virtual desktops in Windows 10 跨多个窗口的永久窗口10个虚拟桌面? - Persistent window across multiple windows 10 virtual desktops? 在 Windows 10 上具有多个虚拟桌面的 C# UI 自动化 API - C# UI Automation API with multiple virtual desktops on Windows 10 在 Windows 10 中使用 powershell 在多个桌面上启动程序 - Starting programs on multiple desktops using powershell in windows 10 如何使用自动热键更改 Windows 10 中更改桌面的键? - How can I change the keys to change desktop in windows 10 with autohotkey? 如何使用自动热键模拟 Windows 10 中的超级键 - How to emulate hyper key in Windows 10 using autohotkey 是否有可能开发出可在Windows 8,8.1和10 Tablets以及台式机上运行的应用程序? 如果是,先决条件是什么? - Is it possible to develop an app that work on Windows 8,8.1 and 10 Tablets as well as desktops? If yes What are the prerequisites for that? 使表单在所有虚拟桌面上可见 - Make form visible on all virtual desktops 在Windows 10上处理虚拟键盘关闭事件 - Handling virtual keyboard close event on windows 10 在Windows 10上的Python 3中激活虚拟环境 - Activating a virtual environment in Python 3 on Windows 10
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM