#include <WinAPISys.au3>
Local $Data =_WinAPI_EnumChildWindows(66796)
If IsArray($Data) Then
_ArrayDisplay($Data, '_WinAPI_EnumChildWindows')
EndIf
运行错误:
G:\autoit3\Include\WinAPIInternals.au3(581,16) : 错误: 表达式错误 (非法字符)
Return $bTest ?
~~~~~~~~~~~~~~^
G:\autoit3\Include\WinAPISys.au3(1143,48) : WARNING: $STR_STRIPLEADING: 使用前并未进行声明.
If StringStripWS($sModule, $STR_STRIPLEADING +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
G:\autoit3\Include\WinAPISys.au3(1143,68) : WARNING: $STR_STRIPTRAILING: 使用前并未进行声明.
If StringStripWS($sModule, $STR_STRIPLEADING + $STR_STRIPTRAILING)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
G:\autoit3\Include\WinAPISys.au3(1143,48) : 错误: $STR_STRIPLEADING: 未声明的全局变量.
If StringStripWS($sModule, $STR_STRIPLEADING +
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
G:\autoit3\Include\WinAPISys.au3(1143,68) : 错误: $STR_STRIPTRAILING: 未声明的全局变量.
If StringStripWS($sModule, $STR_STRIPLEADING + $STR_STRIPTRAILING)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Documents and Settings\Administrator\My Documents\GetCtrlinfo1.au3 - 3 错误, 2 警告这是咋回事呢?用的是autoit1.3.14.2版本。66796是子窗口句柄,拟枚举其中的各个控件的句柄,可是一直测试错误{:face (229):} 本帖最后由 cashiba 于 2016-3-15 08:28 编辑
#include <WindowsConstants.au3>
#include <stringConstants.au3>
#include <WinAPI.au3>
#include <WinAPISys.au3>
#include <Array.au3>
Local $Data =_WinAPI_EnumChildWindows(66796)
If IsArray($Data) Then
_ArrayDisplay($Data, '_WinAPI_EnumChildWindows')
EndIf
将include修改了一下(如上),还是报错,不过报的错少了许多G:\autoit3\Include\WinAPIInternals.au3(581,16) : 错误: 表达式错误 (非法字符)
Return $bTest ?
~~~~~~~~~~~~~~^
C:\Documents and Settings\Administrator\My Documents\GetCtrlinfo1.au3 - 1 错误, 0 警告搞不懂阿....{:face (319):} 换了个Scite新版本,未再报错了。白瞎了大把时间花在无谓的测试中....{:face (239):} 控件可以使用ID方式描述,也可以使用类描述,或者使用标题描述,请问怎么使用坐标和大小的方式描述控件?
页:
1
[2]