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
> Keyboard shortcuts
grandpa
post Feb 10 2017, 16:25
Post #1


Member


Group: Validating
Posts: 2
Joined: 10-February 17
From: Montreal
Member No.: 23048
Mp3tag Version: 2.80



Is there any way I can use my own shortcuts smile.gif
Go to the top of the page
 
+Quote Post
poster
post Feb 10 2017, 16:36
Post #2


Member


Group: Full Members
Posts: 1334
Joined: 22-March 09
Member No.: 9241
Mp3tag Version: 2.83e



ZITAT(grandpa @ Feb 10 2017, 16:25) *
Is there any way I can use my own shortcuts smile.gif

That depends. Not for the menues that belong to MP3Tag but partly for own self-defined actions.
Go to the top of the page
 
+Quote Post
Zerow
post Feb 15 2017, 22:06
Post #3


Member


Group: Full Members
Posts: 598
Joined: 31-January 15
From: East of Eurolandia
Member No.: 20375
Mp3tag Version: 2.83



QUOTE (grandpa @ Feb 10 2017, 16:25) *
Is there any way I can use my own shortcuts smile.gif
Tools > Options > Tools

There you can define what should happen, when you press CTRL +1, CTRL + 2, ..., CTRL + 0
Go to the top of the page
 
+Quote Post
grandpa
post Feb 17 2017, 13:57
Post #4


Member


Group: Validating
Posts: 2
Joined: 10-February 17
From: Montreal
Member No.: 23048
Mp3tag Version: 2.80



Why can't I make my own????
Go to the top of the page
 
+Quote Post
stevehero
post Jul 23 2017, 17:08
Post #5


Member


Group: Full Members
Posts: 751
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.83e



QUOTE (grandpa @ Feb 10 2017, 16:25) *
Is there any way I can use my own shortcuts smile.gif

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.


Attached Image


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.
CODE
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)
CODE
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:

}


This post has been edited by stevehero: Jul 23 2017, 17:38


--------------------
Go to the top of the page
 
+Quote Post
stevehero
post Jul 24 2017, 00:29
Post #6


Member


Group: Full Members
Posts: 751
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.83e



AutoHotkey can do what you want + MORE smile.gif

  • 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.

CODE
;
; 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.

This post has been edited by stevehero: Jul 25 2017, 00:59


--------------------
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: 27th July 2017 - 03:29