Jump to content
Sign in to follow this  
Helomotorola

How does to Use SendMessage Function with $WM_GETTEXT?

Recommended Posts

Helomotorola

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

Share this post


Link to post
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
Sign in to follow this  

×