What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help-command not working

Pages: (2): « First « 1 [ 2 ] Last »
Help-command not working
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: Help-command not working
Thanks, that works now
My WLM jammed up so thats why i didn't reply on there

Markee, could the code be edited easilly so that when i typed  '/colour=red' my font colour changed to red(not just for one message
09-01-2006 09:08 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Help-command not working
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.

This post was edited on 09-01-2006 at 09:25 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-01-2006 09:16 AM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On