Sign in to follow this  
Followers 0
bayangan

Need help with pop-up menu and winamp

4 posts in this topic

#1 ·  Posted (edited)

Hi, this is a first time to post here. I need help for someone to pinpoint me for direction to look for. Here's my problem:

I want to be able to insert a function to a pop-up menu of winamp's media library, so i'll be able to move the selected song's files to other predefined directory.

So the problems i had are:

1. How to insert a function to any program's pop-up menu? How to get it's control id (if any) and how to add my function?

2. How to get the file's property on selected song from winamp's media library

I have roughly 10K+ songs in different locations in my hard disk. Spent almost 2 months of editing it's tag and finding lyrics. Now is the time to move it to a correct directory based on its performance artist and correcting file name with '<artis> - <title>' format. With the function, I'm hoping to get 2 clicks solution. First select all songs in media library (Ctrl-A), right click, pop-up menu appear, and then click function 'move' and the work is done ;)

Edited by bayangan

Share this post


Link to post
Share on other sites



Although it might be cool to do it through the popup menu. Does it have to be done that way?

I mean that sound like over complicating things and I doubt you will get the answers you want. Anyhow I don't think you will get it done in AutoIt only.

Don't winamp have a plugin API? You could possibly do it (in the popup) Through that. But it would probably involve making a dll.

Share this post


Link to post
Share on other sites

This problem serves as an example to me with autoit capability. I might as well need it in other situations where not only winamp itself.

Share this post


Link to post
Share on other sites

Sorry for double posting. There is no edit button. I've tried reloading couple of times. Anyway, I solved my own problems. I can answer no. 2 question using CtrlListView function.

This is how I solve it.

To get the song's property, the easiest way is to set column's header property to display only information that I need. I care only about it's artist, title and file path.

ControlListView("active", "", "SysListView321", "GetText", ControlListView("active","","SysListView321","getSelected",0), $i)

with $i from 0 to 2. I do a loop through selected items, check each path and use fileMove() function to move and rename filename to its new home directory based on artist name.

But still I'm curious about adding my own function to a pop-up menu. If anyone can give me a hint, I'll appreciate. ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0