简体   繁体   English

有没有办法在桌面应用程序窗口中使用Java或任何其他库获取“控制视图”的所有“属性”?

[英]Is there any way to get all “properties” of “control view” in desktops application window using Java or any other library?

Is there any way to get all "properties" of a "control view" in a window of desktops application using Java or any other library? 有没有办法在使用Java或任何其他库的桌面应用程序窗口中获取“控件视图”的所有“属性”? I have tried with a java wrapper (www.github.com/mmarquee/ui-automation) for "Microsoft UI Automation" ( https://msdn.microsoft.com/en-us/library/windows/desktop/ee684009(v=vs.85).aspx ), but couldn't find a way to get all properties (elements) of a desktop window. 我尝试使用java包装器(www.github.com/mmarquee/ui-automation)进行“Microsoft UI Automation”( https://msdn.microsoft.com/en-us/library/windows/desktop/ee684009(v) = vs.85).aspx ),但无法找到获取桌面窗口的所有属性(元素)的方法。 If you know any better way to do this, please reply with sample codes. 如果您知道更好的方法,请回复示例代码。 Thanks in advance. 提前致谢。 Please refer this link (image) to get what i mean by properties 请参考此链接(图片)以获取我的意思

If I understand you correct, Inspect.exe is what you need. 如果我理解你是正确的, Inspect.exe就是你需要的。 If Windows SDK is installed on your PC, Inspect.exe can be found here: 如果您的PC上安装了Windows SDK,可以在此处找到Inspect.exe

C:\Program Files (x86)\Windows Kits\<winver>\bin\x64

Source: Getting Started Guide for pywinauto. 来源:pywinauto 入门指南 Yes, it's Python. 是的,它是Python。 Don't know good Java wrappers since I'm not in Java world. 因为我不在Java世界,所以不知道好的Java包装器。

暂无
暂无

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

相关问题 在Java应用程序中获取任何/所有活动JFrame? - Get Any/All Active JFrames in Java Application? Java Mail标准属性是否有任何常量? ide /编译器还有其他检查拼写的方法吗? - Are there any constants for Java Mail standard properties? Is there any other way for ide/compiler to check their spelling? 如何使用JAVA将所有CSS属性应用到网页上的任何元素? - How do I get all CSS properties applied on any element in a webpage using JAVA? 我需要使用 shell 脚本或任何其他更好的方式替换所有 Java 实体中的一个语句吗? - I need to replace one statement in all my Java entities using shell script or any other better way? 有没有办法启动外部应用程序并获取应用程序的pid并使用java或php杀死它们 - Is there any way to start external application and get pid of application and kill them using java or php 如何使用javacv或任何其他Java库检测图像中的矩形? - how to detect rectangles in an image using javacv or any other java library? 将wms和wfs与osmdroid或任何其他基于Java的开源Java库一起使用 - using wms and wfs with with osmdroid or any other opensource java based library 使用zip4j库在Java中获取压缩方法的任何方法吗? - Any way to get Compression method in java using zip4j library? API或任何其他使用Java程序获取Kafka服务器的堆大小的方法 - API or any other way to get heap size of Kafka server using Java program 还有其他更好的方法来获取和比较Java的数据库凭据吗? - Is there any other better way to get and compare database credentials with java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM