Jump to content
Sign in to follow this  
enaiman

A3LWinAPI.au3 - _API_SendMessage in 3.2.10.+ ?

Recommended Posts

enaiman

I tried to find what is the new form of _API_SendMessage after 3.2.10.0 but I had no success.

GaFrost said that almost all functions from that big pack of UDFs were ported to AutoIt - I haven't been able to find something similar in _WinAPI_... list of functions.

Could someone tell me please which function I should use?

This is the code giving me troubles:

Func _RichEdit_AddLine($hWnd, $iText, $hLine = True)
    Local $hTextLengh
    $hTextLengh = _API_SendMessage ($hWnd, $WM_GETTEXTLENGTH, 0, 0);
    _API_SendMessage ($hWnd, $EM_SETSEL, $hTextLengh, $hTextLengh);
    If $hLine Then
        _GUICtrlEdit_ReplaceSel($hWnd, $iText & @CRLF, False);
    Else
        _GUICtrlEdit_ReplaceSel($hWnd, $iText, False);
    EndIf
EndFunc   ;==>_RichEdit_AddLine

Thanks,

Edited by enaiman

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites
NELyon

_SendMessage()

Share this post


Link to post
Share on other sites
enaiman

Thanks :)

That was fast :)


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

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  

×