mIRC Home    About    Download    Register    News    Help

Print Thread
Help with mIRC Addon #267305 14/05/20 10:24 AM
Joined: May 2020
Posts: 1
O
oldfix Offline OP
Mostly harmless
OP Offline
Mostly harmless
O
Joined: May 2020
Posts: 1
Hello,
I have put this code on remote:
on @1:MODE:#:/notice $me $nick changed $chan mode to $1-
on @1:BAN:#:/notice $me $nick has banned $banmask
on @1:KICK:#:/notice $me $knick was kicked by $nick from $chan $1-
on @1:UNBAN:#:/notice $me $nick has unbanned $banmask

Instead of getting a notice, I'd like to get info on @window or in -echo on status window. Would that be possible?
If yes, how could I change the code?

Re: Help with mIRC Addon [Re: oldfix] #267307 16/05/20 05:27 PM
Joined: Jan 2004
Posts: 1,300
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,300
If you want to substitute new behavior, then substitute those in place of "notice $me"

For echo to status window, replace with: echo -s
For echo to window name, replace with: echo @Name_of_the_Window

Note that sending output to a window assumes the window already exists, so you would also want to have a command on ON START or ON CONNECT which creates the window. Something like "window -zj1000 @Name_of_the_Window 0 0 500 200" etc. check /help /window for more switches.

For sending output to a @window, you can also use /aline instead of /echo, which has the advantage of being able to be sent without having long lines wrapped to multiple lines. In that case, the event should also include a command like "window -b @Name_of_the_Window" which updates the horizontal scroll bar for lines wider than the window display.