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

Pages: (15): « First « 8 9 10 11 [ 12 ] 13 14 15 » Last »
Scripting API Wishlist
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Scripting API Wishlist
JScript code:
function OnEvent_ChatWndSendMessage(objChatWnd,strMessage) {
    Debug.Trace(strMessage);
    var Pattern = new RegExp("(!VER)","gim");
    if(strMessage.search(Pattern) > -1 && strMessage.search(Pattern) < strMessage.length) {
        strMessage = strMessage.replace(Pattern,"(!VER)\n" + Script.Name + ": " + Script.Version);
    }
    return strMessage;
}


quote:
Originally posted by Debugger
Windows Vista Home Premium Service Pack 1 (6.0.6001)
Windows Live Messenger 8.5.1018
Messenger Plus! Live 4.79.0.342
Messenger-skin: Windows Aero Messenger 2.0.2.

I don't think so..

This post was edited on 11-12-2008 at 07:28 PM by SmokingCookie.
11-12-2008 07:26 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Scripting API Wishlist
My bad you have to use this:

JScript code:
function OnEvent_ChatWndSendMessage(objChatWnd,strMessage) {
    Debug.Trace(tmpmsg);
}


This post was edited on 11-12-2008 at 07:37 PM by matty.
11-12-2008 07:35 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Scripting API Wishlist
I think scripts should be able to access information on the debug window (from the running script and others) as it would make it a lot easier for novice users to send bug reports.

"Click the option 'Copy Debug' and paste it here"
<Eljay> "Problems encountered: shit blew up" :zippy:
11-24-2008 11:02 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Scripting API Wishlist
This was a personal request to Patchou in which I text messaged him and requested it and it is being considered for Script Developers.

The request was the ability to step through the script to see exactly which line is causing the error. I had an issue with a script where the line was something like
JScript code:
a(b(), c());

functions B and C worked fine when not being called as parameters for A. However when called as parameters for A I recieved function expected. Which made no sense because it did exist. Also I had commented out all code for that function and left 1 Debug.Print line and the issue still occured. I had to revert to a previous version of the file and go from there. As you can see it caused a lot of headache (thankfully is fixed but to this day I am unsure what caused it)

Hence the request for the ability to step through the code when debugging :).
11-24-2008 04:43 PM
Profile E-Mail PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: Scripting API Wishlist
Well, let me focus on some issues I have with scripting.

First of all, I already reported it on the BETA testing forums (see [FixMe] Scripts: Colorization with Mosaic) but apparently no-one had a look at it yet:
quote:
An ImageElement with a Mosaic set to something like ResizeToFit doesn't get its colorization applied. This is very annoying when you have an image which you want as a background for a whole area, but you also want it to match the window color.

The code I'm using:
XML code:
<!-- Images: Me-Area Preview -->
<Element xsi:type="ImageElement" Id="ImgMeMain">
   <Position Left="12" Top="5" Width="568" Height="129">
      <Anchor Horizontal="LeftRightFixed" Vertical="BottomFixed"/>
      <Units>AllPixels</Units>
   </Position>
   <Image>
      <Name>mearea-main</Name>
   </Image>
   <Mosaic>ResizeToFit</Mosaic>
   <Colorization Enable="true">
      <Color><GlobalColor>ref</GlobalColor></Color>
   </Colorization>
</Element>



Second thing: What can we do with DataBloc.WriteInterfacePtr? Any working example code we can play with? As I think I might need it for an IEnumString interface implementation when I create an IAutoComplete interface.

Thirdly: Can you give us some way we can add events in run-time? This would be interesting for classes, so a developer can simply say "here's my window, now get it working" without him/her having to add things in their window events for it to work. Possibly make something like:
JScript code:
var fCtrlClickEvent = function(PlusWnd, CtrlId) {
   if(CtrlId === "BtnThis") {
      myClass.doThis(PlusWnd);
   }
};
PlusWnd.AddEvent("CtrlClicked", fCtrlClickEvent);

.NET languages can add event handlers by simply doing:
code:
this.myButton.Click += new System.EventHandler(this.myButton_Click);
and it would be cool if we had something with the same concept to work with. I know you can't do that with the += operator in JScript, but you get the idea.

Fourthly: We need a way to dynamically create controls (and elements) in a window. This would allow us to do cool things like breadcrumb navigations.

Fifthly: While we're busy, what about an implementation for MenuButtonControls and CodeEditControls? And what are those ArcChunk, BezierChunk, LineChunk and PathChunk elements for anyway?

This post was edited on 11-24-2008 at 06:04 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-24-2008 05:51 PM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Scripting API Wishlist
Something to compress stuff to a ZIP file..?
12-06-2009 12:08 PM
Profile PM Find Quote Report
SourSpud
Junior Member
**

Avatar
spud, spud, spud, spoon.

Posts: 58
35 / Male / Flag
Joined: Nov 2009
RE: Scripting API Wishlist
I agree with SmokingCookie that would be good, also can someone give me an example of retreiveing a contacts font name and colour.
12-07-2009 09:17 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Scripting API Wishlist
quote:
Originally posted by SourSpud
I agree with SmokingCookie that would be good, also can someone give me an example of retreiveing a contacts font name and colour.
You can zip files by using some of the Windows APIs, in case you realy want to do it now. You could also use some 3rd party libraries. As for the font and color of the contact, that can only be done if you sniff the protocol messages. But there is no decent network sniffer available (Xniff has serious issues and should not be used). For both things, search the forums; both are already discussed and explained with examples (somewhere).
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-07-2009 02:29 PM
Profile PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: Scripting API Wishlist
(Better) support for tabbed chats..?
02-12-2010 05:58 PM
Profile PM Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Scripting API Wishlist
quote:
Originally posted by SmokingCookie
(Better) support for tabbed chats..?
Tabs are not a scripting function.
[Image: signature/]     [Image: sharing.png]
I cannot hear you. There is a banana in my ear.
02-12-2010 08:16 PM
Profile PM Web Find Quote Report
Pages: (15): « First « 8 9 10 11 [ 12 ] 13 14 15 » 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