Skip to content

chicagodavid52

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #209807

    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.

    #209566

    I 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.
    #209447

    Thanks, 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.

    #209386

    I 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?

    #209026

    Trumhamdoa, 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?

    #199874

    Yeah, 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.

    #173932

    Yeah, 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.

    #161745

    Yeah 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.

    #161607

    Here 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.

    #160312

    Yeah, 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.

    #181134

    Or, 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.

    #175127

    @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.

    #175051

    I 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”.

    #186823

    Very Nice! It is a **LOT** cleaner too. I hope to learn how to bounce people. Thanks for all the effort put into it!

    #186888

    Don’t you say here winsock hooks don’t work anymore?

Viewing 15 posts - 1 through 15 (of 22 total)