- This topic has 13 replies, 3 voices, and was last updated 9 years ago by Chike.
-
AuthorPosts
-
December 22, 2014 at 3:48 pm #186448AdminAdministrator
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
December 22, 2014 at 4:06 pm #186461ChikeMemberGet me recent posts I’ll fix the code for ya.
December 22, 2014 at 4:20 pm #186460AdminAdministratorman, 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
December 22, 2014 at 5:16 pm #186459ChikeMemberI posted a link in the discussions thread
December 22, 2014 at 11:35 pm #186458ChikeMemberAdded the code below to your project (in FindWin).
To find charrooms only chage if FindPalRoomsIf 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
December 23, 2014 at 1:46 pm #186457AdminAdministratorHey 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 π
December 23, 2014 at 8:32 pm #186456ChikeMemberI 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.December 23, 2014 at 9:13 pm #186455ChikeMemberAhhhh 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.6December 24, 2014 at 3:56 pm #186454AdminAdministratorLol My coded are neva totally clean ehehehhe, Thanks alot I gonna updates all the programs now π
December 26, 2014 at 12:24 pm #186453ChikeMemberBTW 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 LongThe 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 Integerand then send any parameter by ref like this
Call EnumChildWindows(hwnd, AddressOf MyCallback, VarPtr(myParam))
December 26, 2014 at 4:33 pm #186452DepartureMemberAdmin, 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….
December 26, 2014 at 4:50 pm #186451ChikeMemberNah, he will never clean up the code, any spare time he has he spend with his girls.
December 26, 2014 at 5:26 pm #186450DepartureMemberhe 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!!!
December 29, 2014 at 2:55 am #186449AdminAdministratorLol 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 π -
AuthorPosts
Related
- You must be logged in to reply to this topic.