What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » Search » Results

Search Results
Subject Author Forum Time
RE: [Release] Photo Sharing Disabler
You got that patch function from the 'Unlimited Nudges' script I think. A few days after I wrote the '[url=http://shoutbox.menthix.net/showthread.php? tid=65583&pid=722072#pid722072]Idle on Demand[/url]' script (already 3 years ago, wow :p) I wrot...
CookieRevisedScripting05-22-2009 at 06:13 PM
RE: HELP - "foreach" command!
There's another way to get it working without dealing with a variable in those events :D [code=JScript]var LVM_FIRST = 0x1000; var LVM_GETNEXTITEM = LVM_FIRST + 12; var LVNI_SELECTED = 0x2; var SelectedItem = PlusWnd.SendControlMessage('vLstTest'...
felipExScripting05-22-2009 at 05:15 PM
RE: HELP - "foreach" command!
[code=js] var WndID = new Array(); var WndTitle = new Array(); var WndDesc = new Array(); function OnWndWriterAddItemEvent_CtrlClicked(objWnd, strControlId) { switch (strControlId) { case "BtnAdd": WndID.push(objWnd.GetControlText("EdtID")...
whizScripting05-22-2009 at 12:49 PM
RE: HELP - "foreach" command!
Question 2: myArray.push(ItemVar); whereas ItemVar can be anything (even an array) Question 1: No, there is not a method to retrieve the current selection. You can, however, do this: [code=JScript]var SelectedItem = -1; function OnWndTestEvent_LstVie...
SmokingCookieScripting05-22-2009 at 07:11 AM
RE: HELP - "foreach" command!
This does [b]not[/b] work in JScript. In JScript for ... in is used to enumerate the *properties* of an object, whereas in VBScript it is used to enumerate members of a collection. :) [url=http://blogs.msdn.com/ericlippert/archive/200 3/09/22/for-eac...
andrewdodd13Scripting05-21-2009 at 08:01 PM
RE: HELP - "foreach" command!
Umm... I can't seem to get that to work - I just get an error saying "Expected }". Basically, I have a main (editor) window, like this: [code=js] var WndWriterEditor = MsgPlus.CreateWnd("Windows.xml", "WndWriterEditor", 0); [/code] Let's say...
whizScripting05-21-2009 at 08:01 PM
RE: HELP - "foreach" command!
[code=js] for (var s in test){ Debug.Trace(test[s]); } [/code] EDIT: foreach is used in PHP
SpunkyScripting05-21-2009 at 07:38 PM
RE: HELP - "foreach" command!
You mean something like: [code=JScript]for(var i = 0; i < MyArray.length; i++) { <code_goes_here> }[/code] I may recommend using a different solution than using 2 arrays and hoping they will remain synchronised: [code=JScript]/* CLASS Item([strin...
SmokingCookieScripting05-21-2009 at 07:35 PM
HELP - "foreach" command!
Is there a way of doing something for every item in an array? I thought there was something called "foreach" that does this... then again, I don't really know. For example: [code=js] var Test = new Array("test1", "test2", "test3"); var Tes...
whizScripting05-21-2009 at 06:36 PM
RE: [Release] Photo Sharing Disabler
fail. [code=js]function OnGetScriptMenu() { if (Address) { var ret = "<ScriptMenu>"; if (Enabled) ret += "<MenuEntry Id=\"MnuChange\">Disable</MenuEntry>"; else ret += "<MenuEntry Id=\"MnuChange\">Enable</MenuEntry>"; ret += "...
mattyScripting05-21-2009 at 11:09 AM
RE: [release] Music now playing
Just to confirm this fix works. MNP is now being showed correctly. Thanks!
YottabyteWizardScripting05-21-2009 at 05:38 AM
RE: [Request] Minimize to tray on focus contact window with a hotkey
Change the last function to this: [code=js]function OnEvent_ContactListWndDestroyed(){ Interop.Call("comctl32.dll", "RemoveWindowSubclass", Messenger.ContactListWndHandle, subClassProcAddr, 0); subClassProcAddr=0; }[/code]
mattyScripting05-21-2009 at 01:21 AM
RE: [Request] Minimize to tray on focus contact window with a hotkey
[code=js]function embedCode(hWnd){ if(!subClassProcAddr){ var hCurrentProcess = Interop.call("kernel32.dll", "GetCurrentProcess"); subClassProcAddr = Interop.Call("kernel32.dll", "VirtualAlloc", null, CODE_SIZE, MEM_RESERVE | MEM_COMMIT,...
mattyScripting05-20-2009 at 06:05 PM
RE: Change Control enable status
You need to use the Win32 API. Enable: [code=js]Interop.Call('user32', 'EnableWindow', winSettings.GetControlHandle('EdtUseTag'), true);[/code] Disable: [code=js]Interop.Call('user32', 'EnableWindow', winSettings.GetControlHandle('EdtUseTa...
mattyScripting05-19-2009 at 04:21 PM
RE: /commands
[code=js]function OnEvent_ChatWndSendMessage(oChatWnd, sMessage){ if (/^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage) !== null) { var _command = RegExp.$1.toLowerCase(); var _param = RegExp.$2; switch (_command) { case 'test': ...
mattyScripting05-19-2009 at 01:03 PM
RE: Newest Version of my script doesnt start up
Use this instead [code=js]function OnEvent_Initialize(MessengerStart) { if (Messenger.MyStatus < STATUS_INVISIBLE) return false; StartDetach(); } function OnEvent_SigninReady(sEmail) { OnEvent_Initialize(true); }[/code] The reason this is ha...
mattyScripting05-19-2009 at 12:53 PM
RE: HELP - Seconds to hours!
[code=js] if (Milliseconds == 10) { Milliseconds = 0; Seconds = Seconds + 1; if (Seconds == 60) { Seconds = 0; Minutes = Minutes + 1; >>> if (Minut...
NanaFreakScripting05-17-2009 at 12:04 PM
HELP - Seconds to hours!
[code=js]var Counting = false; var Paused = false; var CountWindow; var CountWndOpen = false; var AdjustWindow; var AdjustWndOpen = false; var Hours = 0; var Minutes = 0; var Seconds = 0; var Milliseconds = 0; var TotalTime = 0; var Add0S; var Add0M;...
whizScripting05-17-2009 at 11:48 AM
RE: Suggestion: Personal Status with Display Picture Change
This can be easily done with a script: [code=jscript]var originaldp; var dpdir=MsgPlus.ScriptFilesPath; //You can change this to your own directory function OnEvent_EnterPersonalizedStatus(status,tag,psm,aut o){ switch(tag){ case 'Eating': //Chan...
ryxdpScripting05-15-2009 at 07:57 AM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage!
[code=JScript]function OnEvent_ChatWndReceiveMessage(obj,orig,msg,k) { var Emails = new Array(); var OriginEmail = ""; for(var e = new Enumerator(obj.Contacts); !e.atEnd(); e.moveNext()) { Emails.push(e.item().Email); if...
roflmao456Scripting05-14-2009 at 08:06 PM
RE: HELP - Email from OnEvent_ChatWndReceiveMessage!
Indirectly, yes it is: [code=JScript]function OnEvent_ChatWndReceiveMessage(obj,orig,msg,k) { var Emails = new Array(); for(var e = new Enumerator(obj.Contacts; !e.atEnd(); e.moveNext()) { Emails.push(e.item().Email); } }[/code] The Emails array...
SmokingCookieScripting05-14-2009 at 07:44 PM
HELP - Email from OnEvent_ChatWndReceiveMessage!
[code=js]function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind)[/code] The "Origin" variable outputs the contact's name. Is it possible to get their email address instead?
whizScripting05-14-2009 at 07:16 PM
RE: Window won't show up -_-
What page are you looking at? The XML Schemas Reference > Interface Windows > Information has: [code=xml]<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta nce" xsi:schemaLocation="urn:msgplus:interface ...
mattyScripting05-11-2009 at 06:11 PM
RE: Window won't show up -_-
First things first you are missing a big chunk of the header: [code=xml]>>><?xml version="1.0" encoding="UTF-16"?><<< >>><Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta nce" xsi:schemaLocation="urn:...
mattyScripting05-11-2009 at 03:01 PM
RE: Bright Typing Area??
[code=xml]Conditions(Convtspt= "Desactiver")[/code] It won't work. How can you define an option an not udate it in the skininfo?
blessedguySkinning05-08-2009 at 05:38 PM
[Hide Excerpts] Pages: (51): « First « 30 31 32 33 [ 34 ] 35 36 37 38 » Last »