quote:
Originally posted by 134jimbodude
quote:
Originally posted by ForestLand
That could be the problem, now i have removed the script, it doesn't only let me use the /all command, but the message i wrote (eg /all hello) now appears in my normal text writing (red)
This is something weird... it shouldn't interfere with other commands..
thats what i thought, but for some trange reason it is, wonder why?
because you programmed it to do so...
markee is on the right track here.
code:
...
default:
case 'colour=lilac':
iOriginWnd.SendMessage("21"+params);
sMessage = '';
break;
...
1) A
case should not follow
default.
2) Even for a default routine, the above code is not something you should do!
You actually remove every command message the user types with
sMessage = ''; return sMessage;. This mean you interfear with everything the user types as a command, do not do that!
QuickFix: Remove the line with
default: in it and you'll see that everything will work again as it is supposed to be.
EDIT: blah.... way too slow here
-------------------
quote:
Originally posted by 134jimbodude
could the code be edited easilly so that when i typed '/colour=red' my font colour changed to red(not just for one message
yes, you can do that, but it wont be easy since there is no plus! command to set your font color and font style.
You can set it by directly altering a registry key. However, those specific registry keys ("IM Color" and "IM Format") are not read each time you send a message, they are only read out when you open a new conversation window. So in order to apply your new color (and font) you need to close the chat window, alter those registry settings and open your chat window again.
Another way is to actually change each and every line your script recieves by putting the Plus! color code in front of it (like you do now for the current line). But this is not only a dirty workaround, its also very likely it will interfear with other entered colors, scripts and commands. And it is also not compatible with people who don't have Plus!.
EDIT: try not to double post, edit your previous post instead if you whish to add anything.