Skip to content

vb6 Send text to any pal version

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #187868
    String
    Member

    Method, if you ask the same question in two or more threads… Its likely all your questions will be ignored.
    Autopilots example found here works fine.
    Download a fresh version, and find this in the code.

    Private Function getSubForm

    Once you have found it, change it from Private to Public.
    Works with all pal versions >9.3

    #187867
    method
    Member

    Many thanks string for your reply. I made the change but still get this error:

    compile error:

    Expected function or variable

    pointing at FindSubWindsWithwHnd

    #187866
    String
    Member

    Find the following line of code, and comment it out or remove it.

    lRet = FindSubWindsWithwHnd
    #187865
    method
    Member

    No error but doesn’t send any text to the room !!

    #187864
    String
    Member

    Find this function

    Private Function SendTextHnd() As Long

    Replace the code inside of that function with this code

    Dim iHnd As Long
    iHnd = getPalSubForm(WindowClass, Combo1.Text, SplitterClass, SplitterIndex)
    SendTextHnd = ChatHnd(iHnd, SendTxtIndex)

    In your module GetSubFormHnd, add this function to it.

        Public Function ChatHnd(ByVal hwnd As Long, ByVal lParam As Long) As Long
    Dim retVal As Long
    mTargetSubClass = "RichEdit20A"
    mTargetSubClassIndex = lParam
    IndexCount = 1
    retVal = EnumChildWindows(hwnd, AddressOf EnumChildProc, lParam)
    ChatHnd = mSubFormHnd
    End Function
    #187863
    method
    Member

    Now this error:

    compile error:

    sub or function not defined

    pointing at :ChatHnd

    #187862
    String
    Member

    I edited my post above. Add the ChatHnd function to your module

    #187861
    String
    Member

    you’re welcome…

    #187860
    method
    Member

    many thanks string it worked well.furthermore how to read lastline in 9.6?

    #187859
    String
    Member

    For those interested, in Paltalk 9.9 beta the splitter window has been renamed.

    9.8 and below – WTL_SplitterWindow
    9.9 beta – SplitterWindowEx

Viewing 10 posts - 16 through 25 (of 25 total)
  • You must be logged in to reply to this topic.