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
 
Posts: 204
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
 
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
 
Posts: 204
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
 
Posts: 505
Joined: Mon May 03, 2004 7:33 pm
Location: Belgium