mIRC Home    About    Download    Register    News    Help

Print Thread
#148642 08/05/06 11:00 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
is this used to stop stuff pasitng to channels if you have somethng on clipboard?

when i wana do commands sometimes like

/echo -a hi

it says it in the channel with the stuff on clipbaord after it and its annoying!!

so how would i use it?

is it:

on*input..
if ($ctrlenter) haltdef?
}

#148643 08/05/06 11:17 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
odd, ok try this: //say $isalias(echo)

if you see a $true, then do //say $isalias(echo).fname
try renaming that alias

all that $ctrlenter does is check to see if you were holding down the ctrl key when you pressed the enter key

#148644 09/05/06 02:01 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
No, I have not overriden the /echo command.

so:

Code:
on *:INPUT:*: if ($Ctrlenter) halt

Last edited by pouncer; 09/05/06 02:02 PM.
#148645 09/05/06 05:00 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
look at it like this, you want to modify what you type based on certain conditions, for example replacing lol in what you type with *Laff*Out*Loud* but if you are quoting (pasting) some text that has lol in it you do not want to change it.

when I type {
if (I have the CTRL key held down) { just show what I typed with no changes, then stop }
change lol to *laff*out*loud*
stop
}
on *:input:#:{
if ($ctrlenter == $true) { return }
say $replace($$1-,lol,*Laff*Out*Loud*)
halt
}

using Return stops the rest of the script from running and and so mIRC posts the text unmodified.

The Halt is needed to stop mIRC from posting the text unmodified as well as the modified version.


Link Copied to Clipboard