[Edited] Added additional information for completeness. -Hammer
; To use this identifier, pass in your unknown window type.
; $winType($active) can return
; #Hammer is of type channel
; Hammer is of type query
; =Hammer (dcc chat window) is of type chat
; =Hammer (fserve window) is of type chat
; @Hammer is of type custom
; Notify List is of type notify
; URL List is of type urls
; Send Hammer mirc.exe is of type send
; Get Hammer mirc.exe is of type get
; Links List is of type links
; Message Window is of type message
alias winType return $window($$1).type
; To test, you can use the following alias and the timer that follows it; then just make different
; window types active and watch your status window for the results.
alias echoWinType echo $color(info) -sti2 $active is of type $window($active).type
; /.timerWin 0 10 echoWinType
; Incidentally, you can close any of those windows with /window -c .... for those windows with
; multi-word names, enclose the names in double-quotes.
; /window -c "URL List"
; /window -c "Links List"
As for your $replace suggestion, there is only one way to accomplish what I believe you to be asking. You will have to use 2 $replaces, one nested inside the other. The inner $replace switches the + to something you could not possibly in the string, a temporary value, such as $chr(255). Then you are free to switch the -'s with +'s. Then in the outer $replace, you switch the first $replace from to $chr(255) to -.$replace([color:blue]$replace($1-,+,$chr(255),-,+)