Get Selected Item In SysListView32

You can talk about VB programming here

Get Selected Item In SysListView32

Postby NVYE » Wed Dec 28, 2005 9:33 am


Hi

I am just wondering how to get a selected item in the system32 list ....

Well position can be use by the following command:
LVM_GETSELECTIONMARK

Need to get the text.

Question #2: just wondering ... how do I set the selection mark ... let say if I know the item and the position.
User avatar
NVYE
imFiles Senior
imFiles Senior
 
Posts: 230
Joined: Fri Jun 10, 2005 11:29 pm

Postby locohacker » Wed Jan 04, 2006 12:35 am

Man have u come cose to doin this, I still need this lol I went to all thevb forum and none seem to tell me the right way they be talking about LVM_GETITEM
:roll:
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4325
Joined: Fri Dec 31, 2004 6:59 pm

Postby Departure » Wed Jan 04, 2006 5:00 am

yeah i had that code locohacker, i will try and find it for you mann, I think we talked about it before but I forgot all about it untill i seen this post

It might take a little while because i have to search all my codes to find it, i did this about 6 months ago and originaly got help from the VB forum
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby locohacker » Wed Jan 04, 2006 11:13 am

Thanks loco, when you find it hooks us up :D
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4325
Joined: Fri Dec 31, 2004 6:59 pm

Postby NVYE » Thu Jan 05, 2006 12:04 am

thank you guys ... i'm still figuring out this problem ....

I'm trying to set and get the selected items ... trying to create a fast bouncer ... like

!kick <nick>

!mute <nick>

but first I need to get the selected item ... I thought I figured it out .. but yahaha ... doesn't work good though :(
User avatar
NVYE
imFiles Senior
imFiles Senior
 
Posts: 230
Joined: Fri Jun 10, 2005 11:29 pm

Postby Departure » Sat Jan 07, 2006 8:52 pm

http://www.vbforums.com/showthread.php?t=288807

try that at vbforum, i am still looking where i had that original code, i know i got it from vbforum some where
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby locohacker » Sat Jan 07, 2006 11:11 pm

Ah I try something like that but it crashes paltalk, but i get a feeling we getting closer :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4325
Joined: Fri Dec 31, 2004 6:59 pm

Postby Departure » Mon Jan 09, 2006 10:26 am

I have the soulution, problem solved, i have it working but i need to clean up my messy test code, so as soon as i have done ill post you guys and example :O)
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby Departure » Mon Jan 09, 2006 10:32 am

hmmm maybe its not what you guys want because i just re-read the first post for this topic, anyway this is what i have.....

Highlight by nickname or do a paltalk menu command by there nickname so i guess its not selecting a position, but if your app know what name it is, then it could be used to highligh the same nickname in paltalk

so i guess that would mean it does'nt find a position but rather the persons nickname instead and then highlights it, dont know if this is still helpful
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby locohacker » Mon Jan 09, 2006 12:15 pm

lol thats exactly what i need :) i dont know bout nve tho 8)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4325
Joined: Fri Dec 31, 2004 6:59 pm

Postby Newbie » Mon Jan 09, 2006 9:50 pm

I wonder if you can share it with us
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm

Postby Departure » Wed Jan 11, 2006 8:45 am

sorry its taking awhile but i am very busy during the weekdays, but let me tell you where i am at, i am using sendkeys method, but it has proven unreliable, this is due to the fact Microsoft fucked that function up a bit, but I am working on improving it buy a series of strings before the sendkey gets sent to the systemlistview, also i am looking at some API that works the same as sendkeys, because the way found was to highlight the first person in the list then send keystroke to get the persons name.

For example in paltalk if you highlight the first perswon in the list the lets say you want to highligh my NME nickname then you would just typ N M E ect.. then NME will be highlighted, so instead of me typing that i am using sendkeys to do that for me, and ofcouse i already know what nick i want highlighted from app,

Maybe i have explained this wrong but if you dont understand just wait until i upload an example code to show you guys
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby Newbie » Wed Jan 11, 2006 9:26 am

Oh i understand what you try to mean. This has been done before. However if the person has the @ in front of their name you cannot select their nickname using the sendkeys @nickname
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm

Postby Departure » Fri Jan 13, 2006 9:22 am

yes but @ does'nt count and does not need to be sent, anyway i will working around the sendkey bugs tonight or tomorrow so i should have a good reliable version working by sunday night :O)
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Postby NVYE » Sat Jan 14, 2006 11:21 pm

I am almost go crazy with this systemlist view ...
User avatar
NVYE
imFiles Senior
imFiles Senior
 
Posts: 230
Joined: Fri Jun 10, 2005 11:29 pm

Next

Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests