DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: import/export foobar keyboard shortcuts  (Read 15,781 times)

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
IDEA: import/export foobar keyboard shortcuts
« on: February 13, 2015, 03:27 AM »
http://www.foobar2000.org/

Could someone make a tool to import and export foobar keyboard shortcuts?  This is a huge pain with fresh foobar installs.

To explain more, you can import/export the ENTIRE configuration with certain methods, but there's no way to do it with ONLY the keyboard customizations.  This is a problem because you may have configured your foobar and replacing the entire configuration will ruin that.

I don't know what is involved.  I know the shortcuts are stored in the core.cfg file, but it's not just a text file, it opens with all sorts of hex stuff.  But I believe that is the file that needs to be modified.  Or there may be another way to do it, I don't know.

I'd be willing to pay!

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #1 on: March 23, 2015, 08:10 PM »
$50 ?

kilele

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 243
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #2 on: March 24, 2015, 12:40 AM »
Can Foobar be installed on portable mode?
If so, preferences shouldn't be lost when updating the program.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #3 on: March 24, 2015, 12:53 AM »
Can Foobar be installed on portable mode?
If so, preferences shouldn't be lost when updating the program.
This is true.  I've tried both modes.  This is also a known issue with foobar.
The problem is, you want to retain the keyboard shortcuts regardless of the rest of the settings.  So you can't separate them out.  For example, let's say I have foobar configured just the way I like, but without the keyboard shortcuts.  if I restore a previous configuration, it's going to replace everything, not just the keyboard shortcuts.

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #4 on: May 25, 2015, 07:12 PM »
bump... $100 ?

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #5 on: May 26, 2015, 02:37 AM »
I think your best bet is to try and get the author of foobar to change from using a binary format for his config files to something like XML then it would be relatively easy.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #6 on: May 26, 2015, 05:00 AM »
I think your best bet is to try and get the author of foobar to change from using a binary format for his config files to something like XML then it would be relatively easy.
I don't think that will ever happen!  I don't know why it's like that, for a program known for it's configurability, free, etc.

I was hoping it could be done with AHK or something.  Right now, the only way to do it is seriously manual.  One by one.
foobar has plugins or "components"...I was wondering if it could be done that way too.

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #7 on: May 26, 2015, 05:34 AM »
if we could only work out the file format it shouldn't be hard...

if only...
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #8 on: May 26, 2015, 01:10 PM »
I had a play around with BeyondCompare seeing what happened when I changed shortcuts ... ugh! What a nightmare ... looks like there's a checksum near the beginning, keyboard shortcuts are near the end ...

As an example, I changed a shortcut from Control+Z to Control+Y:

2015-05-26 23_02_38.png

I'm thinking that the 02 after the Z/Y is the key modifier (Control) but other than that ¯\_(ツ)_/¯
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #9 on: May 26, 2015, 05:45 PM »
I had a play around with BeyondCompare seeing what happened when I changed shortcuts ... ugh! What a nightmare ... looks like there's a checksum near the beginning, keyboard shortcuts are near the end ...

As an example, I changed a shortcut from Control+Z to Control+Y:
(see attachment in previous post)
I'm thinking that the 02 after the Z/Y is the key modifier (Control) but other than that ¯\_(ツ)_/¯
eesh, it's like that?!  Now I know what you guys mean! 
Maybe that's why nobody has made one in all the years of foobar.
I mean, they have an SDK...does that help?

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #10 on: May 26, 2015, 11:24 PM »
I had a look at the SDK, it seemed to have info on how to add your own page to the preferences and provide functions for reading/writing your own config file but I'm not sure they could be used for accessing the Core.cfg file.

Someone else who knows what they're looking for needs to look at it, (mouser?).
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: IDEA: import/export foobar keyboard shortcuts
« Reply #11 on: May 26, 2015, 11:51 PM »
you guys must be right about the cfg file.  It's weird that nobody has made a keyboard plugin in all these years, and every other little thing has been made.  So there must be something just kind of impossible about it, this community is not one to let something like that go for so long.

Original address: https://www.donationcoder.com/forum/index.php?topic=40216.0