Search Results |
Subject |
Author |
Forum |
Time |
RE: Interface Writer | [release] 3.0 | 22/08/2010 Nope, I'll set an example: [code=XML]<!-- Change to FigureElement for testing --> <Element xsi:type="PlaceHolderElement" Id="Nothing"> <Position Left="103" Top="20" Width="500" Height="350"> <Anchor Horizontal="LeftRightFixed" Verti... | SmokingCookie | Scripting | 07-25-2010 at 09:52 AM |
RE: [?] Sort array by keys... That's kind of what I've thought. :P I can't test it now, but this should work, right? [code=js]var Arr = []; // yeah, we know there's stuff in it var Sort = []; for (var K in Arr) { Sort.push(K); } Sort.sort(); var New = []; for (var X in ... | whiz | Scripting | 07-23-2010 at 07:18 PM |
RE: [?] Sort array by keys... Objects can't be sorted by any built-in function that I know of. If you just need to access them in order you can create a separate array containing just the keys and sort that. [code=JScript]var MyObj = {}; // Define empty object MyObj["X"] = 'b... | Eljay | Scripting | 07-23-2010 at 07:13 PM |
RE: [?] Sort array by keys... Try [code=JScript]MyArr.sort();[/code] ? http://www.javascriptkit.com/javatutors/arraysort. shtml edit: i think it only sorts the values, not keys.. I guess just find out how to get the key name from a JS array, put them in an array and use the sort ... | roflmao456 | Scripting | 07-23-2010 at 07:01 PM |
[?] Sort array by keys... Say I had an array like this (in its practical use, the objects would have data in, but for this example, I don't really need that). [code=js]var MyArr = []; MyArr["X"] = {}; MyArr["Z"] = {}; MyArr["W"] = {}; MyArr["Y"] = {};[/code] If I loo... | whiz | Scripting | 07-23-2010 at 06:30 PM |
WDZ request Hey DZ, Can you alter the code to store attachments of a post in a div labelled attachment_pid instead of like this: [code=html]<!-- start: postbit_attachment --> <br /> <img src="images/attachtypes/page_text.png" alt=".txt File" border="0" /> ... | matty | Forum & Website | 07-20-2010 at 02:49 PM |
RE: A bit more help taking pictures Download the latest released beta of Screenshot Sender here http://beta.screenshotsender.com/beta. Change the code in timer.js to the following: [code=js]/* * ----- * Screenshot Sender - timer.js * ----- * Handles all timer functions for Screensh... | matty | Scripting | 07-18-2010 at 05:47 PM |
RE: Some big help I need And if you want to improve even further upon that code snippet, you go for a fast numeric loop instead of a slower property enumeration loop. [code=js]var Contacts = ["johnsmith@hotmail.com", "abcdefg@hotmail.com"]; function OnEvent_Signin(Emai... | Matti | Scripting | 07-09-2010 at 12:55 PM |
RE: Some big help I need [/size] | whiz | Scripting | 07-09-2010 at 08:12 AM |
RE: Some big help I need or better yet [code=js] var CONTACTS = "johnsmith@hotmail.com, abcdefg@hotmail.com"; function OnEvent_Signin(Email){ if (CONTACTS.indexOf(Email) != -1){ if (!Messenger.MyContacts.GetContact(Email).Blocked) { Messenger.OpenCh... | ultimatebuster | Scripting | 07-09-2010 at 02:36 AM |
RE: Some big help I need [code=js]function OnEvent_ContactSignin(sEmail) { // Make sure they are my friend if (sEmail === 'myfriendexample135@hotmail.co.uk') { // Make sure the contact isn't blocked if (Messenger.MyContacts.GetContact(sEmail).Blocked === false) { ... | matty | Scripting | 07-08-2010 at 07:39 PM |
RE: [REQUEST]"Plus Cafe" Changing ... [spoiler=code (click to show)] [code=js]var psm = "Cups: %cups | Drunk: %drank | Funds: %money"; var payment = 10; var price = 300; var your_money = 500; var show_in_psm = true; var cups_drank = 0; var cups_owned = 0; var toast = true; var notify_c... | kyozo_43 | Scripting | 07-08-2010 at 12:01 PM |
RE: my first script any help would be appriciated.. There used to be a list of them hosted on m00.cx, but apparently that server is down now. Luckily, I made a local copy of the list when it was still up - it's a pretty long list and I didn't have to wait that long every time I needed to look someth... | Matti | Scripting | 07-05-2010 at 02:26 PM |
RE: my first script any help would be appriciated.. [code=js]var HKEY_CLASSES_ROOT = 0x80000000; var HKEY_CURRENT_USER = 0x80000001; var HKCU = HKEY_CURRENT_USER; var HKEY_LOCAL_MACHINE = 0x80000002; var HKEY_USERS = 0x80000003; var HKEY_PERFORMANCE_DATA = 0x80000004; var HKEY_PERFORMANCE_TEXT = 0x800... | matty | Scripting | 07-05-2010 at 01:26 PM |
RE: my first script any help would be appriciated.. Sorry, the reason I gave why your addition would fail was slightly wrong... it isn't the main reason (you get that from being a guy and being busy with multiple things at once :p). The main reason for not working is that the boolean value will neve... | CookieRevised | Scripting | 07-03-2010 at 11:56 AM |
RE: my first script any help would be appriciated.. How about this? [code=js]// add to the top var shell = new ActiveXObject("WScript.Shell"); // ... function OnEvent_Initialize(MessengerStart) { try { // value exists, check the count, write the new one var Count = shell.RegRead... | whiz | Scripting | 07-03-2010 at 11:35 AM |
RE: my first script any help would be appriciated.. yes, but not directly. You either need to manipulate the other instances of Messenger directly as there is no easy way to 'talk' to other instances of the same script running in other Messengers. Or you either need to find a common storage which is... | CookieRevised | Scripting | 07-03-2010 at 11:11 AM |
RE: my first script any help would be appriciated.. You could get the script to check for a registry key, and if it doesn't exist, it should create one because it is the first launch. [code=js]// add to the top var shell = new ActiveXObject("WScript.Shell"); // ... function OnEvent_Initialize(Messe... | whiz | Scripting | 07-02-2010 at 02:07 PM |
RE: check whether if the contact is in a special list? Your code isn't too bad actually, however it can indeed be optimized. It's better to store your trusted emails in an array rather than a comma-separated string. This also allows you to loop over the array instead of the chat contacts. [code=js]var ... | Matti | Scripting | 07-02-2010 at 10:05 AM |
RE: [REQUEST]"Plus Cafe" Changing ... Please don't type in block capitals, it's considered to be shouting and therefore rude. Look for OnEvent_ChatWndReceiveMessage in the script code (as this is what causes actions to be performed when you receive a message) and replace the relevant b... | djdannyp | Scripting | 07-01-2010 at 12:49 PM |
RE: Packing script error In Notepad++, you should select UCS-2 Little Endian as encoding. Also, it's a good idea to place an XML header in your ScriptInfo.xml: [code=xml]<?xml version="1.0" encoding="UTF-16"?> <ScriptInfo> <Information> <Name>The list</Name> <Descr... | Matti | Scripting | 07-01-2010 at 11:56 AM |
RE: Tips [b][u]Creating a Modal Window[/u][/b] Create a modal dialog window, and keep it focused over a parent window. [i]Windows.xml[/i] [spoiler][code=xml] <Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta nce" ... | whiz | Scripting | 06-24-2010 at 10:53 AM |
RE: Snarl You also need to include a ScriptInfo.xml file... Also superaktieboy, [code=js]if (!(Messenger.MyStatus == 4 && boolDontNotifyOnBusy == true)) {[/code] The above line instead of using 4 you can use [code=js]if (!(Messenger.MyStatus == STATUS_BUSY &... | matty | Scripting | 06-22-2010 at 12:58 PM |
RE: Snarl right, i have the final "product", no clue how to bundle it and all, and to be quite frank, it's worthless since it requires other steps for installation.. first of all download snarl CMD and put the .exe in your windows folder (or anywhere else f... | superaktieboy | Scripting | 06-22-2010 at 01:44 AM |
RE: Snarl [code=js]var oChatWnds = {}; function OnEvent_ChatWndSendMessage(pChatWnd, sMessage) { oChatWnds[pChatWnd.Handle] = sMessage; } function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nKind) { if (oChatWnds[pChatWnd.Handle] === sMessage... | matty | Scripting | 06-21-2010 at 09:55 PM |