Jump to content

How does to Use SendMessage Function with $WM_GETTEXT?


Recommended Posts

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...