What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » some problem...

Pages: (2): « First [ 1 ] 2 » Last »
some problem...
Author: Message:
ramonliu
New Member
*


Posts: 8
Joined: Aug 2011
O.P. Roll Eyes  some problem...
Hi All! ^^

I written a content encryption script, but got some problem...

1. if content has emotions, encode then send to contact, after decode, only see the text, no emotions, no matter just only ":)"

2. zip done, rename to plsc, then upload to web, but fail, always got this
"An unhandled exception has occurred.
We apologize for the inconvenience this may cause you. Please follow the link below back to our Messenger Plus! Home page and feel free to report this error on the forum"

I have check my ScriptInfo.xml, it's UTF-8 format, and content on below
code:
<?xml version="1.0" encoding="UTF-8"?>
<ScriptInfo xmlns="urn:msgplus:scripts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:scripts PlusScripts.xsd">
    <Information>
        <Name>Encryptions</Name>
        <Description>Safer for chatting</Description>
        <Author>Ramon Liu</Author>
        <AboutUrl>NO URL</AboutUrl>
        <Version>0.2</Version>
        <UpdateId>RL0001</UpdateId>
        <Build>0001</Build>
    </Information>
   
    <ScriptCommands>
        <Command>
            <Name>encry</Name>
            <Description>The command for Encryptions.</Description>
            <Parameters>command</Parameters>
        </Command>
    </ScriptCommands>

</ScriptInfo>

is wrong? @@?

if you are interested, you can download the attachment to see the way to help me find where is wrong... thanks :P

.plsc File Attachment: Encryptions.plsc (33.6 KB)
This file has been downloaded 146 time(s).
08-29-2011 03:42 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: some problem...
Your ScriptInfo.xml file should be UTF-16 in the header and encoded in UTF-16 Little Endian.

Also as far as the registry functions you have in your script. You are free to use them but please provide the proper acknowledgements as to where you obtained the code and who the author was (ie: me).
08-29-2011 04:41 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: some problem...
quote:
Originally posted by ramonliu
1. if content has emotions, encode then send to contact, after decode, only see the text, no emotions, no matter just only ":)"
This is intended behavior and there's nothing you can do about it. Straight from the scripting documentation:
quote:
OnEvent_ChatWndReceiveMessage - Return value
A string containing the message to be displayed in the chat window instead of Message. If you do not want to modify the message, simply return Message without changing it. The new string will be parsed for possible format codes. It is important to remember that the new message cannot be longer than the original one (use Message.length) and will be cut if necessary. Also, Messenger will not re-parse the message for emoticons codes.
Basically, if an emoticon already appeared in the message, it is preserved. If another emoticon is introduced, it won't appear in the message - which is most likely what happens when decrypting an encoded message.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
08-29-2011 07:51 PM
Profile E-Mail PM Web Find Quote Report
ramonliu
New Member
*


Posts: 8
Joined: Aug 2011
O.P. RE: RE: some problem...
quote:
Originally posted by matty
Your ScriptInfo.xml file should be UTF-16 in the header and encoded in UTF-16 Little Endian.

Also as far as the registry functions you have in your script. You are free to use them but please provide the proper acknowledgements as to where you obtained the code and who the author was (ie: me).

Oh... that format I mistaken, I'm try again. ^^
and forgive me about registry, I should be add reference, like sjcl lib, sorry about that ^^"
08-30-2011 12:39 AM
Profile E-Mail PM Find Quote Report
ramonliu
New Member
*


Posts: 8
Joined: Aug 2011
O.P. RE: RE: some problem...
understand that, thanks for you help.. ^^

the other question, DisplayInfoMessage function.

DisplayInfoMessage(
    [string] Message,
    [int,optional] Duration,
    [boolean,optional] ForceNow
);

Duration and ForceNow parameters seen to be not work right now...
maybe it also my mistake

I want to show some info on information area, so code like this
chatWnd.DisplayInfoMessage("12345",3,false);

it's mean, "12345" will be show on information area for 3 sec. right?
and if message queue have something, that also show out after my message.

but work not like I thought, why?  >"<

08-30-2011 12:58 AM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: some problem...
The function isn't supported in the latest version of Windows Live Messenger. The scripting engine has yet to be updated to fix it.
08-30-2011 02:25 AM
Profile E-Mail PM Find Quote Report
ramonliu
New Member
*


Posts: 8
Joined: Aug 2011
O.P. RE: RE: some problem...
OK, I got !

Thanks for your help! ^O^
08-30-2011 05:18 AM
Profile E-Mail PM Find Quote Report
ramonliu
New Member
*


Posts: 8
Joined: Aug 2011
O.P. RE: some problem...
I'm tried to convert to USC-2 LE format for ScriptInfo.xml file by Noetpad++
and zip files use windos/winrar/7-zip
still can't upload to web... that so sad.. T_T
The ScriptInfo.xml encoding already change to "UTF-16" and
all files convert to USC-2 LE format,
Use Waterfox/IE upload, still got error... QQ
By the way, my OS is Win7x64

IS "UTF-16 LE" != "USC-2 LE"  ??

This post was edited on 08-30-2011 at 11:20 PM by ramonliu.
08-30-2011 11:17 PM
Profile E-Mail PM Find Quote Report
ramonliu
New Member
*


Posts: 8
Joined: Aug 2011
O.P. RE: some problem...
tried to use another text editor call "pspad" to convert UTF-16 LE,
and upload, it is same problem...
then I tried zip two files, ScriptInfo.xml and Encryptions.js, then rename to plsc
still can't upload... error message the same.

that seem to be can not publish my script... Orz
08-31-2011 12:03 PM
Profile E-Mail PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: some problem...
Email support@kimahrisoftware.com. They will have to investigate.
08-31-2011 12:36 PM
Profile E-Mail 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