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

Search Results
Subject Author Forum Time
RE: Scripting API Wishlist
Just had another idea: call script functions from the command line. For example, you could make shortcuts to activate certain functions, or you could apply them to files, like in the SendTo menu, or as a context menu entry. Maybe if it's called like...
whizScripting06-05-2010 at 11:53 AM
RE: Delayed Writing
Untested... [code=js]var oChatWnds = {}; function OnEvent_ChatWndSendMessage(pChatWnd, sMessage) { if (sMessage.charAt(0) !== '/' && typeof oChatWnds[pChatWnd.Handle] === 'undefined') { oChatWnds[pChatWnd.Handle] = { Message : sMessage, ...
mattyScripting06-04-2010 at 08:17 PM
RE: Send SMS text on contact sign in
Cool, thanks for the help. I'll have to mess around with it in the next few days. Whats the best way to handle user passwords? Encrypted in registry?
ProtoZoaScripting06-03-2010 at 07:16 AM
RE: Writing files?
Also, JScript doesn't define the IO mode constants for the FileSystemObject, so you need to define them yourself: [code=js]// In the global scope var ForAppending = 8; // Where you need to read the text file theFile = fso.OpenTextFile(MsgPlus.Script...
MattiScripting06-01-2010 at 03:58 PM
RE: Send SMS text on contact sign in
In terms of editing XML files, there isn't a built-in editor in the Plus! script editor, so I recommend [url=http://notepad-plus.sourceforge.net/]Notepad+ +[/url]. Also, you can enable and disable controls based on whether a checkbox is ticked like t...
whizScripting06-01-2010 at 10:34 AM
RE: Writing files?
That is wrong... [code=js]theFile = fso.OpenTextFile(MsgPlus.ScriptFilesPath + "\\data.txt", ForAppending, true);[/code]
mattyScripting05-31-2010 at 08:08 PM
RE: Hide Contact's Email
Doing something like this will update the Chat Windows every 10 seconds and when they are opened as well. [code=js]MsgPlus.AddTimer('update_names', 10000); function OnEvent_ChatWndCreated(pChatWnd) { var s; for (oContact = new Enumerator(pChatWnd...
mattyWLM Plus! Help05-27-2010 at 07:53 PM
RE: Now playing - XML Document
Ok well I screwed up again... remove the () from this line: [code=js]pChatWnd.SendMessage('Current playing '+oXml.selectSingleNode('//SHOUTCASTSERVER/SONGT ITLE').text());[/code] Should then be: [code=js]pChatWnd.SendMessage('Current playing '+o...
mattyScripting05-26-2010 at 02:07 PM
RE: Now playing - XML Document
Change this line: [code=js]oXml.LoadXml(sXml);[/code] to: [code=js]oXml.loadXML(sXml);[/code] I thought the function was LoadXml... guess I was wrong.
mattyScripting05-26-2010 at 01:22 PM
RE: Now playing - XML Document
[code=js]var url = 'http://69.175.111.66:8301/admin.cgi?mode=viewxml '; function GetXmlFromUrl () { Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', url); var xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); xmlhttp.open('GET', url, t...
mattyScripting05-26-2010 at 12:59 PM
RE: Help with small XML reader
How many tasks are in the tasks.xml? I can already see one issue, namely that you're starting from index 1 for your loop. In JScript (and actually all languages), arrays and collections start at index 0 so you're skipping the first element with tha...
MattiScripting05-26-2010 at 11:31 AM
RE: Help with small XML reader
Tried everything suggested, the script seems to just ignore my function calls =/ Here is my entire code: [code=js] function OnEvent_Initialize(MessengerStart) { } function OnEvent_Uninitialize(MessengerExit) { } function OnEvent_MenuClicked (MenuItem...
chrisctxScripting05-26-2010 at 01:10 AM
RE: Help with small XML reader
Could you provide us with the details from the script debugger window? Anyway, I think there are two possibilities for this problem: [list=1] [*][b]The ActiveXObject couldn't be created.[/b] I had this before, for some reason my Windows installation...
MattiScripting05-25-2010 at 06:25 PM
RE: Help with small XML reader
You can use [font=Courier]selectSingleNode(strPattern)[/font] to select the first descendant node which matches a certain pattern, like a tag selector. [code=js]var Tasks = XML.selectNodes("/Tasks/Task"); for (i=0; i<Tasks.length; i ++) { var Task...
MattiScripting05-25-2010 at 04:03 PM
RE: Help with small XML reader
Here is some source code that we use in Screenshot Sender. If it doesn't make sense let me know. [code=js]function EnumControls(File, pPlusWnd) { _debug.getfuncname(arguments); // Load the XML from the specified file var XML = new ActiveXObject(...
mattyScripting05-25-2010 at 11:35 AM
RE: Allow ConvoPlus! on the Scripts DownDB or not? Looking for opinions.
The service website already supports sharing, I have tested it. It allows to share by e-mail or by secret code. You can also choose to share either certain logs or whole folders, up to certain conversation lines only; viewing shared conversations ca...
mynetx05-25-2010 at 08:16 AM
RE: Help with very small script
So that you have a working script... [code=JScript]var oEmails = [ 'email1@hotmail.com', 'email2@hotmail.com' ]; function OnEvent_ChatWndReceiveMessage (pChatWnd, sOrigin, sMessage, nMessageKind) { if ( pChatWnd.Contacts.Count !== 1...
markeeScripting05-21-2010 at 01:59 PM
RE: [?] Modal windows...
If anyone's interested as to how to do it, this should work. [code=jscript]// make the parent window, make a variable for the child window var WndParent = MsgPlus.CreateWnd("Interface.xml", "WndParent"); var WndChild = null; // use any event her...
whizScripting05-20-2010 at 05:28 PM
RE: Scripting API Wishlist
Certainly, I believe that the new scripting environment should provide sufficient window and control support to remove the need of in-runtime XML rewriting. Matty has already informed me that this is high on his wish list. CodeEditControls and MenuB...
MattiScripting05-14-2010 at 09:30 AM
RE: Q about PlaySound()
That'll probably work (look okay, haven't tested though). However, there are some things you should consider: [list] [*]With that code, you're going to download the .mp3 file every time you click the menu item. I don't know what the purpose of yo...
MattiScripting05-12-2010 at 11:29 AM
RE: changing words in sent text?
No, It'll replace one instance. For all instances you would have to use a RegExp with the g modifier [code=js] function OnEvent_ChatWndSendMessage(ChatWnd, Message){ return Message.replace(/hi/gi, "test"); } [/code] g = global i = case insensi...
SpunkyScripting05-12-2010 at 05:21 AM
RE: Q about PlaySound()
This code is from the scripting documentation... [code=js]function DownloadUpdateFile(sFile) { var Started = MsgPlus.DownloadFile(sFile); if(Started) Debug.Trace("Downloading file, waiting for event"); else ...
mattyScripting05-11-2010 at 05:27 PM
RE: Getting the Xth word of a sentence
Both xD
Riko15Scripting05-10-2010 at 06:14 PM
RE: Getting the Xth word of a sentence
Are these commands you are sending or commands that your contact is sending to you? Other option is to do something like this: [code=js]function OnEvent_ChatWndReceiveMessage(oChatWnd, sOrigin, sMessage, nMsgKind){ if (/^([\/|\!][^\s\/]+)\s*...
mattyScripting05-10-2010 at 05:49 PM
RE: Getting the Xth word of a sentence
Thnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(Y) [b]Edit:[/b] Doesn't work? o,o
Riko15Scripting05-10-2010 at 04:28 PM
[Hide Excerpts] Pages: (51): « First « 9 10 11 12 [ 13 ] 14 15 16 17 » Last »