Hydrogenaudio Forums

Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: lucpes on 2003-09-13 16:02:38

Title: Foobar2000 classname
Post by: lucpes on 2003-09-13 16:02:38
I know that this is not a 'development' question, but what's the classname for the FB2K window (want to use a remote program with it)?

I don't know how to read it from the SDK so I'd need some help.

Thanks in advance!
Title: Foobar2000 classname
Post by: Moneo on 2003-09-13 16:21:25
FOOBAR2000_CLASS
Title: Foobar2000 classname
Post by: anza on 2003-09-13 16:21:56
I believe it's FOOBAR2000_CLASS (that's what StrokeIt said while I was configuring it to work with foobar )

Damn, Moneo was faster
Title: Foobar2000 classname
Post by: lucpes on 2003-09-13 20:30:38
Thanks!
Title: Foobar2000 classname
Post by: kode54 on 2003-09-14 07:33:31
Don't rely on the class name to be the same with every UI component. Some day, there might actually be more of them.
Title: Foobar2000 classname
Post by: lucpes on 2003-09-14 17:25:18
Quote
Don't rely on the class name to be the same with every UI component. Some day, there might actually be more of them.

I only needed it for using it with a program that would enable me to use the TV tuner's remote with any application... There's no coding involved, only some proprietary script:

Code: [Select]
ForegroundApp("FOOBAR2000_CLASS")
{
    "VolumeUp"    : PressKey(VK_ADD)
    "VolumeDown"    : PressKey(VK_SUBTRACT)
    "Play"    : PressKey(VK_C)
    "Stop"    : PressKey(VK_Z)
    "Left"    : PressKey(VK_LEFT)
    "Right"    : PressKey(VK_RIGHT)
    "ChannelUp"    : PressKey(VK_N)
    "ChannelDown"    : PressKey(VK_V)
}


BTW: the proggie is called Borg Remote (http://www.borgtech.org/btv/bremote.php). Some may find it useful
SimplePortal 1.0.0 RC1 © 2008-2020