To complete tags I often use the action 'Edit tags - open track Folder in MP3Tag ...'. Now I wanted to define a hotkey, but I can't find one in the hotkey list of actions.
Therefore my wish would be to add an 'action': open track Folder in MP3Tag ... to this list.
Carsten
[REQ] Add new item in Hotkey list
Moderator: Gurus
Re: Add new item in Hotkey list
Users can't add new hotkey actions.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Re: [REQ] Add new item in Hotkey list
Sorry, I expressed myself in a misleading way. I do not wish to add this entry myself. Rather, it is my wish that this entry should be added to this list.
Re: [REQ] Add new item in Hotkey list
Hi Crasten, I guess this action was added by an addon/script?Therefore my wish would be to add an 'action': open track Folder in MP3Tag ... to this list.
At first the action needs to be in the actions and then have attribute 'hotkeyAble: true'
See: [MM5 install folder]/sampleScripts/hokteyAction/
You can move it from the /sampleScripts/ to /scripts/ folder to have this sample script active..
The code is just:
Code: Select all
actions.myCustomAction = {
title: 'My Custom Action',
hotkeyAble: true,
execute: function () {
messageDlg('This action was created by hotkeyAction script.', 'information', ['btnOK'], {
defaultButton: 'btnOK'
}, undefined);
}
}
hotkeys.addHotkey('Ctrl+Shift+Q', 'myCustomAction');
Re: [REQ] Add new item in Hotkey list
Hi Ludek,
thank you for help to add the hotkey.
I just inserted the following line:
with reference to the already existing action part
I have omitted the part
Carsten
thank you for help to add the hotkey.
I just inserted the following line:
Code: Select all
hotkeys.addHotkey('Ctrl+Shift+O', 'openFolderMP3Tag');
Code: Select all
actions.openFolderMP3Tag = {
title: _('Open Track-Folder in MP3Tag ...'),
icon: 'openMP3Tag',
disabled: uitools.notMediaListSelected,
visible: window.uitools.getCanEdit,
execute: async function () {
var list = await uitools.getSelectedTracklist().whenLoaded();
if (list.count === 0) {
return;
}
list.forEach(function(itm) {
var AppParameters = '/fp:"' + itm.path + '"'
app.utils.shellExecute(AppPathMT, AppParameters)
});
}
}
Code: Select all
actions.myCustomAction = { ....}
Re: [REQ] Add new item in Hotkey list
OK, so I guess that you just need to add the
to the actions.openFolderMP3Tag object//
Code: Select all
hotkeyAble: true,
Re: [REQ] Add new item in Hotkey list
Hi Ludek
Interestingly, it also works without
Nevertheless, I have added this to the
inserted
This is how it looks now:
Any comments? And thank you again
Carsten
Interestingly, it also works without
Code: Select all
hotkeyAble: true,
Code: Select all
actions.openFolderMP3Tag = { --.
This is how it looks now:
Code: Select all
actions.openFolderMP3Tag = {
title: _('Open Track-Folder in MP3Tag ...'),
icon: 'openMP3Tag',
disabled: uitools.notMediaListSelected,
visible: window.uitools.getCanEdit,
hotkeyAble: true,
execute: async function () {
var list = await uitools.getSelectedTracklist().whenLoaded();
if (list.count === 0) {
return;
}
list.forEach(function(itm) {
var AppParameters = '/fp:"' + itm.path + '"'
app.utils.shellExecute(AppPathMT, AppParameters)
});
}
}
hotkeys.addHotkey('Ctrl+Shift+O', 'openFolderMP3Tag');
Carsten
Re: [REQ] Add new item in Hotkey list
Hmm,
I guess that once 'hotkeyAble: true' is missing then it won't show in Options > Hotkeys as availbale hotkey action.
I guess that once 'hotkeyAble: true' is missing then it won't show in Options > Hotkeys as availbale hotkey action.