bayangan Posted December 9, 2006 Share Posted December 9, 2006 (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 December 9, 2006 by bayangan Link to comment Share on other sites More sharing options...
Uten Posted December 9, 2006 Share Posted December 9, 2006 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. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
bayangan Posted December 9, 2006 Author Share Posted December 9, 2006 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. Link to comment Share on other sites More sharing options...
bayangan Posted December 9, 2006 Author Share Posted December 9, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now