Skip to content

detecting new user’s entry to room

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #191405
    nooob
    Member

    hi all

    i want to know each time a user enters a pal room….just like some of you have done in pal greeters.

    i use C# 2005 express edition

    plz help me…how to do that

    thx

    nooobie πŸ˜•

    #191409

    man on the menu of paltalk turn on the option telle me when the new pal join room

    and use a thread loop for last line in pt room and trim the line if has the word “joined room” in the line that mean a new user come in. or hook listview intercept LVM_SETITEM and the listview item mask is LVIF_TEXT that mean new user join room.

    but I recommand U to use the first option

    #191408
    nooob
    Member

    hi nano..dude πŸ˜›

    sorry for the late reply…for some reason i couldnt come to this forum

    thx for your reply…i got it by using a timer…so i check for a new user entry twice a second …lol
    maybe its not a good solution..but it works

    nanomachine…maybe u have used Paltalk Admin Console…which gets embedded in pal room…so if u want to bounce a user..u highlight him..and press the F7 key…

    so i made my own admin console…that u can be embedded in the room and has some more features. but it doesnt respond to any keyboard inputs…i think its because the form that i embed in room doesnt have focus at the time when i hit e.g. F7 (for bounce) and F10 (for remove all mics) etc..?!?

    if i, however, give focus to the form by clicking somewhere on it…then the keyboard input works.

    i searched this situation…and found some like “hooking” and “subclassing”

    if you have time and are not busy with your own project….plz explain these terms..and possibly any provide links…

    always appreciate your help

    #191407

    i’m guessing you use keypress or keydown on your form? if the form doesnt get focus it wont work.

    like you like timer like vb6 programmer πŸ˜† use a timer and u api function to get key state if the specific key you want is presssed do something with that.

    check these two api

    GetAsyncKeyState
    GetKeyState

    I think you dont have to use the hook.

    for(int i=1; i<=255;i++)
    {
    if(GetAsyncKeyState(i)==presssed)
    {

    }

    }

    that’s just an example, search on google or microsoft about these two api function or install hotkey with RegisterHotKey

    now you have 2 way to go πŸ˜‰

    #191406
    nooob
    Member

    bingooooo… πŸ™‚

    it works…thx nano…for your help

    i used a timer…that checks for some keys

    thanks once again

    nooob

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