Styleofglobal, I'm not sure which one you want, so these two snippets below are for you to pick:
This one below will make the first letter of each and every word in a sentence in CAPS and BOLD:
on *:input:*:{
if ($left($1,1) != /) {
haltdef
say $regsubex($1-,/(\w+)/g,$+($chr(2),$upper($left(\t,1)),$chr(2),$mid(\t,2)))
}
}
e.g. Hello Styleofglobal, I's A Beautiful Day
This one below will only make the first letter of a sentence in CAPS and BOLD:
on *:input:*:{
if ($left($1,1) !isin / $readini($mircini,text,commandchar)) && (!$ctrlenter) && (!$inpaste) {
say $regsubex($1-,/^(.)/,$+($chr(2),$upper(\1),$chr(2)))
halt
}
}
e.g. Hello Styleofglobal, it's a beautiful day.