Lua for Logitech G510 display showing what Foobar2k is playing?

I have a Logitech G510 keyboard and it has a media display thing, but it only works for WMP. That sucks. It has a scripting thing that you can run Lua scripts for the display and such, so I was wondering if there was a way I could use that to get say, the window title of Foobar2k with it or something like that.

I have never used Lua before, I've never really had to, it seems easy enough to use but I have no idea if it'll work for this.

http://www.foobar2000.org/components/view/foo_logitech_lcd

Oh, awesome, the first thing I did was look there but I guess I didn’t see it. Thanks for the link.