is possible to get the contents of another programs listbox?
cheers
.
Printable View
is possible to get the contents of another programs listbox?
cheers
.
*I saw you in that fish costume - very fetching* :eek:
http://forums.vb-world.net/showthrea...rispin+listbox
cheers, rather nice aint it, im wanting to swap it for a trout suit now :D
ok thanks for the code... the thing is i dont know what the listbox name is in that program?
Youre gonna have to do a findwindowEx, until you find the right window, one way to test to se if you have the right window, is to use GetClassName, and if it returns a ListBox class, then try and grab the contents of the listbox.....but if there are many listboxes you might get a bit stuck.....
if you need code lemme know i'll do something tonight....
:confused:
To help better, its the references window in VB... I want to output the contents to another list box, and then install a program... then look for new values.
cheers
you can get these from the vbp file itself, drag it to notepad and check it out....
that would mean i have to add them all first.... ummm, i will give it a try....
...I just tried... and I dont think its an option :/
OK,
what im gonna do is do a findwindowex for the references dialog - then i'm gonna get the window text, and if it's the references dialog box, then i'm gonna extract the contents of the listbox. give me a short while and i'll post the code...
ok thanks, cheery muchy :D
Heres your code woolmaster swift!
if you need anything else lemme know.....
cheers old bean :)
but (there had to be one :p) where does it go?? stupid old me cant find it :rolleyes:
heres a different version with a returned collection, check that the collection is not nothing on return, if it's not then you have your list....
eh? :confused:
I have troubles understanding other peoples code... also, looking at it... does it only return the list items that have the tick box besides them ticked, as i would like all of them :)
cheers again :)
just whip out the code that tests for selection, I put that in especially you ungrateful (*&*&^*&%!!!!!
;)
no no, im way grateful :)
I put in a function making it always return true... but it goes mental with errors etc... the main problem is where does the list go? to an array?
thanks
baaaaaaaaaaa!
they get returned into a collection....
just put this code under a button or whereever really...
Code:Dim ccol As New Collection
Set ccol = GetListBox
baaaaaaaaaaaaaaaaa!!
now your talking my language ;)
Well i had a play for a while, and a few amendments and I got it sorted finally :)
thanks muchy mukka :)