mIRC Home    About    Download    Register    News    Help

Print Thread
Color Script and or Alt Code Script #135457 11/11/05 11:24 PM
Joined: Nov 2005
Posts: 4
Z
zomgh4x Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Nov 2005
Posts: 4
Can someone please tell me a script that makes it so every time I type it'll type in that color. And or a script so that every time i type regularly it'll become in alt codes close to that
laugh grin

Re: Color Script and or Alt Code Script #135458 11/11/05 11:56 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Code:
on *:input:*:{ 
if (($left($1,1) == $readini($mircini,text,commandchar)) || ($left($$1,1) == !) || ($left($$1,1) == @) || ($ctrlenter == $true)) { return  }
msg $active (colorcode and colors here) $1-
}

Re: Color Script and or Alt Code Script #135459 12/11/05 02:34 AM
Joined: Nov 2005
Posts: 4
Z
zomgh4x Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Nov 2005
Posts: 4
Can you tell me the exact command for blue font. Cause it's not working for me grin

Re: Color Script and or Alt Code Script #135460 12/11/05 03:06 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
ok try replacing whatever you had with this:
Code:
on *:input:*:{ 
  if (($left($1,1) == $readini($mircini,text,commandchar)) || ($left($$1,1) == !) || ($left($$1,1) == @) || ($ctrlenter == $true)) { return  }
  msg $active $+($chr(3),12,$$1-)
  halt
}


it is important that this goes in remotes
(hold the ALT key, type the R key)

carefully copy and paste the code above and place into the remote you wish to use it in

option 2

Code:
menu channel {
Blue Text is $upper($group(#bluetext)) : $iif($group(#bluetext).status == on,disable #bluetext,enable #bluetext)
}
#bluetext on
on *:input:*:{ 
  if (($left($1,1) == $readini($mircini,text,commandchar)) || ($left($$1,1) == !) || ($left($$1,1) == @) || ($ctrlenter == $true)) { return  }
  msg $active $+($chr(3),12,$$1-)
  halt
}
#bluetext end

type in channel /run notepad bluetext.mrc
notepad opens and has a message "cant find it, do you want to make it?
click OK
paste the coding in the second version into notepad and click on file, then save
you can close notepad
in mIRC type /load -rs1 bluetext.mrc

right click the channel area and find "Blue Text is ON"
clicking it will turn it off/on depending

in either case make sure that the code in your remote matches exactly how it is here.

Re: Color Script and or Alt Code Script #135461 12/11/05 03:23 AM
Joined: Nov 2005
Posts: 4
Z
zomgh4x Offline OP
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Nov 2005
Posts: 4
Thanks! it works now XD

Re: Color Script and or Alt Code Script #135462 12/11/05 03:50 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
kewl, glad its working for ya!