autoit 获取控件内容。

autoit 获取控件内容。(已获取到内容到一个txt中)现需要从下面1.txt提取字符串
需获取: Intel Management Engine Driver

1.txt
TITLE: Intel Management Engine Driver
VERSION: 11.7.0.1045
DESCRIPTION:

This package provides the Intel(R) Management Engine Components Driver for supported desktop models that are running a supported operating system.
PURPOSE: Critical

autoit 没有用过,但是如果它支持windows api函数调用的话,你可以用 getwindowtext函数获取。

autoit有读文件的函数。Read和ReadLine,你找找看。读到一行,使用:作为分隔符把字符串分割成两部分,判断第一部分是否是TITLE。

#include
#Include

Local $aRecords
If Not _FileReadToArray("D:\Program Files (x86)\AutoIt3\Temp\1.txt", $aRecords) Then
MsgBox(4096, "Error", " Error reading log to Array error:" & @error)
Exit
EndIf

Local $aDays = StringSplit($aRecords[1], ":") ;
MsgBox(4096, '', $aDays[2]);

两个头文件是 File.au3 和Array.au3,用尖括号包含起来就行(上面显示不了)