[Feature request] Advanced Shortcuts, (1) One keypress, multiple actions / (2) Tab support |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
[Feature request] Advanced Shortcuts, (1) One keypress, multiple actions / (2) Tab support |
Jun 16 2009, 15:45
Post
#1
|
|
|
troll / ban evasion Group: Banned Posts: 244 Joined: 22-April 08 Member No.: 52991 |
Hi everybody,
1. AFAIK, when we create a keyboard shortcut (Preferences > Keyboard Shortcuts > Add new), we see a list of all available actions, so we can pick one action and assign it to the shortcut. However, would there be a way to assign several actions to the same shortcut ? Example : be able to activate several dockable panels with just one keypress. Biography View, Peakmeter Spectrum, Lyrics Show Panel, etc. If there's no way yet, then I'd like to submit this feature request. 2. AFAIK, in the above-mentioned list of available actions we can't assign the activation of a given tab to a shortcut. Example : be able to activate tab named {name of the tab} We can already switch between tabs with CTRL+Tab, but this isn't useful when you've got a lot of tabs and you want to activate a given one with only your keyboard. So can this be marked too as a feature request ? What do you think ? Thanks. |
|
|
|
Jun 16 2009, 18:00
Post
#2
|
|
|
Group: Validating Posts: 2424 Joined: 21-May 08 Member No.: 53675 |
As a workaround for your problem, you can use foo_uie_tabs in Dockable panel in DUI and put your favourite CUI panels in it.
Assigning keyboard shortcuts for tabs is possible in CUI, but it seems that you can't assign them for tabs in Dockable panel although they exist in Keyboard Shortcuts in preferences and as menu actions (i.e. View > Tabbed Panel > Select Tab > Biography) they work OK This post has been edited by 2E7AH: Jun 16 2009, 18:01 |
|
|
|
Jun 16 2009, 18:21
Post
#3
|
|
|
troll / ban evasion Group: Banned Posts: 244 Joined: 22-April 08 Member No.: 52991 |
Thanks 2E7AH. That surely is a workaround, but I guess I can't be satisfied with it, hence my current request :
- If I understand well, your first workaround will allow to assign foo_uie_tabs to a shortcut, but I will only be able to display one CUI panel at a time (one for each tab, right ?), not all of them at the same time as I'd like to (each one of them having a precise screen position). - As for the second workaround, like you said it is only possible in CUI but not in DUI (I believe there was a previous discussion about this). I don't see any reason why this couldn't/shouldn't be allowed in DUI. Maybe a dev could give his advice on this ? In foobar there are often "workarounds", some of them simple, some of them quite complicated. I just hope DUI will allow users to do this, without having once again to go to CUI. I'd like to stick with DUI for obvious reasons. So, does my request look reasonable or not ? Oh, one last thing : this whole topic would be probably useless if 3rd-party components like Biography View, Peakmeter Spectrum, Lyrics Show Panel, etc., could be developed for DUI (no need for Dockable Panels anymore). However correct me if I'm wrong, but I think the current SDK ( http://www.foobar2000.org/?page=SDK ) still doesn't allow 3rd-party devs to develop DUI components. Only "privileged ones" like Frank Bicking, foosion, etc., seem to be able to develop DUI components such as Facets or Text Display. So I just wonder if there's a reason for that, and it other devs may be able to develop DUI components one day... or not. This post has been edited by foorious: Jun 16 2009, 18:27 |
|
|
|
Jun 16 2009, 18:36
Post
#4
|
|
|
Group: Validating Posts: 2424 Joined: 21-May 08 Member No.: 53675 |
Well, for viewing multiple CUI panels in Dockable panel you can use PSS (foo_uie_panel_splitter)
And I can say something about CUI panels/DUI elements, but I won't |
|
|
|
Jun 16 2009, 19:16
Post
#5
|
|
![]() Group: Members Posts: 879 Joined: 18-June 06 From: Singapore Member No.: 31980 |
Another workaround could be to use Autohotkey whose basic functionallity to enable you to trigger any kind of action (i.e. keyboard actions, launching applications, manipulating windows, ...) with a freely defineable keyboard shortcut. However, it might be overkill for you..
Appetizer: I use Ctrl+4 to launch the files properties window, select a custom field named REVIEW and press F2 to activate editing: CODE ; [snippet from my autohotkey script-file]
; foobar2000-specific shortcuts ; the freeky Identifier is automatically retreived by a helper application #IfWinActive ahk_class {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1} ^4:: ; Ctrl+4: execute the following section until the return statement send ^1 ; Ctrl+1: configured to open file properties window in fb2k sleep 50 send r ; set selection to rEVIEW sleep 50 send {F2} ; start editing return This post has been edited by ojdo: Jun 16 2009, 19:16 -------------------- http://freemusi.cc/
|
|
|
|
Jun 16 2009, 22:52
Post
#6
|
|
|
troll / ban evasion Group: Banned Posts: 244 Joined: 22-April 08 Member No.: 52991 |
Thanks to both of you. I'll have to experiment all this and report.
Sure, a panel splitter might be a good solution if it works the same way as DUI splitters do. I had also thought about automation software already. That's a good idea, it works, plus there are plenty of automation software out there. However, I'd like to avoid adding one more element to my software chain, if possible. Does foo_uie_panel_splitter require the "real" Columns UI component, or can it work with Dockable Panels like most other CUI components do ? PS : all of these solutions are complicated, too complicated for the average user. Hence my feature request. I think it makes sense. |
|
|
|
Jun 16 2009, 23:58
Post
#7
|
|
|
Group: Validating Posts: 2424 Joined: 21-May 08 Member No.: 53675 |
QUOTE Sure, a panel splitter might be a good solution if it works the same way as DUI splitters do. Put PSS in Dockable panel and "right click > add panel". Do that for as many panels as you need. They are placed horizontally and spread equally by default, but that can be changed in "Splitter settings..." This post has been edited by 2E7AH: Jun 16 2009, 23:58 |
|
|
|
Jun 17 2009, 05:25
Post
#8
|
|
|
Group: Members Posts: 2340 Joined: 28-August 02 Member No.: 3218 |
Don't multiple actions work anymore? I have an older version of fb2k in which I have assigned a shortcut to multiple actions. Fb2k reports a conflict, but it works. Idea about the Tab activation: There are two "startup playlist"/functionality plugins. One from foosion (foo_utils?) and another one here at HA. Together with the native command line interface or foo_runcmd you will probably be able to change playlists by a Windows shortcut .lnk (which you can assign a global hotkey).
This post has been edited by Squeller: Jun 17 2009, 05:30 |
|
|
|
Jun 17 2009, 14:25
Post
#9
|
|
|
troll / ban evasion Group: Banned Posts: 244 Joined: 22-April 08 Member No.: 52991 |
Hi everybody,
I've finally played around with AutoHotkey, as I was sure to get exactly what I needed in the end. Easiest thing in the world The result is awesome, even if there are some display errors due to the docked panels not being a "real" part of the DUI. Too bad DUI isn't more open, really. To wet your appetite, have a peek at my second tab for instance : CODE $F2::; SECOND TAB WinActivate ahk_class {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1} send !f; Peakmeter SMALL send !g; Lyric Show Panel send !h; Biography View send !j; Spectrum L send !k; Peakmeter LR send !l; Spectrum R send !m; Chronflow click 99, 70 send ^g; Lyric Show Panel WinActivate ahk_class {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1} send ^h; Biography View WinActivate ahk_class {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1} return This post has been edited by foorious: Jun 17 2009, 14:54 |
|
|
|
Jun 30 2009, 07:18
Post
#10
|
|
|
troll / ban evasion Group: Banned Posts: 244 Joined: 22-April 08 Member No.: 52991 |
Just an update to say that "run" commands (controlling foobar from the commandline) seem to work much better than the "send" shortcut commands (there's a topic about that : http://www.hydrogenaudio.org/forums/index....t=0#entry644197 ), so I have integrated them in a new AutoHotKey script. The new commands simply call the "View > Dockable Panels > Activate > Panelnumber - Panelname" and "View Dockable Panels > Collapse > Panelname" menu commands. The final result is simpler and more effective than before.
The previous second tab becomes as follows : CODE $F2::; SECOND TAB WinActivate ahk_class {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1} Run C:\Program Files\foobar2000\foobar2000.exe "/command:Peakmeter SMALL" "/command:Spectrum LEFT" "/command:Peakmeter BIG" "/command:Spectrum RIGHT" "/command:Chronflow" "/command:2 - Lyric Show" "/command:5 - Biography" MouseGetPos, Xpos, Ypos click 99, 70 MouseMove %Xpos%, %Ypos%, 0 WinActivate ahk_class {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1} return Besides, no need for all the CTRL-g, ALT-g, CTRL-h, ALT-h, CTRL-j, ALT-j, CTRL-k, ALT-k, CTRL-l, ALT-l, CTRL-m and ALT-m shortcuts anymore. Only F1-F4 remain of course. This post has been edited by foorious: Jun 30 2009, 07:27 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 00:48 |