mIRC Home    About    Download    Register    News    Help

Print Thread
#233520 21/08/11 04:50 PM
Joined: Jun 2011
Posts: 4
M
McHalls Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Jun 2011
Posts: 4
Imagine you have a lot of funny ascii one-liners you use on IRC. It would be nice to have a side-panel, where you could see all of them (and add new ones quickly as well). You could just click on one of them and it gets instered into the current chat window. There are many funny ones that are impossible to remember, so let mIRC remember them.

Would be nice!

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I really don't think you'll see this built-in to the program. This is pretty much what the scripting functionality in mIRC is designed for.

A simple script to do what you want would be the following:

Code:
alias oneliners { window -odl +l @oneliners | loadbuf -rl @oneliners $scriptdir\oneliners.txt }
menu @oneliners {
  lbclick:scid $window($lactivewid).cid | window -a $lactive | editbox -a $line(@oneliners,$1,1)
}


Just add your one liners to a file called oneliners.txt in the same directory as your script and type /oneliners to load the window. Change "editbox -a" to "say" if you just want it to hit enter automatically

As a sidenote, you could bypass the whole window thing and simply bind your one liners to function keys on your keyboard. You could easily change them in your aliases:

Code:
f5 say Hello everybody!
f6 say Bye bye!
f7 say Thanks, you are a nice person too.


Then just hit f5, f6, or f7 to send those messages. You can add more, just see /help function keys


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard