- This topic has 35 replies, 6 voices, and was last updated 16 years ago by autopilot.
-
AuthorPosts
-
August 12, 2007 at 8:00 pm #187754autopilotMember
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 🙁
August 16, 2007 at 1:33 pm #187789autopilotMemberAnyone have any solution for me on do this?
August 16, 2007 at 7:36 pm #187788DepartureMemberI’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 ……
August 16, 2007 at 8:00 pm #187787autopilotMemberI 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
October 10, 2007 at 12:41 pm #187786methodMembercould you share the code for vb6 ?Thanks
October 10, 2007 at 6:11 pm #187785autopilotMemberthe attached project is not Pal spacific… it is what I found that helped me figure it out in VB 2005.
November 5, 2007 at 7:32 pm #187784ChikeMemberThanks
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.
November 12, 2007 at 5:17 pm #187783methodMemberThanks 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.
February 13, 2008 at 11:29 am #187782stevenMemberhi guys .. no solution to select the nicknam !! 😥
February 13, 2008 at 3:12 pm #187781ChikeMember@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.February 13, 2008 at 10:47 pm #187780stevenMemberhello 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
February 14, 2008 at 12:30 am #187779ChikeMemberWas 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.February 14, 2008 at 12:48 am #187778stevenMemberthanks 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
February 14, 2008 at 1:02 am #187777ChikeMemberyes 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?
February 14, 2008 at 1:45 am #187776stevenMemberyah Chike .. syslistview return zero 🙁
i dont know where can i make the changes .. is it in the NickGet function or GetListviewItem
-
AuthorPosts
Related
- You must be logged in to reply to this topic.