|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Jan 30, 2010 8:09 am
[3.13] Window captions and variables and functions "bug" |
Quick and simple.
1. Escape to untitled session.
2. #VAR test "testvar"
3. #WIN TestWin
4. Change the caption for TestWin to @test.
As you can see, it's clearly not scoping the variable from the main window. Don't know if this is intended or not, but it'd be nice to be able to store a variable in one window and let other windows have access to it.
Charneus |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Sat Jan 30, 2010 2:30 pm |
If I remember correctly variables are not supposed to be visible across windows generally.
If you want the variable test to be seen across windows you should place it within a shared package. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sat Jan 30, 2010 4:08 pm |
or in a module
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Jan 30, 2010 5:32 pm |
Sigh. Of course. The problem is, it's just one variable, and I shouldn't have to do that for one variable. One thing I'm concerned about is if I place the script (which just logs channels) into a module, the script itself will try to activate in the chat window as well. Oh well...
Charneus |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sat Jan 30, 2010 11:23 pm |
can each window run its own #log file?
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Jan 31, 2010 1:01 am |
It's more than just that, shalimar. I have each channel captured to its own individual file. Regardless, for whatever reason, it seems to be working now, and I hadn't made any changes to it... very weird...
|
|
|
|
|
|