Search Results |
Subject |
Author |
Forum |
Time |
RE: [?] Enumerating through files in Win32 [code=JScript]FileSystem.EnumerateFiles = function(Directory) { var ret = new Array(); var result = this.FindFirstFile(Directory); if(result.hFind === 0) { result.WIN32_FIND_DATA.Size = 0; return ret; } do { var oResult = this.FindNextFile... | SmokingCookie | Scripting | 10-29-2011 at 09:37 AM |
RE: [?] Enumerating through files in Win32 [code=js]function GetDirectoryStructure(sPath, sPattern, IncludePath) { _debug.getfuncname(arguments); var aFileNames = []; var Win32_Find_Data = Interop.Allocate(592); var hSearch = Interop.Call('kernel32', 'FindFi... | matty | Scripting | 10-27-2011 at 09:31 PM |
[?] Enumerating through files in Win32 Seems like Win32's not doing things it's said to be. Anyway, I've worked along the lines of [url=http://msdn.microsoft.com/en-us/library/windo ws/desktop/aa365200%28v=vs.85%29.aspx]this MSDN article[/url], but somehow I can't get more than 2 valid... | SmokingCookie | Scripting | 10-27-2011 at 07:54 PM |
RE: Auto capitalize had a few minutes to spare and it was a long long time since I used regular expressions (and even Plus! scripting for that matter), so... A few things with Spunky's code: 1) It does not capitalize the first word in a string [size=1]"hello world." ... | CookieRevised | WLM Plus! Help | 09-28-2011 at 06:00 PM |
RE: Auto capitalize You will want to add spaces after the ".". The current code will turn "..." into ". . . ". | matty | WLM Plus! Help | 09-28-2011 at 12:48 PM |
RE: Auto capitalize [code=js] function OnEvent_ChatWndSendMessage(ChatWnd, Message){ Message = Message.split("."); for(var i in Message){ Message[i] = Message[i].replace(/(^\s+)/, ''); Message[i] = " " + Message[i].substring(0, 1).toUpperCase() + Message[i]... | Spunky | WLM Plus! Help | 09-28-2011 at 08:17 AM |
RE: PlusService.exe That is odd, Jieff never once admitted to it doing the update checking. We should just create a script that will do the update checking on Plus!. Typical though... (http://download.msgpluslive.net/update/autoupdate .php) [code=xml]<f> <b>5712</b> <... | matty | WLM Plus! Help | 09-19-2011 at 12:57 PM |
RE: Sun & Cooks :zippy: [size=1][color=white]Hey, *somebody* has to do the zippy reply when Mnjul is the one posting.[/color][/size] | Menthix | | 09-16-2011 at 05:18 PM |
RE: Sun & Cooks [code=Java] Person nobody; nobody.see("Good Stuffs"); [/code] | Mnjul | | 09-16-2011 at 05:09 PM |
RE: Scripts...errr...Plugins... Not even going to comment on the documentation itself surrounding the [s]script[/s] plugin engine. Except for now we have a ScriptInfo.xml file and tags relating to scripts... [code=xml]<?xml version="1.0" encoding="UTF-16"?> >>><ScriptInfo xmlns... | matty | Forum & Website | 09-08-2011 at 04:45 PM |
RE: IPGet v1.51 I don't know why the developer is having so many issues with the script now however to solve the problem (I hope you understand this in English) do the following: Open the Messenger Plus! Preferences > Click Scripts > Highlight IPGet and click Edit ... | matty | Scripting | 08-26-2011 at 12:16 PM |
[in-development] Autrogo: Messenger task automator [size=1]Now that my [url=http://shoutbox.menthix.net/showthread.php?ti d=97426]Voicemail[/url] script is pretty much done (assuming no bugs are found with the beta, I'll release it as stable on the database), I have another project underway...[/size]... | whiz | Scripting | 08-22-2011 at 07:33 PM |
RE: [?] "Dynamic" RegExp replace... The reason why your version won't work is because regexp.$1 is evaluated once when that line is run. However, you can still do this without a for-loop and lots of replace calls. JScript allows you to pass a [u]function[/u] as second parameter for re... | Matti | Scripting | 08-17-2011 at 02:22 PM |
RE: [?] "Dynamic" RegExp replace... Don't think you can do it in one replace call, you can always just loop through them: [code=js]for(var key in some_variables) input = input.replace(new RegExp("%var:"+key+"%", "gi"), some_variables[key]);[/code] | Eljay | Scripting | 08-16-2011 at 06:19 PM |
[?] "Dynamic" RegExp replace... Not sure on the best way to go about this... Here's an example of what I want to do. [code=jscript]// a "dynamic" object - identifiers will vary by function var some_variables = { foo: "some text", bar: "some more text" }; // user input - ca... | whiz | Scripting | 08-16-2011 at 05:57 PM |
RE: DevPlus - script testing/debug add-on... I guess it could be done by adding calls to a DevPlus function when creating a window, but that's kinda messy (the whole point of this is that you just add the files without having to modify a script to support the debugging stuff...). I'll have ... | whiz | Scripting | 08-03-2011 at 01:07 PM |
RE: Replace Problem How is y defined? If you're storing values in an Array variable using string keys, then you're storing them as properties in the Object and not as elements in the Array. [code=js]var a = []; a[0] = "hello"; // stored as array element Debug.Trace... | Matti | Scripting | 08-03-2011 at 08:50 AM |
RE: Replace Problem Well yeah, but the in keyword returns true because of all the built-in Array functions. Try using: [code=js]if(y.hasOwnProperty(strip(x[0]))[/code] ??? | Eljay | Scripting | 08-02-2011 at 09:00 PM |
Replace Problem I'm having trouble with the following code: [code=js] // x[0] is a string // y is an array (that in these circumstances does NOT contain x[0] if(strip(x[0]) in y){ //strip just removes non-alphanumeric characters var foo = bar.replace(x[0], y[x[... | Spunky | Scripting | 08-02-2011 at 08:21 PM |
[SOFTWARE 5.1 - 726] Web Installer Trying to install the new build using the web installer from http://msgplus.net/beta510/MsgPlusWebSetupDebug572 6.exe Possible server error? EDIT: Tested twice with same results [code=html] 1674 11/08/01 19:48:52| **** The trace has started **** 1674 ... | Spunky | | 08-01-2011 at 06:55 PM |
RE: [Help]Sending a ChatWnd message Debug.Trace needs a string as parameter but you're passing in a ChatWnd object. This cannot be implicitly converted to a string and thus JScript throws a type mismatch error. When debugging, I usually output the handle of a window to check if the va... | Matti | Scripting | 07-31-2011 at 10:07 PM |
RE: [Help]Sending a ChatWnd message I already have tried to do look: [code=js]var window = null function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind){ window = ChatWnd; Debug.Trace(window); }[/code] return: Function: OnEvent_ChatWndReceiveMessage Error: Type misma... | PedroGabriel | Scripting | 07-31-2011 at 09:18 PM |
RE: [?] MediaMonkey scripting ActiveXObject... What if you registered the DLL through your code? Calling DLLRegisterServer (I think it is) from the DLL. [code=js]function RegisterDLL(DLLPATH) { var iLib = Interop.Call('kernel32', 'LoadLibraryW', DLLPATH); if (iLib) { var iProcAddr = Inter... | matty | Scripting | 07-26-2011 at 12:34 PM |
Quick "translation": VB to C# I have this piece of code: [code=VB]Dim moniker As IMoniker() = New IMoniker(0) {}[/code] Is this an array initlialized with length 0? Is it right to "translate" it as: [code=C#]IMoniker[] moniker = new IMoniker[0];[/code] ? I'm translating a prog... | Chancer | Tech Talk | 07-21-2011 at 04:10 AM |
RE: Skin Problems If I recall correctly, this only started after the last Messenger update. I think we need to update the Plus! version. I know Metro is set to version 5.01, which is now old :P Hence if you want, go to the skin's folder and find SkinInfo.xml, and ch... | Nagamasa | Skinning | 07-10-2011 at 10:51 AM |