Custom Keyboard shortcuts

Is there any way I can use my own shortcuts :slight_smile:

That depends. Not for the menues that belong to MP3Tag but partly for own self-defined actions.

Tools > Options > Tools

There you can define what should happen, when you press CTRL +1, CTRL + 2, ..., CTRL + 0

Why can't I make my own????

I was just about to suggest the same, but that still stands. +1 for this.

But you can do stuff, it just depends on what you want to do.

For example, you can search the title and artist in youtube using macros in arsclip and assign your own keyboard shortcut. Website: >>>http://www.joejoesoft.com/vcms/97/.

This can copy text to a word documents and other things too. Quite powerful liitle app.

- First DL and install arsclip (Unzip the .zip file and run the .exe - It's a portable app) and an amazing FREE clipboard manager, I'd highly recommend it anyway for day-to-day use!. It has macros which can do a multitude of things. - So head to the edit clips/marco section of arsclip. - RMB in the system tray to find that. - See screenshot of UI of how you set it up.


Here's the code below.

Thing is, this also works in itunes fields too or whatever music player you use as it's a global shortcut.

You might want to look at Autohotkey too. https://autohotkey.com/ Which can control window handles (such as buttons/menus in a program and press them AFAIK). I've yet to look into that, but I'm sure it's possible and probably not to difficult.

Youtube title and artist search example.
Usage: Just place your cursor in the editbox of the title in mp3tag and this macro will select that text tab to the artist append copy that and then open youtube with that combined string. It reverses the artist and title automatically. See code, it's fairly easy after a few trail and error runs.

start_ac_macro:
[HOME REPEAT=1]
end_ac_macro:

start_ac_macro:
[SPACE REPEAT=1]
end_ac_macro:

start_ac_macro:
[SELECTALL]
end_ac_macro:

start_ac_macro:
[COPY="NORMAL"]
end_ac_macro:

start_ac_macro:
[HOME REPEAT=1]
end_ac_macro:

start_ac_macro:
[DEL REPEAT=1]
end_ac_macro:

start_ac_macro:
[TAB REPEAT=1]
end_ac_macro:


start_ac_macro:
[WAIT=100]
end_ac_macro:

start_ac_macro:
[COPY="PREPEND"]
end_ac_macro:


 function main(clipboardStr) {
 var s = clipboardStr.replace(/\(om\)/gi,"(Original Mix)").replace(/[^a-z]/gi," ").replace(/\s+/gi," ").replace(/^\s|\s$/gi,"");
 setClipboard(s);

start_ac_macro:
[RUN]https://www.youtube.com/results?search_query=[CLIPBRDCURRENT]
end_ac_macro:

}

Google PRE-SELECTED text search example.
Usage: Highlight the text (in any program and run your global keyboard shortcut)

start_ac_macro:
[COPYWAIT=200]
end_ac_macro:

 function main(clipboardStr) {
 var s = clipboardStr.replace(/\(om\)/gi,"(Original Mix)").replace(/&/gi,"%26").replace(/\s+/gi," ").replace(/^\s|\s$/gi,"");
 setClipboard(s);

start_ac_macro:
[RUN]http://www.google.com/search?q=[CLIPBRDCURRENT][ENDRUN]
end_ac_macro:

}


AutoHotkey can do what you want + MORE :slight_smile:

  • Install this
  • RMB on your desktop>New>AutoHotkey Script
  • Rename the file to AHK_mp3tag.ahk for example. Just make sure the extension is .ahk
  • Double click the newly created file.

This AHK_mp3tag.ahk file could be loaded very time windows starts.
Just hit win+R key and type shell:startup and paste that file in there and you should be good to go. Or if you had trouble like me in the past with win 10 use shell:Common Startup instead.

See notes for usage.

;
; Mp3Tag - Re-mappings and custom keyboard short-cuts by stevehero
; Allowing custom keyboard short-cuts ONLY while the active windows is Mp3Tag.
;

; ALT+M, Global hot key to suspend all of these keyboard short-cuts.
!m::Suspend

;
; Short-cut: ALT+6
; Remap Alt+6 to automatically accept the next pop-up dialog
; The dialog is still available by clicking it on the toolbar.
; This short-cut merely avoids having to click OK.
;
#IfWinActive ahk_exe Mp3tag.exe
    !6::
    Sleep, 400
    send, !{6}
    send, {enter}
    Return
#IfWinActive

;
; Short-cut: CTRL+N
; Remap TRACK Auto-Renumber
;
#IfWinActive ahk_exe Mp3tag.exe
    ^n::
    Sleep, 500
    send, {LAlt}
    send, {o}
    send, {Down 1}
    send, {enter}
; This next line accepts the AR dialog
    send, {enter}
    Return
#IfWinActive

;
; Short-cut: CTRL+T
; Quick RMB Tool Context menu
; If you want this to fire up a tool in mp3Tag, then rename
; the tool to have an ampersands in the name to represent the last button pressed.
; e.g. '&Youtube Search' (see {y} below)
;
#IfWinActive ahk_exe Mp3tag.exe
    ^t::
    Sleep, 400
    SendInput {control down}{shift down}{f10 down}
    SendInput {control up}{shift up}{f10 up}
    send, {t}
; Line below is optional. Here you can fire up the tool using the letter represented by the & in the tool name.
; send, {y}
    Return
#IfWinActive

;
; Short-cut: CTRL+SHIFT+S
; Works only when explorer.exe is the active window.
; Taken from AHK forum from user jeeswg: https://autohotkey.com/boards/viewtopic.php?p=160589#p160589
; Many thanks for that
; Change the path to whatever path your Spek.exe lies.
;
#IfWinActive, ahk_exe explorer.exe
    ^+s::;explorer - open selected file in SPEK
    Clipboard := ""
    Send, ^c
    ClipWait
    vPath := Clipboard
    if !FileExist(vPath)
        return
    WinGet, hWnd, ID, Spek - ahk_class wxWindowNR
    if !hWnd
    {
            Run, "C:\Program Files (x86)\Spek\spek.exe" "%vPath%"
        return
    }
    WinActivate, % "ahk_id " hWnd
    WinWaitActive, % "ahk_id " hWnd
    PostMessage, 0x111, 5000,,, % "ahk_id " hWnd;WM_COMMAND
    WinWaitActive, Open File ahk_class #32770 ahk_exe spek.exe
    WinGet, hWnd2, ID, Open File ahk_class #32770 ahk_exe spek.exe
    ControlSetText, Edit1, % vPath, % "ahk_id " hWnd2
    ControlClick, Button1, % "ahk_id " hWnd2
    return
#IfWinActive

You've got 500millisecs (half second) in which to hit the commands and lift off or else the code won't fire.

Reason for edit: Added additional code and added a suspend script to ALT+M.

I would also like to take this opportunity to request that these shortcuts be customizable. I LOVE this program, but some of the keyboard shortcuts I hate. Some, like CTRL+B, have cost me some time. Maybe just be able to deactivate some?