Helomotorola Posted September 16, 2007 Posted September 16, 2007 How does to Use SendMessage Function with $WM_GETTEXT? Const $WM_GETTEXT = 0xD While 1 Sleep(1) $pos = MouseGetPos() $hwnd = WindowFromPoint($pos) ToolTip($hwnd & " = " & "$WM_GETTEXT???", 0, 0) Sleep(50) WEnd Func SendMessage($hwnd, $wMsg, $wParam = 0, $lParam = 0) Global $Return $Return = DllCall ("user32.dll", ""int"", "SendMessageA", "int", $hwnd, "int", $WM_GETTEXT, "int", $wParam, "ptr", $lParam) Return $Return[0] EndFunc Func WindowFromPoint($tPoint) Local $aResult = DllCall("User32.dll", "hwnd", "WindowFromPoint", "int", $tPoint[0], "int", $tPoint[1]) Return $aResult[0] EndFunc ;==>WindowFromPoint Thank
Zedna Posted September 16, 2007 Posted September 16, 2007 Search forum for WM_GETTEXTFor example: here Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now