mIRC Home    About    Download    Register    News    Help

Print Thread
#124397 06/07/05 01:49 AM
Joined: Mar 2005
Posts: 10
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Mar 2005
Posts: 10
Hello there

I have one problem !

I want to put the word " :-) " in the script with on input command to have colored " :-) "

something like this little script :

on *:INPUT:*: {
if ( $1 == :-] ) { me 4,5:8] | halt }


How can i put the " :-) " in this script HELP PLEASE

Last edited by Miki81bg; 06/07/05 02:05 AM.
#124398 06/07/05 02:45 AM
Joined: Mar 2005
Posts: 10
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Mar 2005
Posts: 10
Its ok i foud the clue

$chr(40) is (
and
$chr(41) is )

smile:):)

#124399 06/07/05 02:51 AM
Joined: Mar 2005
Posts: 10
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Mar 2005
Posts: 10
but.... i cant set the input to work correctly DAMN frown

#124400 06/07/05 03:30 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
did you add in the $2-
otherwise all you will have would be the smiley

#124401 06/07/05 05:30 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
on *:INPUT:#:{ if ( $1 == :- $+ $chr(41) ) { me :-) | halt }

:-) can be represented as " :- $+ $chr(41)" thus avoiding confusing mirc, with the extra ) whcih it might think is part of the /IF ( )

#124402 06/07/05 10:09 PM
Joined: Mar 2005
Posts: 10
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Mar 2005
Posts: 10
IT WORKS !!!!
THANKS GUYS !!!!!!

COOL

Now i can combine :-) , smile, frown,:-(

WELL DONE !!!
THANKS AGAIN !


Link Copied to Clipboard