sweetolddp Posted May 15, 2008 Report Share Posted May 15, 2008 i need help figuring out this code. alias cwindow { var %a = 1 while ($window(*,%a)) { if ($chr(37) = $left($window(*,%a),1)) { echo $window(*,%a) Closing $window(*,%a) window -c $window(*,%a) } inc %a } } it reads the windows correctly, echos the correct window that its closing it, but wont close it. suggestions like, "right clicking to close the window" , or typing "/part" = fail. i know those leave the channel. i need this loop to work to close the windows with % as the first char in the window without using /part or /quit. suggestions..? is it even possible? Link to comment Share on other sites More sharing options...
The Gate Keeper Posted May 15, 2008 Report Share Posted May 15, 2008 i'm not too sure. Try typing "//window -c $active" (without ") in the channel window and see if it closes. However, closing a window, normally indicates "part", so it is weird that you are trying to do this? What are you trying to do it for? Link to comment Share on other sites More sharing options...
Guest Zantetsuken Posted May 15, 2008 Report Share Posted May 15, 2008 if your trying to close the chan window.. why not use $chan instead of $window Link to comment Share on other sites More sharing options...
sweetolddp Posted May 15, 2008 Author Report Share Posted May 15, 2008 pass. thanks zan and TGK. i ended up using both your suggestions with $chan and $active Thanks Link to comment Share on other sites More sharing options...
Warrior124 Posted August 3, 2008 Report Share Posted August 3, 2008 Try this... alias cwindow { var %a = 1 while ($window(*,%a)) { if ($chr(37) = $left($window(*,%a),1)) { echo $window(*,%a) Closing $window(*,%a) part $window(*,%a) } inc %a } } For some odd reason it looks like the command "window -c $window(*,%a)" isn't working, but using "part $window(*,%a)" will close the appropriate window. Link to comment Share on other sites More sharing options...
Guest Travis Posted August 3, 2008 Report Share Posted August 3, 2008 It depends on how you connection is. You may need to activate the connection if you have more than one status window open. /scon or /scid Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now