Page 1 of 1

Questions about interfacing with Xlobby...

PostPosted: Fri Jul 16, 2004 8:09 pm
by James4U
I have a question, and maybe Steven or someone else can answer them.. :)
I am new to the C# world, xstats being the first programming I have done using C#..
I used to program in C++ years ago, but alot of that has faded away to using php and some VB..

1. In Xlobby you can size and position a text/graphic button on the screen, but how do I get the info from xlobby as to the button size and position?
I see a function in XPluginSDK for SendCommand()..
Do I use this command??
If so, how would I get the info I am looking for??

TIA.. :)


PostPosted: Sun Jul 18, 2004 2:50 am
by stevenhanna6
if you gave the button a "buttonid" I could add something so you can grab that info. Why do you want it?

PostPosted: Mon Jul 19, 2004 3:53 am
by James4U
Just looking into creating a plugin for WMP/WinAmp, instead of having to run the program from within Xlobby..
I would like to be able to add things like the visualization window, but need to know the dimensions/position to create the window within the button..
Also, kicking around maybe adding the ability to display the control bar as well..

PostPosted: Thu Jul 22, 2004 12:25 pm
by badubo
I dubble this request :)

PostPosted: Thu Jul 22, 2004 5:16 pm
by stevenhanna6
Alright I have add a new SendCommand() command

"buttonsize:<button id>", this will allow you to retrive the size of a button from a unique button id in the following format <x>:<y>:<width>:<height>. An example of using this would be "buttonid:mybutton", the results would be 10:20:50:40

PostPosted: Thu Jul 22, 2004 5:19 pm
by badubo
Thanks Steven :)

PostPosted: Thu Jul 22, 2004 5:20 pm
by stevenhanna6
I might as well mention the new ability to trigger any command from a plugin, see the very end of the SDK on how to do it.