|
|
#1 |
|
Junior Member
|
(begin really-long-description-of-problem)
Hey hey, this is quite a nice forum, I've learned a lot from just reading all the stuff in here, but (of course) I have a question of my own... I'm developing a program in VB(I've played with VB, java, and C++, so I _very basically_ know how to program in these languages, and hoping to learn more by simply trying to write progs for my own fun and profit) that is going to use winamp's great VBR-time-estimate feature to create a database of mp3s on a CD-ROM. I've figured out that I'm going to load an m3u of each CD into a simple database, but first I'd like to automate the m3u creation process, which entails: <UL TYPE=SQUARE> <LI> Starting winamp <LI> Loading a CD into the playlist* <LI> Writing the playlist to an m3u </UL> * this is where the hard part comes in: (end really-long-description-of-problem) I need help manipulating winamp command #1036, the "add dir" command. Any ideas? |
|
|
|
|
|
#2 |
|
ist death
Join Date: May 2000
Posts: 3,704
|
If you want to add whole directory to playlist, use WM_COPYDATA with command ID 100, exacly the same way as when you add a single file (C++):
COPYDATASTRUCT cds; cds.dwData=100; cds.cbData=strlen(dir); cds.lpData=dir; SendMessage(wnd,WM_COPYDATA,0,(long)&cds); You can SendMessage(wnd,WM_USER,0,0x44d) to clear playlist before adding that dir. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|