Questions about interfacing with Xlobby...

Xlobby plugin development

Questions about interfacing with Xlobby...

Postby James4U on Fri Jul 16, 2004 8:09 pm

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.. :)

James
James4U
 
Posts: 18
Joined: Thu Jun 17, 2004 4:43 am
Location: Ontario, Canada

Postby stevenhanna6 on Sun Jul 18, 2004 2:50 am

if you gave the button a "buttonid" I could add something so you can grab that info. Why do you want it?
stevenhanna6
 
Posts: 934
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby James4U on Mon Jul 19, 2004 3:53 am

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..
James4U
 
Posts: 18
Joined: Thu Jun 17, 2004 4:43 am
Location: Ontario, Canada

Postby badubo on Thu Jul 22, 2004 12:25 pm

I dubble this request :)
Badubo
Member of XLobby FR Team
~~~~~~~~~~~~~~~~~
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Postby stevenhanna6 on Thu Jul 22, 2004 5:16 pm

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

http://www.xlobby.com/xlobby2.zip
stevenhanna6
 
Posts: 934
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby badubo on Thu Jul 22, 2004 5:19 pm

Thanks Steven :)
Badubo
Member of XLobby FR Team
~~~~~~~~~~~~~~~~~
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Postby stevenhanna6 on Thu Jul 22, 2004 5:20 pm

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.

http://www.xlobby.com/Documentation/PluginSDK
stevenhanna6
 
Posts: 934
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada


Return to Plugins

Who is online

Users browsing this forum: No registered users and 2 guests

cron