在控制面板中查找图标名称
有没有办法获取Windows控制面板中的图标名称,并找出它们的坐标?
还有一个问题 - 如果我正在运行一个包含按钮的应用程序,是否有一种可能的方法来获取按钮的名称,如 string
中所示?
Is there a way to obtain the name of the icons in the Windows Control Panel, and find out their coordinates?
One more question - if I have an application running and that contains buttons, is there a possible way to obtain the name of the button, as in string
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
http://msdn.microsoft.com/en- us/library/ee330741(v=VS.85).aspx 列出每个控制面板项的“规范名称”。例如,
Microsoft.DateAndTime
用于设置日期和时间。 http://msdn.microsoft.com/en- us/library/cc144191(v=VS.85).aspx 展示了如何使用 WinExec(我不知道你可能能也可能不能从 Java 使用它)来启动一个项目考虑到它的规范名称,例如,该页面上有相当多的社区内容,这表明它可能比文档建议的要复杂一些。我怀疑让你的代码在 XP、Vista 和 7 上顺利运行可能会令人沮丧。
http://msdn.microsoft.com/en-us/library/ee330741(v=VS.85).aspx lists the "canonical names" of each control panel item. For example,
Microsoft.DateAndTime
for the one that sets your date and time. http://msdn.microsoft.com/en-us/library/cc144191(v=VS.85).aspx shows how to use WinExec (which you may or may not be able to use from Java, I don't know) to launch an item given it's canonical name, for exampleThere is quite a lot of community content on that page, indicating that perhaps it's a bit trickier than the documentation suggests. I suspect that getting your code to work smoothly on XP, Vista, and 7 may be frustrating.
MS 列表中缺少邮件图标。
此来源 表示它的规范名称是“Mail”。
The Mail icon is missing from MS's list.
This source indicates that it's canonical name is "Mail".
查看:http://msdn.microsoft.com /en-us/library/bb776778(v=VS.85).aspx
Check out: http://msdn.microsoft.com/en-us/library/bb776778(v=VS.85).aspx