|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Wed Jul 04, 2007 2:29 pm
Toggling Class Status in Another Window |
Hi, I have a series of classes in a side window from the main one. I want to be able to enable and disable these classes (in the side window) from the main window. The normal
etc does not work from the main window, because it looks for the class with Classname within the main window.
Are ideas on getting this to work? Thanks in advance! |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Wed Jul 04, 2007 5:56 pm |
how about something like(untested)
Code: |
windowname:#CLASS Classname 1 |
|
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Wed Jul 04, 2007 6:22 pm |
That did the trick. It did, however, steal the focus away from the main window and put it on the side window.
In order to restore focus to the main window, I did:
SideWindow:#CLASS Classname 1; MainWindow:#NOOP
Thanks for the help! |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Wed Jul 04, 2007 7:35 pm |
I'm not sure ( not at home so can't test) but I think if you prefix the the whole thing which a colon it doesn't take focus away;
ala
Code: |
:windowname:#CLASS Classname 1 |
EDIT:sure enough apparently it does |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Sun Jul 08, 2007 6:30 am |
Hmm. That works for me with normal text, but not with commands:
Side goes, "blah".
Main goes, "blah".
That doesn't make sense. Ideas? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sun Jul 08, 2007 6:47 am |
Use #SAY. #ECHO goes to the currently active window (usually the main window), #SAY and #SHOW go where you tell it to.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Sun Jul 08, 2007 3:38 pm |
Thank you again. ;-)
|
|
|
|
|
|