 |
Evilhunter Newbie
Joined: 01 Dec 2007 Posts: 7
|
Posted: Mon Dec 03, 2007 11:36 pm
[Pro 2.14a beta] Question about windows |
I have such alias:
Recommendations: #clr
#if (@recommendedActions != "") {
#window Recommendations Recommended actions:
#window Recommendations " "
#forall @recommendedActions {
#window Recommendations " "%ismember(%i, @recommendedActions). %i
}
}
#window Main
It calls every time I walk (it calls from every press of "direction"-macros-button).
I have rooms scripts which are very simple - they just set variable @recommendedActions to_some_value (that's a list variable).
The basic idea of this script is (for example or whatever more advanced) to show in window Recommendations some list.
Most of the rooms set up my list variable into "". So, I just want script to clear window Recommendations (and NOT to move focus in it, NOT switch to it etc.)
I want script to switch focus into the window Recommendation only when my variable is not empty.
So, my problem is: as I noticed command #clr which is sent to my secondary window inflicts switching to this window.
Is there any possibility to do just clear window without automatic switching to it?
I'm asking just because I didn't have problems with such script in zMUD.
What was changed in client core about windows? :)
Thanks,
Mike. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Dec 04, 2007 1:07 am |
Quote: |
Recommendations: #clr
|
This is where your problem is. When you don't want the focus to switch to another window, start the line with a colon:
:Recommendations:#clr |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
Evilhunter Newbie
Joined: 01 Dec 2007 Posts: 7
|
Posted: Tue Dec 04, 2007 1:38 am |
If I do it #clr action doesn't work.
As I remember (after 1 year without MUDding :) so may be I'm wrong ) it worked in zMUD.
In CMUD it doesn't work.
But thanks for answer. |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Dec 04, 2007 1:46 am |
In CMUD, the #CLR command also takes an argument which is the name of the window to clear. So you can also just do:
#CLR Recommendation
and that should work. |
|
|
 |
Evilhunter Newbie
Joined: 01 Dec 2007 Posts: 7
|
Posted: Tue Dec 04, 2007 2:09 am |
Thanks a lot, Zugg.
That works. |
|
|
 |
|
|