|
Ins0mniak Apprentice
Joined: 27 Apr 2001 Posts: 110
|
Posted: Thu Feb 07, 2002 10:26 pm
Variable to another session? |
Hi... i am trying to send a variable from one session to another, but can't seem to find any way to do it...
:window:#SHOW @OtherWindowVariable does not work, because it looks for that variable in the window i am trying to send it to. Any help? |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Thu Feb 07, 2002 10:49 pm |
From within session1 type:
:session2:#SH @session1.OtherWindowVariable
TonDiening
Uses 6.16 |
|
|
|
Ins0mniak Apprentice
Joined: 27 Apr 2001 Posts: 110
|
Posted: Thu Feb 07, 2002 11:20 pm |
thank you so much!
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri Feb 08, 2002 5:52 am |
As a side note I don't think anyone figured
out how to pass a %function value to another
session without creating a variable.
iljhar was working on an idea passing %ctime
I believe 3+ months back.
TonDiening
Uses 6.16 |
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Fri Feb 08, 2002 7:17 am |
someone mention my name? :)
Yeah, I was trying to do some funky stuff and couldn't get it to work so I just had to find a work-around. Maybe I'll try to play with it again, see if I can't get it to work. If I can, you know you'll be seeing a new topic about it! ;)
Iljhar |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sat Feb 09, 2002 5:56 am |
Hrm didn't know the @sessioname.whathaveyou worked. Oh well to answer how to pass functions and things like ctime just use a modified version of my work around for verbatim mode commands "#EXEC %expand(:TargetSession:%ctime)" also works for variables. There always is the WINDOW command too "#WINDOW TargetSession {triggerable text here %ctime}". Of course you have to use a trigger with that in order to do anything useful.
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Mon Feb 11, 2002 4:42 am |
Vijilante, very nice. Thanks for pointing
that out.
Solves that problem for me!
#EXEC %expand(:sessionname:#SH Far side: %ctime)
TonDiening
Uses 6.16 |
|
|
|
|
|