Find out Current Screen name from a plugin?

Xlobby plugin development

Find out Current Screen name from a plugin?

Postby m_ski on Wed Jan 04, 2006 12:01 pm

Is there an xlobby command that can be used within a plugin in order to find out the name of the current screen? I have searched all the plugin commands within Visual Studio and cannot seem to find a command that does this.

I see that the xscript plugin has this ability but I want to be able to do it from within my own plugin without relying on another plugin. How do Xscript and Xmovewindow do it?
m_ski

Silverstone LC03-V, Intel E2220 2.4GHz, Scythe Mini Ninja Heatsink,
Gigabyte GA-P35-DS3L , Crucial 2Gb PC2-6400,
Sapphire HD 3470 256MB (Passive),
120Gb Samsung Spinpoint SATA, 500Gb Seagate FreeAgent USB2,
DVB-T: DNTV Live! Pro, DNTV TinyUSB2
m_ski
 
Posts: 207
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby badubo on Wed Jan 04, 2006 2:03 pm

use

SendCommand("screen")
and it will return the current screen (but not overlays)

you can also use the new delegate possibilities (but a bit more complex)
Badubo
Member of XLobby FR Team
~~~~~~~~~~~~~~~~~
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium

Postby m_ski on Thu Jan 05, 2006 12:19 pm

Thanks Badubo - works perfectly.

There seems to be a lot of commands in the SDK to do with events and possibly generating or detecting xlobby events. Do you know anything about this? I would like to be able to detect that an event is about to occur (i.e. open overlay) and do something BEFORE this event occurs. This is probably not possible but you might be the person who can explain a little bit more.
m_ski

Silverstone LC03-V, Intel E2220 2.4GHz, Scythe Mini Ninja Heatsink,
Gigabyte GA-P35-DS3L , Crucial 2Gb PC2-6400,
Sapphire HD 3470 256MB (Passive),
120Gb Samsung Spinpoint SATA, 500Gb Seagate FreeAgent USB2,
DVB-T: DNTV Live! Pro, DNTV TinyUSB2
m_ski
 
Posts: 207
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Postby badubo on Thu Jan 05, 2006 12:51 pm

I would like to be able to detect that an event is about to occur (i.e. open overlay) and do something BEFORE this event occurs.

You can generate commands (not directly events) but you cannot detect when xlobby triggers an event
Badubo
Member of XLobby FR Team
~~~~~~~~~~~~~~~~~
badubo
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium


Return to Plugins

Who is online

Users browsing this forum: No registered users and 1 guest

cron