Results 1 to 13 of 13

Thread: Object from Kazaa Lite (HARD) [SOLVED]

  1. #1

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Resolved Object from Kazaa Lite (HARD) [SOLVED]

    I just was wondering...on kazaa lite, if you go to My Kazaa Lite K++ which is basicall my shared documents. It shows all the files in the directory.

    What i need to know is, what it actually shows them in...the VB equivelant



    and how to list them.
    Last edited by boku; Mar 10th, 2005 at 06:08 PM.
    -BoKu-

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Object from Kazaa Lite (HARD)

    You could load them into a flexgrid, or you could pick them from a common dialog control. It depends what you want to do with them The flexgrid is the most customizable, but a listview might also be in order.

  3. #3

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Re: Object from Kazaa Lite (HARD)

    Well what i want it to do is list all the files in a directory, tell me the file name, size and if possible the type of file it is e.g Application, Picture etc. and i want it to refresh every 15 minutes, incase new files have been added to the directory.
    -BoKu-

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Object from Kazaa Lite (HARD)

    Use the File System Objsect control. While it won't parse the mp3 infor, it will give you date and size info. With a little more work, you could get the type of file.

  5. #5

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Re: Object from Kazaa Lite (HARD)

    i cannot seem to find the File System Object control
    -BoKu-

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Object from Kazaa Lite (HARD)

    Add a reference to:
    - Microsoft Scripting Runtime (scrrun.dll)

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Object from Kazaa Lite (HARD)

    Quote Originally Posted by boku
    What i need to know is, what it actually shows them in...the VB equivelant
    You can duplicate Kazaa's user interface by using the ListView control. You can add it to your project by clicking -
    Project > Components > Controls tab > checking "MS Windows Common Controls 6.0"
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Re: Object from Kazaa Lite (HARD)

    Yeah thats kool i got that now. Your gna think im a dumbass, but how do i use it lol, all i got is the column titles and how to add files:

    VB Code:
    1. Dim sharedfilesdir As String
    2. sharedfilesdir = Dir(lblSharedFiles.Caption & "\*.*")
    3.   While sharedfilesdir <> ""
    4.     ListView1.ListItems.Add , , sharedfilesdir
    5.     sharedfilesdir = Dir()
    6.   Wend

    But what i want now is how to get the type of file under the correct column and the files size.
    Last edited by boku; Mar 8th, 2005 at 12:01 PM.
    -BoKu-

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Object from Kazaa Lite (HARD)

    Here is how you use the listview control.
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Form_Load()
    4.     Dim i As Integer
    5.     Dim itmLV As ListItem
    6.     ListView1.FullRowSelect = True
    7.     ListView1.GridLines = False
    8.     ListView1.HideSelection = False
    9.     ListView1.HoverSelection = False
    10.     ListView1.LabelEdit = lvwManual
    11.     ListView1.MultiSelect = False
    12.     ListView1.View = lvwReport
    13.     For i = 1 To 5
    14.         ListView1.ColumnHeaders.Add , , "Col " & i, (ListView1.Width / 5) - 70
    15.     Next
    16.     For i = 1 To 25
    17.         Set itmLV = ListView1.ListItems.Add(, , "Item " & i)
    18.         itmLV.SubItems(1) = "Sub 2"
    19.         itmLV.SubItems(2) = "Sub 3"
    20.         itmLV.SubItems(3) = "Sub 4"
    21.         itmLV.SubItems(4) = "Sub 5"
    22.         Set itmLV = Nothing
    23.     Next
    24. End Sub
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Re: Object from Kazaa Lite (HARD)

    OK thnx but how do i click on a single file and have the properties that you see when you right click a file appear in a textbox?
    -BoKu-

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Object from Kazaa Lite (HARD)

    If your using the FSO object then you can just add a few 0 width lvw colums and add the file properties from
    the FSO for the file when your loading the lvw. Then when you select a listview item you can take
    the hidden columns text and place it in a textbox.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12

    Thread Starter
    Hyperactive Member boku's Avatar
    Join Date
    Dec 2004
    Posts
    386

    Re: Object from Kazaa Lite (HARD)

    Ok i dont know what FSO is but i dont think im using it. Could you be more precise?

    I have a listview object (in report view) and a text box (which is multiline)

    In the list view i have the headers "Title", "Size" and "Type". Only title is done so far.

    BUT when i click on the file in the listview object i would like the rest of the file properties to come up like, "Year", "Artist", "Bitrate" etc.
    -BoKu-

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Object from Kazaa Lite (HARD)

    You should have columns for each of these and load them when the lvw is loaded.

    FSO = File System Object, from the scripting reference posted earlier.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width