这个用UIA该怎么去写啊,用的inspect抓取的
autoit吧
全部回复
仅看楼主
level 1
SoWhat😡 楼主
不是闲的无聊大佬,我的项目和QQ这个差不多,但是用Autoit自带的抓不到只能用inspect抓了,用UIA该怎么写,他的窗格的那些属性ID是一样的
2018年09月19日 05点09分 1
level 1
SoWhat😡 楼主
有没有大佬帮下忙啊 ,大佬
2018年09月19日 05点09分 2
level 1
SoWhat😡 楼主
大佬在哪里,大佬
2018年09月19日 05点09分 3
level 1
SoWhat😡 楼主
大佬啊,帮帮忙啊
2018年09月19日 05点09分 4
level 5
www.autoitx.com
2021年06月10日 22点06分 5
level 1
下面是我用 aardio 调用 .Net UIAutomation 的例子:
import process;
process.executeWaitInput("notepad.exe"
,io.getSpecial(0x25/*_CSIDL_SYSTEM*/,"drivers\etc\HOSTS"));
import dotNet;
var appDomain = dotNet.appDomain();
var UIAutomationTypes = appDomain.load("UIAutomationTypes");
var TreeScope = UIAutomationTypes.import("System.Windows.Automation.TreeScope");
var UIAutomationClient = appDomain.load("UIAutomationClient");
var Automation = UIAutomationClient.import("System.Windows.Automation");
var PropertyCondition = UIAutomationClient.import("System.Windows.Automation.PropertyCondition");
var AutomationElement = Automation.AutomationElement;
var desktop = AutomationElement.RootElement;
var condNotepadClass = Automation.PropertyCondition(AutomationElement.ClassNameProperty,"Notepad")
var notepad = desktop.FindFirst( TreeScope.Children, condNotepadClass)
var condEditClass = Automation.PropertyCondition(AutomationElement.ClassNameProperty,"Edit");
var editBox = notepad.FindFirst( TreeScope.Descendants, condEditClass);
var textPattern = editBox.GetCurrentPattern(Automation.TextPattern.Pattern);
var text = textPattern.DocumentRange.GetText(50)
import win.dlg.message;
win.dlg.message().info(text + " ……")
2021年09月09日 10点09分 6
1