本帖最后由 lenlydia 于 2011-10-29 02:17 编辑
如下图,我想获取“19.8”这个文本,试了很多次。还是获取不了,输出不到文本。求助。谢谢。#include <GUIComboBox.au3>
#include <GuiConstantsEx.au3>
AutoItSetOption("WinTitleMatchMode", 4)
$PID=run("server.exe");
WinWait("classname=Tfrmcount");
;$xWin=WinGetHandle("classname=Tfrmcount");
;$xCanvas=ControlGetHandle($hWin,"","[CLASS:Tfrmcount; INSTANCE:0]");
$yWin=WinGetHandle("classname=TPowerEDIT");
$yCanvas=ControlGetHandle($yWin,"","[CLASS:TPowerEDIT; INSTANCE:1]");
$jiezhang=_GUICtrlComboBox_GetEditText($yWin)
$file = FileOpen("1.txt", 1)
If $file = -1 Then ; 检查文件能否打开以便能供写操作
MsgBox(0, "错误", "不能打开文件.")
Exit
EndIf
FileWrite($file, "h044"&$jiezhang&@cr)
FileClose($file)
|