IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Is is possible to have mp3tag do a "walk"?
ms6676749
post Mar 19 2017, 03:24
Post #1


Member


Group: Full Members
Posts: 52
Joined: 17-March 16
Member No.: 21892
Mp3tag Version: 2.75



Every track in a directory has a unique refid that is tied to a DB containing per song metadata. I figured out how to do issue a no-confirm command (unchecked "show message after save" and issued the appropriate key strokes [two enter keystrokes]) and would like to perform a "walk" down the list. Can mp3tag do this or can direct me another forum post here or elsewhere where a 3P program, say autohotkey or something, can do the trick?

EDIT: Here's a quick autohotkey script that does the trick, but it is an infinite loop and the break key isn't responsive. Does anyone have any other suggestions?

EDIT 2: I removed the infinite loop and replaced it with a prompt asking the number of tracks which to run the script. It should be number larger than the number of tracks on the album.
CODE
#q::
    BreakLoop = 1
    return

#s::
#IfWinActive ahk_exe Mp3tag.exe; for &A music source#&1 &Song Info.src
InputBox, times, Number of tracks (more than on album)
    if (times > 0); test if it is a number
    {
        Loop % times
        {
            if (BreakLoop = 1)
                break
            Send !s; alt+s to bring up tag sources menu
            Send a; Select &A music source
            Send s; Select &Song Info
            Send {Enter}
            Send {Enter}
            Sleep 1000; Pause for server lookup
            Send {Down}; Next file
        }    return
    }


Video of the autohotkey in action: https://youtu.be/itrzHlqzs9U

This post has been edited by ms6676749: Mar 19 2017, 23:50
Go to the top of the page
 
+Quote Post
ohrenkino
post Mar 19 2017, 10:24
Post #2


Member


Group: Full Members
Posts: 9003
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84a



I think that some mouse drivers have an auto-scroll function when you press the mouse wheel.


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
ms6676749
post Mar 19 2017, 16:28
Post #3


Member


Group: Full Members
Posts: 52
Joined: 17-March 16
Member No.: 21892
Mp3tag Version: 2.75



QUOTE (ohrenkino @ Mar 19 2017, 11:24) *
I think that some mouse drivers have an auto-scroll function when you press the mouse wheel.
???
Go to the top of the page
 
+Quote Post
ohrenkino
post Mar 19 2017, 16:35
Post #4


Member


Group: Full Members
Posts: 9003
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84a



ZITAT(ms6676749 @ Mar 19 2017, 16:28) *
???

Does not really help.
Perhaps you have a look at your description and explain it again if the answers are not what you expected.

For me a "walk" looks a lot like scrolling through the data. That is why I gave that answer.

This post has been edited by ohrenkino: Mar 19 2017, 16:35


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
Florian
post Mar 19 2017, 18:00
Post #5


Developer


Group: Admin
Posts: 8041
Joined: 12-December 01
From: Germany, Dresden
Member No.: 203
Mp3tag Version: 2.84a



Selecting the next file (i.e., "walk") can be done via the [Ctrl+N] keyboard shortcut (or via Edit > Select next file).

By the way, you can disable the notification message after saving tags at Options > Messages.

Kind regards
– Florian


--------------------
♫ If you like using Mp3tag please donate to support further development.

Go to the top of the page
 
+Quote Post
ms6676749
post Mar 19 2017, 20:07
Post #6


Member


Group: Full Members
Posts: 52
Joined: 17-March 16
Member No.: 21892
Mp3tag Version: 2.75



QUOTE (ohrenkino @ Mar 19 2017, 17:35) *
For me a "walk" looks a lot like scrolling through the data. That is why I gave that answer.
I guess I should've been clearer since a "walk" AFAIK typically means a command/task will be executed on each item on a list.

Here, the "list" is the tracklist in mp3tag's main window and the task to be executed on each track in sequential order is a websource script querying a unique SONG_ID associated for each track. So, I cannot select-all and run the websource script because the results will only reflect that of what mp3tag queries from the first track on the list.

I forgot that I asked a similar question last year (in greater detail) at a time I was coming to grips with mp3tag's scripting language: https://forums.mp3tag.de/index.php?showtopi...ost&p=91338

Your reply back then, even if it was honest, wasn't too helpful and I gave up and found a way to tie keystroke sequences to mouse gestures. Unfortunately, I still had to manually press the down arrow to process the next track. It was fine for a single artist album, but I balked at doing it for large box sets (>100 songs each). The autohotkey idea came from troubleshooting someone's issue in another forum and I decided to try it out and it appears to have worked.

QUOTE (Florian @ Mar 19 2017, 19:00) *
Selecting the next file (i.e., "walk") can be done via the [Ctrl+N] keyboard shortcut (or via Edit > Select next file).

By the way, you can disable the notification message after saving tags at Options > Messages.

Kind regards
– Florian
Hi Florian,

That's good to know. You are correct that confirmation messages can be disabled under settings (I found the information here via google). I didn't know about the CTRL+N shortcut. Thankfully, the 3P programs I used support sending [down arrow] keystroke inputs to mp3tag.

I had a problem delaying the [down arrow] keystroke when assigning a keystroke sequence to run a web source script via a mouse gesture (strokeit). The [down arrow] input when the sequence is executed is washed out since the metadata lookup takes a second or two. StrokeIt's documentation doesn't say if certain keystrokes can be delayed.

However, this is not a StrokeIt support forum and thankfully I found out just the other day that Autohotkey does support delays between strokes (see the 1st post). As you probably guessed by now, I believe I answered my own question with the help of Autohotkey. I just wanted to share the autohotkey hotkey I wrote in case somebody else finds it useful.

For example, someone might use it to call a last.fm websource run through the tracklist to obtain per track moods and other song-specific metadata as the hotkey works its way down the entire tracklist.

Cheers

This post has been edited by ms6676749: Mar 19 2017, 20:08
Go to the top of the page
 
+Quote Post
ohrenkino
post Mar 19 2017, 21:47
Post #7


Member


Group: Full Members
Posts: 9003
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84a



ZITAT(ms6676749 @ Mar 19 2017, 20:07) *
... I didn't know about the CTRL+N shortcut....

Here is a list of keyboard shortcuts for functions:

http://help.mp3tag.de/main_keyboard.html


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
ms6676749
post Mar 19 2017, 23:36
Post #8


Member


Group: Full Members
Posts: 52
Joined: 17-March 16
Member No.: 21892
Mp3tag Version: 2.75



QUOTE (ohrenkino @ Mar 19 2017, 22:47) *
Here is a list of keyboard shortcuts for functions:

http://help.mp3tag.de/main_keyboard.html
I've seen that page before and referred to it numerous times but I never looked for a short-cut for next file because the programs I used supported sending a down_arrow keystroke to a running instance of mp3tag. Still, it wouldn't hurt to try it.

Anyways, FWIW, here's my autohotkey "walk" down a list of files adding per track mood data and reviews: https://youtu.be/itrzHlqzs9U

This post has been edited by ms6676749: Mar 19 2017, 23:37
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th September 2017 - 08:39