Forum Replies Created
-
AuthorPosts
-
April 2, 2023 at 2:57 pm #209807chicagodavid52Member
I couldn’t get item 2 to work either. I was using LVM_GETITEMW but since Paltalk is in a different process I have to allocate memory in the Paltalk process to read it,e.g. VirtualAllocEx, and then I have to copy that memory to my process. Anyway, I tested it on a list view in one of my programs and it worked by returning the list of items, but with Paltalk I got empty strings.
Oh, and eventually I’d like to read who is in Queue (and their order) and I’m not sure how getting a list of users in the room would tell me that.
Another desired feature would be to easily dot the person on mic, and then immediately undot them. This is for users who overstay their time on mic. Dotting them on mic in the current Paltalk isn’t too difficult, but undotting is difficult because dotted users immediately drop to the bottom of the user list. In a large room that means scrolling to the bottom. Some bots in Classic were written to get to a user by using keystroke scrolling built into Windows controls (i.e. typing the first few characters in the name gets you to the name in the list). There is no such ability in this Paltalk client.
Considering how difficult this is I don’t know why the UI Automation structure is not expanded a little to list the user nickname. That would be easier for me.
April 1, 2023 at 1:56 pm #209566chicagodavid52MemberI can’t get item 1 to work. I find 2 handles but when I do a wm_settext it only prints out the first letter in the string into the Paltalk room. Also if there is a unicode as the first letter it prints out garbage even though SendMessage is set for unicode.
Dim roomName As String roomName = ReadRoomForm.cbxRoomName.Text Dim hndl As IntPtr = FindWindow("DlgGroupChat Window Class", roomName) If hndl = IntPtr.Zero Then Exit Sub End If Dim editHndl As IntPtr editHndl = FindWindowByClass(hndl, "RichEdit20W") If editHndl = IntPtr.Zero Then Exit Sub End If SendMessage(editHndl, WM_SETTEXT, IntPtr.Zero, Line) PostMessage(editHndl, WM_KEYDOWN, RETURNKEY, IntPtr.Zero) 'send RETURN key.
April 1, 2023 at 3:36 am #209447chicagodavid52MemberThanks, elsewhere I said I had problems with the steps above, but I didn’t use the full name of “DlgGroupChat Window Class” when searching for the window. I’ll try those items…
I went through a lot of work to read the content of the room correctly and my code gets confused if the user ever scrolls the room backwards. I see the dev team seems to be using WIndows controls now for content to help those writing bots. I do believe it would be easier for others writing bots to read the room if it worked like it did in Classic, i.e., a bot pulling a line at a time from a rich text box and every line preceded by the nic as what happens when one copies and pastes content from a room. So I’ll put that out there for others to comment.March 31, 2023 at 10:02 pm #209386chicagodavid52MemberI am probably doing something wrong but:
In using build 1.29.0.89332
1. I don’t see DlgGroupChat window class in UISpy, I see ClassName qtctrl::DefaultWindowContainer
2. I did a FindWindow(“DlgGroupChat”, Nothing) in an application and it didn’t find anything either.I don’t understand what is being done as I’m seeing Windows controls mentioned above. Are you replacing QT controls with Windows controls, or are you mirroring the QT controls with Windows controls?
March 30, 2023 at 4:04 pm #209026chicagodavid52MemberTrumhamdoa, I think I would find your room entry program useful. For my room, where my bot is always on mic, it would be useful to have a toggle for the mic so that when the room is created and entered, the bot then goes on mic.
Does it work in the case where Paltalk goes down for, say, 30 minutes? Will it try to enter the room for 30 minutes until Paltalk comes back up?February 16, 2023 at 10:44 pm #199874chicagodavid52MemberYeah, you should also be able to take your old vb projects and change only the parts that read and write to the room. I took my old trivia bot project and did just that. I have no idea what one would do if your project is in C#. But there are converters that convert vb to C#.
Anything else that manipulates the room, such as admin commands, would be much harder to program. Paltalk doesn’t expose any nickname content in the room list.
February 6, 2023 at 4:26 am #173932chicagodavid52MemberYeah, I use that as one of my two output methods, but without the SetFocus. I think the SetValue might focus.
The method I prefer, at least for English text, is to use PostMessage to send a bunch of WM_CHAR messages, followed by the Return key to the Paltalk chat room window. That works as long as the text entry control had the most recent focus. I like it better because I can be using other apps/windows while a bot is outputting to the Paltalk room (I don’t have such a bot yet, but I’m thinking theoretically). Unfortunately it might be limited as far as Unicode characters it will send. I never got it to accept supplemental Unicode that the first method accepts.December 29, 2022 at 11:46 pm #161745chicagodavid52MemberYeah I can’t really get the Win API functions to work with at least some Unicode. The way I get the window to print text using the “Easy Enter” method is using the Win API, which fails for me with Unicode window names.
I got reading to work with Unicode window names by using the UI Automation API, which has no issues with Unicode, and I populate the combo box with that.
I’ll play around with it some day to get writing to work on Unicode windows.
The Paltalk client UI Automation doesn’t expose any other content in the window – i.e., not who is on mic, who is in the room. Since its main reason for existence should be screen readers for the blind that seems unfortunate.December 29, 2022 at 2:48 pm #161607chicagodavid52MemberHere is an updated version with the room selection fixed for Unicode room names, with occasional repeat of lines fixed, and with nicknames now bold for easier viewing.
December 23, 2022 at 5:42 pm #160312chicagodavid52MemberYeah, that was the exact room the selector failed on for me because I wanted to test in a room with a lot of typing. I’ll look at the room selector code to see if there is something I can fix, but your suggestion sounds like a good alternative when it fails.
January 13, 2014 at 1:05 pm #181134chicagodavid52MemberOr, 4, it could be a Paltalk issue. For a couple of Fridays a few months ago that also happened. I was sitting in the Paltalk Help room as person after person reported this problem (and that exact dialog) that would kick them out of Paltalk. It might have been black nics only. There isn’t much you can do until Paltalk removes whatever is causing the issue. Or use Express while it is going on.
April 2, 2013 at 11:07 pm #175127chicagodavid52Member@autopilot wrote:
@DoubleM wrote:
the auto-redot-ing is not working anymore. I always get the nick not found message. Any thoughts on how to fix it? I believe that happened after updating my paltalk to the latest build
Most likely reason is the name change of the syslistview control.
I changed
Public ReadOnly Property NicListClass() As String Get Return "ATL:00A2DFF0" 'fomerly "SysListView32" in 10.2 End Get End Property
and it worked after that.
August 12, 2012 at 5:41 am #175051chicagodavid52MemberI think there is a problem with the bc! command if the nic has spaces. It said it couldn’t find the nic to bounce. I couldn’t bounce a test nic “bounce me please”.
August 1, 2012 at 3:13 am #186823chicagodavid52MemberVery Nice! It is a **LOT** cleaner too. I hope to learn how to bounce people. Thanks for all the effort put into it!
June 12, 2012 at 2:30 am #186888chicagodavid52MemberDon’t you say here winsock hooks don’t work anymore?
-
AuthorPosts