VN

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #213181
    VN
    Member

    To nguoi dau ten
    bạn có thể vào trong này, con AI có thể giúp bạn. vui lòng cho nó biết bạn cần làm điều gì, mô tã rõ chi tiết, thì sẽ chính xác hơn, Hoặc nhóm có thể giúp bạn. nếu bạn muốn.
    https://groups.google.com/g/developerpaltalk/c/WpoXtibgZhs

    #213174
    VN
    Member

    The fix will be delivered with the next 29.3 build.Together with the fix, we added the ability to get the room member is asking for a microphone flag (Microphone queue flag). To get this flag…..
    Please visit the group for more information
    https://groups.google.com/g/developerpaltalk

    #213165
    VN
    Member

    Everyone can come here to chat
    https://groups.google.com/g/developerpaltalk

    #213164
    VN
    Member
    #213163
    VN
    Member

    To spid3r: ( problem still send text in room )
    Hi bro… Because there was no formatting to the code it was hard to understands it’s intent. but our development team came up with a snippet on how to send a message that you can pass along

    import win32gui, win32con
    
    hwnd_send = 0
    
    room_list = []
    
    def init_room_list_cb(hwnd, lparam):
    
        name = win32gui.GetClassName(hwnd)
    
        if name == "DlgGroupChat Window Class":
    
            global room_list
    
            room_list.append(win32gui.GetWindowText(hwnd))
    
    def init_room_list():
    
        win32gui.EnumWindows(init_room_list_cb, 0)
    
        if not room_list:
    
            print("No rooms found")
    
    def dlg_group_chat_cb(hwnd, lparam):
    
        name = win32gui.GetClassName(hwnd)
    
        global hwnd_send
    
        if name == "RichEdit20W":
    
            hwnd_send = hwnd
    
    def init_room_hwnd(room_name):
    
        window = win32gui.FindWindow("DlgGroupChat Window Class", room_name)
    
        win32gui.EnumChildWindows(window, dlg_group_chat_cb, 0)
    
    def send_text(text):
    
        win32gui.SendMessage(hwnd_send, win32con.WM_SETTEXT, 0, text.encode('ascii'))
    
    if __name__ == '__main__':
    
        init_room_list()
    
        print("Rooms:", room_list)
    
        init_room_hwnd(room_list[0])
    
        send_text("Connected to the room: " + room_list[0])

    download file : paltalk_bot_example.py
    https://drive.google.com/file/d/1wy5E9zgehrwQcjYh1dZaZDDtZxfNXRG0/view?usp=share_link

    #213162
    VN
    Member

    Hello spid3r. What is your paltalk nickname?

    #211073
    VN
    Member

    Thanks ChicagoDavid52 – we’ll take a look at this, right now we’re going to limit the scope to make existing bots work, so some of these new features may come later or in a new way some time in the future. 

    #209462
    VN
    Member

    Thanks for your feedback. paltalk development team is always ready to help you and always listen to your opinion to provide a better timely solution.

    #209408
    VN
    Member

    This topic was created to help programmers, solve problems in creating bots for new paltalk.
    Please describe the errors you have encountered, and what you want to be created in the next version of paltalk.
    Download beta version, 1.29.89332: https://downloads.paltalk.com/download/beta/PaltalkSetup.exe

    The answer from the paltalk development team:

    >1. I need some way of sending text into the room. I can place text into “ui::controls::EmojiTextEdit”, but I don’t see >any way of sending that text into the room other than to send a newline character to the entire Paltalk application, >which isn’t ideal. Perhaps the “Invoke” of that automation element could send the line into the room.

    This can be done using Win API on our latest build 1.29.0.89332.
    1. Find “DlgGroupChat Window Class” window handler, FindWindowW can be used.
    2. Find “RichEdit20W” window handler in the children list. EnumChildWindows can be used.
    3. Send WM_SETTEXT message using SendMessage function to send a message to the room.

    >2. I need some way of reading who is on mic. Nowhere in the Talking Now/Mic Queue/Chatting column of users does it show >the name of the user, for example not shown in “ui::widgets::UsernameWidget”

    This also can be done using Win API on our latest build 1.29.0.89332.
    1. Find “DlgGroupChat Window Class” window handler, FindWindowW can be used.
    2. Find “SysHeader32” window handler in the children list. EnumChildWindows can be used.
    3. Send LVM_GETITEMCOUNT message using SendMessage function to get room users count.
    4. Send LVM_GETITEMW message with the LVITEMW pointer for the each user index using SendMessage function to get room member mic status. LVITEMW::iImage will contains 10 if the mic is on.
    5. Send LVM_GETITEMTEXTA message for the each user index using SendMessage function to get room member nickname.

    >3. emoji support. This is relatively minor, but limiting. Some emoji don’t show up in UI Automation elements. For >example, I can enter into the room and it won’t show up in QTextBrowser. QTextBrowser says there is a character >there, but it won’t show it and it isn’t in the text that I grab from that automation element.

    We’ll try to resolve this issue in the future.

    + Please comment and see if this is useful or not

    #209392
    VN
    Member

    hi bro .. Please comment here and you will get an answer soon

    Paltalk beta version supports programmers to create bots ( Paltalk NG )

    #209351
    VN
    Member

    >3. emoji support. This is relatively minor, but limiting. Some emoji don’t show up in UI Automation elements. For >example, I can enter into the room and it won’t show up in QTextBrowser. QTextBrowser says there is a character >there, but it won’t show it and it isn’t in the text that I grab from that automation element.
    We’ll try to resolve this issue in the future.
    Guys remember the feedback and was this helpful? And what do you need to change? thanks

    #209350
    VN
    Member

    >2. I need some way of reading who is on mic. Nowhere in the Talking Now/Mic Queue/Chatting column of users does it show >the name of the user, for example not shown in “ui::widgets::UsernameWidget”

    This also can be done using Win API on our latest build 1.29.0.89332.
    1. Find “DlgGroupChat Window Class” window handler, FindWindowW can be used.
    2. Find “SysHeader32” window handler in the children list. EnumChildWindows can be used.
    3. Send LVM_GETITEMCOUNT message using SendMessage function to get room users count.
    4. Send LVM_GETITEMW message with the LVITEMW pointer for the each user index using SendMessage function to get room member mic status. LVITEMW::iImage will contains 10 if the mic is on.
    5. Send LVM_GETITEMTEXTA message for the each user index using SendMessage function to get room member nickname.

    #209349
    VN
    Member

    the answer from the group
    >1. I need some way of sending text into the room. I can place text into “ui::controls::EmojiTextEdit”, but I don’t see >any way of sending that text into the room other than to send a newline character to the entire Paltalk application, >which isn’t ideal. Perhaps the “Invoke” of that automation element could send the line into the room.

    This can be done using Win API on our latest build 1.29.0.89332.
    1. Find “DlgGroupChat Window Class” window handler, FindWindowW can be used.
    2. Find “RichEdit20W” window handler in the children list. EnumChildWindows can be used.
    3. Send WM_SETTEXT message using SendMessage function to send a message to the room.

    #209084
    VN
    Member

    I think it’s a good idea to upgrade this program to a more professional version. have many choices. login nick automatically according to paltalk’s self-save password mode. right at the program window you should split into 2 parts. on the left is a list of nicks, and on the right is a list of rooms. in the list box of nicknames, when you click on nick A , then the rooms to enter of nick a will appear. and when you click on nick B, a list of nick B’s rooms will appear

    add 2 buttons at the nick list frame. 1 disable button, 1 enable button, alias disable function doesn’t let it work. and add 2 buttons at room list frame + and – . when the user enters the room they click the + button it will add itself. and create a hand input text frame, when the user enters the path of the room they need to save, it will add itself to the room list. “Auto show room name”

    #208778
    VN
    Member

    Hello everyone
    Please check this out and let me know, we need feedback. added support into NG for CG bots
    Ver 1.29.0.89227 GA
    https://downloads.paltalk.com/download/beta/PaltalkSetup.exe

    Ps/ you can comment here or email me paltalk.mobile99@gmail.com

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