Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[Lib][ahk_L] Read/Write any tags with WMPlayer.OCX.7


  • Please log in to reply
1 reply to this topic
Trubbleguy
  • Members
  • 122 posts
  • Last active: Jan 15 2017 10:50 AM
  • Joined: 20 Jan 2007

I have finally got the tag renaming of media files working properly (on my windows 7 pc anyways) and included a demo in the library

You will need to point the filename to a file on your pc though.

You can modify the library and run it straight up in test mode, or call it from another script .

AHK_L only

It uses WMPlayer.OCX.7 and is pretty quick at reading or writing any media tags (and even reads other types of files).

 

I Left all the documentation for known items you can retrieve including how to read the undocumented "contributing artists" field in the lib.

 

the code is here http://trubbleguy.com/wma.ahk

 

Any feedback and mods would be welcome, I tried to document what i could on how it works.

never doing this before has been a huge learning curve for me.....

 

Enjoy

 

EDIT1: 16th October: Found a much simpler method not using the medialist, I changed the code to use currentmedia:=wmp.newMedia( WMAName )

Now it works directly on the file perfectly, and much faster.



Trubbleguy
  • Members
  • 122 posts
  • Last active: Jan 15 2017 10:50 AM
  • Joined: 20 Jan 2007

If somebody can take a look at shell32.dll, i believe it is possible to Read tags using that even faster than WMPlayer.OCX.7, my experience using dll files is disastrous.