Skip to content

select nic in pal nic list

Viewing 15 posts - 1 through 15 (of 36 total)
  • Author
    Posts
  • #187754
    autopilot
    Member

    I am struggling to figure out how to select the nic i want in the nic list. I can step through the list and find it, but once I know which nick it is, how do I go about selecting it?

    autopilot

    Edit: in the past, the way I have done it was in an automatic bouncer and so i just sent the nic to the syslistview and then checked to see if that was the nic highlighted and if they matched, then bounce. well that works great unless the nic you want to highlight is an @.

    I am working on a file bot program and so I need to be able to higlight @ nic’s to send them files when they request it.

    Edit2: Stepping through each nic untill i find the one i want is not as fast as i would like. Anyone know a better way? maybe a way to use LVM_FINDITEMW… just a thought without the knowledge of how to implement it 🙁

    #187789
    autopilot
    Member

    Anyone have any solution for me on do this?

    #187788
    Departure
    Member

    I’ll look in to it when i get home autopilot, I have done it before but i can’nt remeber and I dont have VB installed on my laptop ……

    #187787
    autopilot
    Member

    I found a solution on another site. It was for vb6, but i was able to run it through the vb 2005 upgrade utility and then hand fix anything that did not upgrade correctly.

    Thanks

    autopilot

    #187786
    method
    Member

    could you share the code for vb6 ?Thanks

    #187785
    autopilot
    Member

    the attached project is not Pal spacific… it is what I found that helped me figure it out in VB 2005.

    #187784
    Chike
    Member

    Thanks

    It was a bit** to port to c++ though 😀

    all because of:

    LVITEM.state = True

    it should be:

    LVITEM.state = LVIS_SELECTED

    This is because in basic True is probably -1, which set all bits to 1, while in c it”s logicaly anything that is not zero, and the TRUE macro is defined as 1 which only set the 1st bit.

    #187783
    method
    Member

    Thanks autopilot . could you help me make your attached code work for paltalk 9.2 ? I had used similer code for paltalk 8.2 but now i can’t modify it to work with 9.2. So i be happy if you help me make this code work for 9.2.

    #187782
    steven
    Member

    hi guys .. no solution to select the nicknam !! 😥

    #187781
    Chike
    Member

    @steven wrote:

    hi guys .. no solution to select the nicknam !! 😥

    Of course there is.

    Once you can focus on the problem, keep your questions in the topic you started instead of spreading all over the forum, explain what you are trying to do and where the problem is, in details and clear language, and provide the code that does not work, you may be helped.
    Otherwise you’re just waisting your time and other’s.

    #187780
    steven
    Member

    hello Chike .. am sorry if my language is not clear . but i realy need your help . actualy i post my problem before i view all the topics in the forum am sorry about this , and am new in this forum , and i found it helpfull .
    my problem is that i downloaded the fast bouncer source code , posted by Admin i think , and i tried to use it with paltalkscene but when i select the nickname from the form listbox1 and double click it , then it bounce the wrong nicknam that selected from the paltalk room unfortunately , actualy am not good in vb like you , but when i traced the code i observed that the nicknames wonn’t be listed in list3 to match the bounced nicknam from list1 .

    i will be appreciated for help.. thank you and am sorry again

    #187779
    Chike
    Member

    Was list3 empry? If that’s the case see that the syslistview in NickGet is found properly.
    I don’t completely understand this code (bounce,bounce2) but it seems there no check to see if the name was found before the bounce, so you may want to fix that. Also the loop continue even after the name is found, so you may also want to exit the loop when the name is found.
    I myself would have merged NickGet (and GetListviewItem) with MessageCrossProcess, send the nic to be bounced as a parameter, and check the name there, select it and bounce instead of building list3 and then iterating it again to find the name.

    #187778
    steven
    Member

    thanks alot .. yah the case is that list3 is empty while NickGet called.. is that means the function not working properly ? i hope that you have an easir code so that be able to understand how the nic is bounced exactly using list ?

    thank you again and again

    #187777
    Chike
    Member

    yes list3 can be empry when NickGet is called it sould be filled on it’s return.
    Step through NickGet and see that syslistview is not zero when calling GetListviewItem.

    GetListviewItem is getting the names from the room and put them in list3 (in the same order as in the room), then list3 is searched for the selected nick (bounce,bounce2), then MessageCrossProcess is called to select it, then posting the bounce command to the room and lounching bc.exe to put the reason and ok the bounce dialog window. Clear now?

    #187776
    steven
    Member

    yah Chike .. syslistview return zero 🙁

    i dont know where can i make the changes .. is it in the NickGet function or GetListviewItem

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