Possible to use a screen name as a parameter?

Help each other out

Possible to use a screen name as a parameter?

Postby WannaTheater on Wed Mar 26, 2008 2:42 am

HI, tried something that I thought might work, but I can't get it to happen.

I would like use "Save to Variable" to save a screen name, then open the overlay from the saved name:

Like this:
1) Save To Variable:
Information: MyScreenName (corresponds to XML filename)
Variable (Location): MyVar

2) Show Overlay New Layer:
Overlay Screen Name: %variable>MyVar%

Thought it would work, but no go. Anyone else ever do anything like this?

Thanks!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Re: Possible to use a screen name as a parameter?

Postby dalanik on Wed Mar 26, 2008 7:37 am

I do it all the time, but from XSriptNG.... I save screen name because I have like 4 main (menu) screens, so I know to which to return from category screens...

Dim sm as String
sm=Xlobby.ActiveScreen()

That's it :-)

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Re: Possible to use a screen name as a parameter?

Postby WannaTheater on Wed Mar 26, 2008 11:06 am

Yes Yes Very close to what I need. But this pulls the screen name of the active screen; I need to force an screen to a known string

Perhaps:

Dim sm as String = "ScreenToOpen"
XLobby.ExecCommand("xlobby", "show overlay new layer", sm)
Xlobby.Invalidate()

Is the Invalidate necessary?

Also, with XscriptNG I have been have been unable to SET variables

I could not get the following to work (I have a variable TV_STATE which I would like to set within Xlobby GUI, but also read and modify in XscriptNG)

XLobby.SetXlobbyVar("variable>TV_STATE","1") ---> not working

Thanks!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Re: Possible to use a screen name as a parameter?

Postby WannaTheater on Wed Mar 26, 2008 11:27 am

Also, is it possible to determine a buttons STATE from within XscriptNG?
I have been tracking button states with variables, which makes for double beekkeeping!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Re: Possible to use a screen name as a parameter?

Postby dalanik on Wed Mar 26, 2008 12:43 pm

WannaTheater wrote:Yes Yes Very close to what I need. But this pulls the screen name of the active screen; I need to force an screen to a known string

Perhaps:

Dim sm as String = "ScreenToOpen"
XLobby.ExecCommand("xlobby", "show overlay new layer", sm)
Xlobby.Invalidate()

Is the Invalidate necessary?

Also, with XscriptNG I have been have been unable to SET variables

I could not get the following to work (I have a variable TV_STATE which I would like to set within Xlobby GUI, but also read and modify in XscriptNG)

XLobby.SetXlobbyVar("variable>TV_STATE","1") ---> not working

Thanks!


I'm pretty sure that it works... but the syntax is not
XLobby.SetXlobbyVar("variable>TV_STATE","1")
but I use
Xlobby.SendCommand("xlobby", "save to variable", "1", "TV_STATE")

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Re: Possible to use a screen name as a parameter?

Postby WannaTheater on Wed Mar 26, 2008 12:54 pm

I was going to try that next.
The confusion is that in the Xscript.chm file there is a SetXlobbyVar Method, which I was unable to get to work

Also, can you determine a button state from within XscriptNG?

Thank you for all of your help. This skin is finally coming together!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida