简体   繁体   English

如何在Windows 7中找到任务栏项的顺序?

[英]How can i find the order of the taskbar items in Windows 7?

I would like to establish what is the order of the taskbar items in Windows 7. The reason is that I would like to create an script (written in AutoHotkey or C#) that restore a set of icons to a previous determined order. 我想确定Windows 7中任务栏项的顺序是什么。原因是我想创建一个脚本(用AutoHotkey或C#编写),将一组图标恢复为先前确定的顺序。 I wan't to do this because any Virtual Desktop solutions for Windows forget the great and important point of keeping the taskbar item's order, ie between desktop changes the order of the taskbar items are completely ignored and lost. 我不想这样做,因为任何适用于Windows的虚拟桌面解决方案都忘记了保持任务栏项目顺序的重要一点,即在桌面更改之间,任务栏项目的顺序完全被忽略和丢失。 The reason of why they ignore that fact is maybe because all of them rely in the HIDE/UNHIDE approach, they save what windows are active in any desktop and then between switches they Hide or UnHide the corresponding windows. 他们忽略这一事实的原因可能是因为他们都依赖于HIDE / UNHIDE方法,他们在任何桌面上保存了活动窗口,然后在交换机之间隐藏或取消隐藏相应的窗口。

I already found a semi solution writted in QT/C++ ( Location of app on the Windows 7 Taskbar ) that base his function in find the left-upper pixel position of an item based in his color. 我已经找到了一个用QT / C ++( Windows 7任务栏上的应用程序位置)编写的半解决方案,它基于他的功能,根据他的颜色找到项目的左上角像素位置。 I don't like that approach because the use of different themes or visual styles would break his functioning. 我不喜欢这种方法,因为使用不同的主题或视觉风格会破坏他的功能。 I hope someone has another suggestion. 我希望有人有另一个建议。 This question differs from that in the link that I'm only interested in the order not in the exact pixel position of any button. 这个问题与链接中的问题不同,我只对订单感兴趣而不是任何按钮的确切像素位置。

You may want to start with the Windows® API Code Pack for Microsoft® .NET Framework . 您可能希望从用于Microsoft®.NETFrameworkWindows®API代码包开始。 This API allows you access to several Windows APIs (including certain taskbar functions) from managed code. 此API允许您从托管代码访问多个Windows API(包括某些任务栏功能)。

However, I'm not certain yet that it allows for functionality regarding the task bar in general vs. a specific application's taskbar entry. 但是,我不确定它是否允许关于任务栏的功能与特定应用程序的任务栏条目相关。 I will continue researching this and update if/when I find more information. 我会继续研究这个并在我/何时找到更多信息时进行更新。

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

相关问题 如何在任务栏中隐藏Windows 7徽标? - How can I hide the Windows 7 logo in the taskbar? 如何在Windows 7上删除Java程序的标题栏和任务栏图标? - How can I remove titlebar and taskbar icons of Java programs on Windows 7? 如何以编程方式确定Windows任务栏是否隐藏? - How can I determine programmatically whether the Windows taskbar is hidden or not? 如何在Windows 7中使任务栏缩略图上的区域透明显示? - How can I make a region on my taskbar thumbnail appear transparent in Windows 7? 如何在Windows任务栏下滑动窗体并设置透明度? - How can I slide a Form under the Windows taskbar and set transparency off? 我如何以编程方式告诉Windows任务栏打开(或关闭)给定的工具栏? - How can I programatically tell Windows taskbar to open (or close) a given toolbar? 我如何设计一个看起来也像Windows 7任务栏中的弹出窗口的窗口? - How can I design a window too look just like this pop-up in windows 7 taskbar? 如何创建可以最小化到Windows XP任务栏的应用程序? - How to create an application that can be minimized to Windows XP taskbar? 如何从任务栏(WPF)隐藏打开的子窗口? - How can hide the opened child windows from taskbar (WPF)? 如何在 WPF 应用程序中获取 Windows 任务栏高度? - How do I get windows taskbar height in WPF application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM