Skip to content

Hghlight User on nick list of the room?

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #189261
    Admin
    Administrator

    Hey I was working a little on the admin bot, but here my big problem 🙂

    I can,t highlight the nick on the room list accurately, lol I being using this code to hightlight the nick

    Dim mywindowclass As Long, wtlsplitterwindow As Long, atlb As Long
    Dim syslistview As Long
    mywindowclass = FindWindow("my window class", Text5)
    wtlsplitterwindow = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
    wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
    wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
    atlb = FindWindowEx(wtlsplitterwindow, 0&, "atl:005047b8", vbNullString)
    syslistview = FindWindowEx(atlb, 0&, "syslistview32", vbNullString)
    Call SendMessageByString(syslistview, WM_LBUTTONDOWN, 0&, 0&)
    SendKeys Text6 + vbCr

    where Text6 is the textbox where the nick goes 🙂

    anyways I just wondering if anyone has being able to accurately do it, lol like with the method i am using its about 10 percent accuratley 🙂 eheheh

    #189271
    Newbie
    Member

    Code Seem To Be Ok
    However. When I try to put

    PostMessage mywindowclass, WM_COMMAND, 32946, 0

    after
    SendKeys
    Then the Select nick seem to be ok, but Post message donesn’t work. Something is wrong

    #189270
    AhFox
    Member

    Of course it doesn’t work … ’cause Sendkey is just same thing as hit a key board ..

    try to send first letter only.

    Example your nickname: “Admin”

    Try to find: “L”

    Then if it doesn’t work then find another “L”

    #189269
    Newbie
    Member

    how do you know if it will find the exact user

    like , in the room, there is a “Admin” and “Admin1”

    #189268
    AhFox
    Member

    Everytime you hit the first letter … it jumps …

    eventually it comes to the right nick!

    #189267
    Admin
    Administrator

    NVYE What u mean send the first letter u mean using like sendmessege something like that ❓

    #189266
    Newbie
    Member

    😆

    #189265
    AhFox
    Member

    Your code:

    Dim mywindowclass As Long, wtlsplitterwindow As Long, atlb As Long
    Dim syslistview As Long
    mywindowclass = FindWindow("my window class", Text5)
    wtlsplitterwindow = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
    wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
    wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
    atlb = FindWindowEx(wtlsplitterwindow, 0&, "atl:005047b8", vbNullString)
    syslistview = FindWindowEx(atlb, 0&, "syslistview32", vbNullString)
    Call SendMessageByString(syslistview, WM_LBUTTONDOWN, 0&, 0&)
    SendKeys Text6 + vbCr

    Looks perfect.

    SendKeys Text6 + vbCr

    Instead use left(text6.text, 1)

    ‘Jumps three times …

    SendKeys Left(text6.text, 1)
    SendKeys Left(text6.text, 1)
    SendKeys Left(text6.text, 1)

    if you see it will select a nickname with first letter …
    then if you add it again … it jumps to another nick …

    Eventually it will jump to the right nick. Maybe you use the getUID and check for the nick … that match your nick ….

    Hope this helps … becareful for infinite loop if the nick doesn’t exists.

    #189264
    Newbie
    Member

    Well there is another problem

    For example , in a room, there are

    “Oyah”
    “Admin”
    “Admin1”

    So if we type the 3 first letters, we dont know wich Admin we are talking about. How ever if we type the 4th letter, it will jum to Oyah.

    I dont know but i have a confusion in the nickname

    #189263
    AhFox
    Member

    I said … hit the first letter only …

    Admin …

    Hit “L” only …

    No O or C or H

    hit the first letter and it jumps …

    #189262
    method
    Member

    loco did u your solve your problem in highlighting user name ? furthermore, could u tell me how to run this code ? i want to test it. What controles do i need in my form ? do i need to be admin to use this code ?looking forward to your reply.

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