# Launching and applying change via a script (authotkey)

**URL:** <https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532>\
**Category:** Support\
**Created:** [January 7, 2016, 8:10am UTC](https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532 "2016-01-07T08:10:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bibli](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8baadc/32.png) [@bibli](https://community.mp3tag.de/u/bibli)\
**Post date:** [January 7, 2016, 8:10am UTC](https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532/1 "2016-01-07T08:10:41Z")

</div>

I am using Autohotkey

1. launch MP3tag
2. open a folder and load the mp3 (via CTRL+D)
3. remove the metadata ( CTRL+R )
4. send filename to tag ( ALT+2 )  
I have a delay between each step so that AHK wait like 5sec before sending the next shortcut.

So far so good, my script is working if I have like ≈ 20 files.  
But the problem is that sometimes I run the scrip for 500+ mp3 , in that case I need to increase the delay between the step to 1 min.

Instead of this way, I am wondering if MP3tag have an EventID when one of the process is done. I could then track this EventID with autohotkey and only then send the next command.

Is there such a thing as EventID in Mp3Tag? If yes, where can I find them?

Thanks a lot for your help!

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [January 7, 2016, 8:24am UTC](https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532/2 "2016-01-07T08:24:28Z")

</div>

> [@bibli](#):
>
> I am using Autohotkey
> 
> 1. launch MP3tag
> 2. open a folder and load the mp3 (via CTRL+D)
> 3. remove the metadata ( CTRL+R )
> 4. send filename to tag ( ALT+2 )  
> ...

If you set a default folder, then step 2 is not required.  
If you set the option to automatically select all loaded files, then you can execute actions.

Steps 3 and 4 can be done with actions - and these wait for each other. So the external program is not necessary.  
See [https://docs.mp3tag.de/actions](https://docs.mp3tag.de/actions) for available actions.  
(Step 3: Remove fields or remove fields except - if you selectively remove certain fields, is it strill necessary to get data from the filename?)  
Setp 4 is a "Guess value" or "Format value" action.

---

<div class="post-metadata">

**Author:** ![bibli](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/8baadc/32.png) [@bibli](https://community.mp3tag.de/u/bibli)\
**Post date:** [January 7, 2016, 9:49am UTC](https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532/3 "2016-01-07T09:49:47Z")

</div>

Thanks ohrenkino and sorry for not being more clear: I am actually a script because I run several programs among which is MP3tag: like first bulkrename then mp3tag, then mp3gain, etc...

Even if I launch an action with jy script I still need to somehow tell my script that the action is done so that it can move on to the next program.

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [January 7, 2016, 12:38pm UTC](https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532/4 "2016-01-07T12:38:52Z")

</div>

> [@bibli](#):
>
> ... I still need to somehow tell my script that the action is done so that it can move on to the next program.

Before you go on at a specific point in your external script, you may ask wether Mp3tag window exists or not. Or maybe check the existence of a specific window ID from the running Mp3tag application.

DD.20160107.1438.CET

---

<div class="post-metadata">

**Author:** ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)\
**Post date:** [January 7, 2016, 12:40pm UTC](https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532/5 "2016-01-07T12:40:52Z")

</div>

I have some AHK scripts that I use with Mp3tag and to tell when a process is done I usually use a WinWaitActive, WinTitle command.

Another one that I use is WinWaitActive, ahk\_class #32770. It's more accurate than using a Sleep command.

But ohrenkino is right, if you combine some steps into actions it will run faster and more smoothly.

Edit: DetlevD read my mind as I was posting. 😃

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:26pm UTC](https://community.mp3tag.de/t/launching-and-applying-change-via-a-script-authotkey/17532/6 "2026-02-09T12:26:02Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


