Skip to content

Paltalk 11.5 Build 579 VB 6.0 Programs

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #186448
    Admin
    Administrator

    Yo so I spend like one HR trying to figure this shit out, lol an HR is alot for me this days hehehe πŸ™‚ But the damn program should be working with Paltalk 11.5 Build 579, but they are not the API still the same as 577

    Dim splitterwindowex As Long, classcpanecontainerex As Long, atlaaedd As Long
    Dim atlaafb As Long, atlaxwin As Long, x As Long
    Dim richeditw As Long
    splitterwindowex = FindWindow("splitterwindowex", vbNullString)
    splitterwindowex = FindWindowEx(splitterwindowex, 0&, "splitterwindowex", vbNullString)
    splitterwindowex = FindWindowEx(splitterwindowex, 0&, "splitterwindowex", vbNullString)
    splitterwindowex = FindWindowEx(splitterwindowex, 0&, "splitterwindowex", vbNullString)
    splitterwindowex = FindWindowEx(splitterwindowex, 0&, "splitterwindowex", vbNullString)
    classcpanecontainerex = FindWindowEx(splitterwindowex, 0&, "classcpanecontainerex", vbNullString)
    atlaaedd = FindWindowEx(classcpanecontainerex, 0&, "atl:00aaedd0", vbNullString)
    atlaafb = FindWindowEx(atlaaedd, 0&, "atl:00aaf2b0", vbNullString)
    atlaxwin = FindWindowEx(atlaafb, 0&, "atlaxwin100", vbNullString)
    x = FindWindowEx(atlaxwin, 0&, "#32770", vbNullString)
    richeditw = FindWindowEx(x, 0&, "richedit20w", vbNullString)
    richeditw = FindWindowEx(x, richeditw, "richedit20w", vbNullString)

    The indexes still the same, but the shit doesnt work WTF πŸ™‚ anyone can try this damn code to update this shit right now Im gettign ready to bring the 2015 yrs hehehe

    Here the send text functions Im using

    Sub TxtSendPal(DisHere As String)
    Dim start_pos&, end_pos&, txt_len&
    Dim iHnd As Long
        
        If Len(Combo1.Text) > 1 Then
            FindTheWindow (Combo1.Text)
        End If
    
    'Send Text
        iHnd = SendTextHandle
        SendMessageByString iHnd, WM_SETTEXT, 0&, DisHere
        SendMessage iHnd, WM_KEYDOWN, 13, 0
    End Sub

    And

    Private Function SendTextHandle() As Long
    Dim iPHnd As Long
        
        iPHnd = getPalSubForm(WindowClass, Combo1.Text, SplittrWindow10, SplittrIndex10)
        SendTextHandle = ChatHnd(iPHnd, SendTxtIndex)
        Debug.Print ("SendTextHandle - " & SendTextHandle)  ' for testing
    End Function

    PS: I will attached the Funtext Source Code in case anyone want to fix the shit lol

    #186461
    Chike
    Member

    Get me recent posts I’ll fix the code for ya.

    #186460
    Admin
    Administrator

    man, BBpress sucks I was looking for a plugin that would do that and all it can do is get recent topics URL no the Posts πŸ™‚ but if you fix it I will keep looking ehehhehe

    #186459
    Chike
    Member

    I posted a link in the discussions thread

    #186458
    Chike
    Member

    Added the code below to your project (in FindWin).
    To find charrooms only chage if FindPalRooms

    If InStr(1, WinTitle, "", vbTextCompare) <> 0 Then
    

    to

    If GetListCtrl(lhWnd) <> 0 Then
    
    Declare Function EnumChildWindowsRef Lib "user32" Alias "EnumChildWindows" _
      (ByVal hwnd As Long, ByVal lpEnumFunc As Long, ByRef lParam As Any) As Long
    Public Declare Function GetDlgCtrlID Lib "user32" (ByVal hwnd As Long) As Integer
    Public Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Integer
    ' ************************************************************************************
    
    ' ************************************************************************************
    Public Type ChatCtrls
        hText As Long
        hEdit As Long
        hList As Long
    End Type
    
    Function EnumSubCtrls(ByVal hwnd As Long, ByRef lParam As ChatCtrls) As Long
        Select Case GetDlgCtrlID(hwnd)
        Case 202
            lParam.hText = hwnd
        Case 203
            If IsWindowVisible(hwnd) <> 0 Then lParam.hEdit = hwnd
        Case 1789
             If IsWindowVisible(hwnd) <> 0 Then lParam.hList = hwnd
        End Select
        EnumSubCtrls = 1
    End Function
    Function GetChatCtrls(hwnd As Long) As ChatCtrls
        Dim ctrls As ChatCtrls
        Call EnumChildWindowsRef(hwnd, AddressOf EnumSubCtrls, ctrls)
        GetChatCtrls = ctrls
    End Function
    
    Function EnumFindEditCtrl(ByVal hwnd As Long, ByRef lParam As Long) As Long
        EnumFindEditCtrl = 1
        If GetDlgCtrlID(hwnd) = 203 Then
            If IsWindowVisible(hwnd) <> 0 Then
                lParam = hwnd
                EnumFindEditCtrl = 0
            End If
        End If
    End Function
    Public Function GetEditCtrl(hwnd As Long) As Long
        Dim hCtrl As Long
        Call EnumChildWindowsRef(hwnd, AddressOf EnumFindEditCtrl, hCtrl)
        GetEditCtrl = hCtrl
    End Function
    
    Public Function EnumFindTextCtrl(ByVal hwnd As Long, ByRef lParam As Long) As Long
        EnumFindTextCtrl = 1
        If GetDlgCtrlID(hwnd) = 202 Then
            If IsWindowVisible(hwnd) <> 0 Then
                lParam = hwnd
                EnumFindTextCtrl = 0
            End If
        End If
    End Function
    Public Function GetTextCtrl(hwnd As Long) As Long
        Dim hCtrl As Long
        Call EnumChildWindowsRef(hwnd, AddressOf EnumFindTextCtrl, hCtrl)
        GetTextCtrl = hCtrl
    End Function
    
    Public Function EnumFindListCtrl(ByVal hwnd As Long, ByRef lParam As Long) As Long
        EnumFindListCtrl = 1
        If GetDlgCtrlID(hwnd) = 1789 Then
            If IsWindowVisible(hwnd) <> 0 Then
                lParam = hwnd
                EnumFindListCtrl = 0
            End If
        End If
    End Function
    Public Function GetListCtrl(hwnd As Long) As Long
        Dim hCtrl As Long
        Call EnumChildWindowsRef(hwnd, AddressOf EnumFindListCtrl, hCtrl)
        GetListCtrl = hCtrl
    End Function
    #186457
    Admin
    Administrator

    Hey Chike I get a Compile Error saying ” User-defined type not defined” On this part of the code. Ah Im on Using Windows 7 though I have a feeling that’s why Im getting that error.

    Function EnumSubCtrls(ByVal hwnd As Long, ByRef lParam As ChatCtrls) As Long

    And read ya PM I have a feeling Im gonna wait for Paltalk 11.6 to come out πŸ˜‰

    #186456
    Chike
    Member

    I had this error when I had Dim prefix of the tyoe fields so I removed them, maybe you need to add them I don’t know.
    It compiles and run on VB6 Pro.
    BTW I had a “can’t load mscomctl.ocx” error when I 1st oppened the project, so you better use the original project because it is saved without them.

    Why wait for 11.6, wait for 11.7 or better 11.8… no, best wait for 20.0 that will give you like 10 years.
    LOL @ you.

    #186455
    Chike
    Member

    Ahhhh I see you pasted the code, wth went the attechment? Thank your preciouse WordCrap.
    Type decleration must be before any sub or functrion.
    Attached source files, the project is missing use the original
    And it should work on 11.6

    #186454
    Admin
    Administrator

    Lol My coded are neva totally clean ehehehhe, Thanks alot I gonna updates all the programs now πŸ™‚

    #186453
    Chike
    Member

    BTW for VB6 you can instead declaring different WnumWindows function for every struct or type you send as ref just declare int simply as

    Declare Function EnumChildWindows Lib “user32” _
    (ByVal hwnd As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long

    The call back can be declared as taking any kind of parameter ByRef

    Function MyCallback(ByVal hwnd As Long, ByRef lParam As Integer) As Integer

    or

    Type MyType
    ….
    End Type
    Function MyCallback(ByVal hwnd As Long, ByRef lParam As MyType) As Integer

    and then send any parameter by ref like this

    Call EnumChildWindows(hwnd, AddressOf MyCallback, VarPtr(myParam))

    #186452
    Departure
    Member

    Admin, its time for you to move over to vb.net if you haven’t already done so, AND!!! rewrite your code in more modular way, also use what chike advised with GetDlgCtrlID API, this will save you from ever needing to update your programs, well at least not for now anyway. doing this will give you more time to spend on the actual program and notΒ having to update the base code for getting and receiving text due to Paltalk version updates. you might even have the time to “clean up” your code….

    #186451
    Chike
    Member

    Nah, he will never clean up the code, any spare time he has he spend with his girls.

    #186450
    Departure
    Member

    he would have us believe these are his girls…

     

    While the truth is these are more like them….

     

    moral of the story is… forget the bitches and get your coding on!!!

    #186449
    Admin
    Administrator

    Lol OMGGGGGGG Dep the shit is funny πŸ™‚ Man and Yeps I might make the greeter at least on .net But as you guys know by now Im a lazy asz lol
    PS: I’m looking at chikes code to see if I can update them once and forall πŸ™‚

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.