mIRC Homepage
If one message:
Code:
Good morning, everyone, everybody fine? 

I want to repeat with contents are:
Code:
ing, everyone, everybody fine? 

Characters removed are:
Code:
Good morn

Script is look like?
Thank you.
What general rule are you trying to enforce here?
Originally Posted By: Loki12583
What general rule are you trying to enforce here?

I want to eliminate some characters.
If you need to eliminate 4 words in the first place, I have the script:
Code:
on *:TEXT:text:#channel: {
if ($nick == ABC) { 
msg $chan $4-
 }
}


Now, not eliminate 4 words, but removing 8 characters, what can I do?
You can use $left $right or $mid
echo -at $remove(+-;test123,+-;,123)
will return test
In case you need this
Originally Posted By: Loki12583
You can use $left $right or $mid


Thank you. But I do not know how to use $left $right or $mid. Its structure like?

eg someone messaging: abcd efgh ijkl mnop
and I want to reply to the content: gh ijkl mnop
automatic removal characters: abcd ef
/help $left
/help $right
/help $mid
Originally Posted By: OrFeAsGr
echo -at $remove(+-;test123,+-;,123)
will return test
In case you need this


Thank OrFeAsGr, your contribution very useful. I do not know much about the script. Please help me.
Use: $remove identifier (/help $remove) if you read at the help file its easy to understand how-to.

e.g: $remove(TEXT,X) = TET (this it will remove the X from the TEXT text).

Otherwise paste here your FULL code to optimize it.
Originally Posted By: Loki12583
/help $left
/help $right
/help $mid


Thank you Loki12583. The problem is that I need to remove a few character, not want to get a few characters
Originally Posted By: westor
Use: $remove identifier (/help $remove) if you read at the help file its easy to understand how-to.

e.g: $remove(TEXT,X) = TET (this it will remove the X from the TEXT text).

Otherwise paste here your FULL code to optimize it.


Thank you westor. I did refer to "$remove", but the problem is I do not want to remove "a" or "b". I want to removal 10 characters from the left.
onebigchunkoftext

As Loki said you can use $mid
so, $mid(onebigchunkoftext,10)
Will return koftex
Which is bigchunkoftext without the 10 first characters
Use $left identifier if you want to take the letters from left to right.

e.g: $left(test1 test2 test3,11) = test1 test2 (it returns the first 11 characters from left to right)

/help $left
thanks everyone

if the return have some hidden characters, and i want remove it, what should I do?
What do you mean by hidden characters???
Originally Posted By: OrFeAsGr
What do you mean by hidden characters???


I have the challenge of a friend. He created the hidden characters. and he challenged me to remove it. He also wanted to improve me in the challenge.
© mIRC Discussion Forums