goto %variable%

Got an idea, post it here

goto %variable%

Postby dalanik on Tue Feb 01, 2005 10:08 am

Is this possible?

I'd like to assign variable a screen name and then use it to jump to screen...

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

Postby dalanik on Tue Feb 01, 2005 10:44 am

Thought I might add why this would be needed...

As you might know, I have several main screens with sligtly different layout... The problem is that when you go from 2nd or 3rd main screen to the music page or movies page and then press BACK, you always return to the xlobby-defined main screen which is only one.

This way I could "save" into a variable from which screen the entry was made and then return to the corresponding main screen...

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

Postby stevenhanna6 on Wed Feb 02, 2005 5:32 am

i think you can already do this, use

%variable>screename%

where "screename" is the variable your saving to, that should work...I understand your problem....I think you have the right idea I dont think there is another way to do it.

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

Postby az5 on Thu Feb 03, 2005 1:01 pm

Hi,

maybe the alias functionality of the XLToolkitPlugin (http://www.xlobby.com/forum/viewtopic.php?t=2570) is another solution.

Albert
az5
 
Posts: 17
Joined: Fri Oct 22, 2004 4:34 pm

Postby dalanik on Thu Feb 03, 2005 1:45 pm

az5 wrote:Hi,

maybe the alias functionality of the XLToolkitPlugin (http://www.xlobby.com/forum/viewtopic.php?t=2570) is another solution.

Albert


Thanx, I'll give it a try. Funny that I don't remember that plugin at all... (i usually download everything for testing) :-)

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

Postby Roscoe62 on Thu Feb 10, 2005 7:34 pm

Dalanik,

Did you get this to work? I'm trying to do something similar.

I use Theatertek 2 as my media player. Sometimes I will go to TT from the movies database screen, and sometimes from my TVonDVD database screen. When TT exits I always get returned to the movies database. What I'd like to do is return to the screen I originally came from - whether that be TVonDVD or Movies.

Can you let me know?

Cheers
Roscoe62
 
Posts: 215
Joined: Fri Jun 27, 2003 9:49 am
Location: New Zealand

Postby dalanik on Fri Feb 11, 2005 8:29 am

Roscoe62 wrote:Dalanik,

Did you get this to work? I'm trying to do something similar.

I use Theatertek 2 as my media player. Sometimes I will go to TT from the movies database screen, and sometimes from my TVonDVD database screen. When TT exits I always get returned to the movies database. What I'd like to do is return to the screen I originally came from - whether that be TVonDVD or Movies.

Can you let me know?

Cheers


Works beautifully.

Just assign variable a screen name and use it as steven suggested...

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

Postby Roscoe62 on Tue Feb 15, 2005 3:04 am

Dalanik,

Sorry to appear a bit slow, but exactly how do you do this in practise?

Perhaps if you were able to describe how you've set your situation up, I could get enough understanding to adapt it to do what I want to do.

Thanks for your patience. :oops:
Roscoe62
 
Posts: 215
Joined: Fri Jun 27, 2003 9:49 am
Location: New Zealand

Postby Roscoe62 on Wed Feb 16, 2005 11:51 pm

Can anyone explain how to do this?

Please?
Roscoe62
 
Posts: 215
Joined: Fri Jun 27, 2003 9:49 am
Location: New Zealand

Postby dalanik on Mon Feb 21, 2005 2:35 pm

Well, I have 4 main screens.

let's call them menu1, menu2, menu3 and menu4.

create 4 events, 1 for each screen, to be executed on screen load:

variable assign mainmenu menu1
for 1st screen

variable assign mainmenu menu2
for 2nd, etc.

where mainmenu is variable, and menu1, menu2 is value

so now each time you enter one of these screens, the variable mainmenu is assigne a value which is the same as the screen name.

then when you go anywhere from that particular screen (i.e. screen3), and want to return to it, you just do

goto %mainmenu%

and it'll go to the screen3 (in our example)

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

Postby Roscoe62 on Mon Feb 21, 2005 7:16 pm

Thanks Dalanik! :D

I think I understand now!
Roscoe62
 
Posts: 215
Joined: Fri Jun 27, 2003 9:49 am
Location: New Zealand