本帖最后由 cashiba 于 2016-3-17 10:02 编辑 private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Const WM_GETTEXT = &HD
const WM_GETTEXTLENGTH=&HE
Func GetText($Arg_hwnd)
Dim $S_TextLen,$S_strText
$S_TextLen = SendMessage($Arg_hwnd, WM_GETTEXTLENGTH,0, 0)
$S_strText = Space($S_TextLen)
SendMessage($Arg_hwnd, WM_GETTEXT, $S_TextLen+1, $S_strText)
return $S_strText
EndFunc
新手不知道如何使用dllcall,请问如何修改一下,改成AU3中可用的函数呢?报错大概是&HE、&HD未定义,怎么改呢? |