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

Search Results
Subject Author Forum Time
RE: [?] Detect x64 through JScript & EM_SETSEL on x64
Just out of curiosity, I would have to test this myself but: [code=js]SetSel(12, 11)[/code] Is essentially what you are doing... I dont know what the ramifications of that are or how long the text in the edit control you are testing is.
mattyScripting02-02-2010 at 08:35 PM
RE: [?] Detect x64 through JScript & EM_SETSEL on x64
:wall: Gotta get some reading lessons :S Anyways, I started at the MSDN article. I guess I'd post some code? [code=JScript]// Example var Text = "Hello world!"; var pText = "Hello world"; var SetSel = function(Start,End) { Interop.Call("User32...
SmokingCookieScripting02-02-2010 at 07:39 PM
RE: Interface Writer | [release] 3.0 | 22/08/2010
Done that.
whizScripting02-02-2010 at 06:34 PM
RE: Nudge Open Chats
This is happening because the OriginWnd parameter of the OnEvent_MenuClicked event is the Chat Window where the menu is clicked. This will never change unless you click the menu from another Chat Window. You would need to use: [code=js]oChat.item().S...
mattyScripting02-02-2010 at 02:49 PM
RE: Nudge Open Chats
[code=js]for (var oChat = new Enumerator(Messenger.CurrentChats); !oChat.atEnd(); oChat.moveNext()) { Debug.Trace(oChat.item().Handle); }[/code]
mattyScripting02-02-2010 at 12:31 AM
RE: Interface Writer | [release] 3.0 | 22/08/2010
Well, I think this is the easy part: [code=JScript]Interop.Call("User32.dll","SendMe ssageW",PlusWnd.GetControlHandle("MyListView"), LVM_EDITLABELW,ItemToRename,0);[/code] You should then listen for WM_NOTIFY ( = 0x004E) notifications. That's wh...
SmokingCookieScripting01-31-2010 at 05:04 PM
RE: Interface Writer | [release] 3.0 | 22/08/2010
Well, I'm guessing it's something to do with this... [code=js]if(Cache.Languages["Array"][Cache["Lan guageSelection"]] === "English.xml") return ScriptLanguage.DisplayAlert(PlusWnd.Handle,"Alert EnglishRequired"); Interop.Call("User32.dll"...
whizScripting01-31-2010 at 04:00 PM
RE: [RESOLVED] JavaScript: Remove <table>blah</table>
Line breaks are casuing it to break and I can't get the m modifier to work so we can add an extra replace. [code=js]html = html.replace(/\n/gi, "").replace(/\<table.+?table\>/gi, "");[/code] If you wanted to, you could replace the \n with a ...
SpunkyTech Talk01-29-2010 at 10:40 PM
RE: [RESOLVED] JavaScript: Remove <table>blah</table>
Doesn't appear to be working *-) EDIT: I didn't see your edit before i said it didn't work. Let me try your new one.
macgyver08Tech Talk01-29-2010 at 09:59 PM
RE: [RESOLVED] JavaScript: Remove <table>blah</table>
[code=js] // IGNORE -> html = html.replace(/\<table\>.+?\<\/table\>/gi, ""); html = html.replace(/\<table.+?table\>/gi, ""); [/code] Should do it. EDIT: Changed it to allow for attributes in the table tag such as styles, class, id etc.
SpunkyTech Talk01-29-2010 at 09:45 PM
RE: [help] Setting window icons...
[code=js]Interop.Call("user32", "SendMessageW", TmpWnd.Handle, 0x80, 0, ScriptIcon); Interop.Call("user32", "SendMessageW", TmpWnd.Handle, 0x80, 1, ScriptIcon);[/code]
mattyScripting01-29-2010 at 09:36 PM
[help] Setting window icons...
I've seen it done in Countdown Live, but I can't seem to be able to do it. There's no error message or anything - nothing happens. [code=js]var ScriptIcon = Interop.Call("user32", "LoadImageW", Interop.Call('kernel32', 'GetCurrentProcess'...
whizScripting01-29-2010 at 09:21 PM
RE: [RESOLVED] Need help with JavaScript replace()
the replace function is using [url=http://www.w3schools.com/jsref/jsref_obj_rege xp.asp]Regular Expressions[/url], in the format of /pattern/modifiers. In this example, everything between the "/"s are the characters to replace and the ig are the mo...
stoshrocketTech Talk01-28-2010 at 12:18 PM
RE: [RESOLVED] Using Ajax.open to get specific div
Thanks to both of you! I've got it figured out now :D
macgyver08Scripting01-28-2010 at 10:46 AM
RE: [RESOLVED] Using Ajax.open to get specific div
A simple and crude method would just to be: [code=js] // txt is the xmlhttp responseText stored in a variable txt = txt.split('<div id="1">')[1]; txt = txt.split('</div>')[0]; // txt will now be the div contents including the html // if the co...
SpunkyScripting01-28-2010 at 09:45 AM
RE: Buttons
When i click on Create... that window appears and when i click on the Letters button nothing happens :( This is what i get in the debug window when i click the Letters button: [code=js]Function called: OnWndMainEvent_CtrlClicked[/code]
c_clarky_89Scripting01-28-2010 at 03:22 AM
RE: Buttons
[code=js]>>>function OnWndMenuEvent_CtrlClicked(Wnd, ControlId)<<< { if(ControlId == "BtnLetters") { >>> Wnd = MsgPlus.CreateWnd("Letters.xml", "WndLetters");<<< } }[/code] You are using Wnd twice that isn't the problem but that...
mattyScripting01-27-2010 at 06:34 PM
RE: Buttons
The code I wrote you just need to delete these 2 lines: [code=js]>>> if (Messenger.MyName !== '')<<< Wnd.Combo_AddItem('NamePm', 'Name'); >>> if (Messenger.MyPersonalMessage !== '')<<< Wnd.Combo_AddItem('NamePm', 'Personal Message');[...
mattyScripting01-26-2010 at 07:50 PM
RE: Rich text format extract using Interop
[code=js]// variables var SF_RTF = 0x2; var SF_UNICODE = 0x10; var WM_USER = 0x400; var EM_STREAMOUT = (WM_USER + 74); // did this just to make sure that function call smaller var nFlags = SF_RTF | SF_UNICODE; /* // this was my testing MsgPlus.Create...
mattyScripting01-26-2010 at 06:36 PM
RE: change Personal message
There is a bug surrounding Messenger.MyPersonalMessage sometimes not being populated. The only condition that needs to be met is that you are signed in and you should be able to change it while using [code=js]Messenger.MyPersonalMessage = 'this is a...
mattyScripting01-25-2010 at 02:08 PM
RE: [Firefox] Skins Database Bug
A bit of firebugging revealed that the problem is caused by the vertical center hack. Simply put: it doesn't work that way. Here's a much better vertical center hack, using table styles for IE8/Firefox/Chrome/... and relative positioning for IE6/7....
MattiForum & Website01-24-2010 at 09:43 AM
RE: Close windows when logged out
[code=js]function OnEvent_SignOut() { for (var oChatWnd = new Enumerator(Messenger.CurrentChats); !oChatWnd.atEnd(); oChatWnd.moveNext()) { Interop.Call('user32', 'SendMessageW', oChatWnd.item().Handle, 0x10 /*WM_CLOSE*/, 0, 0); }...
mattyScripting01-22-2010 at 06:44 PM
RE: [Script Request] Growl Notifications
[code=js]function OnEvent_ContactSignedIn(sEmail) { new ActiveXObject('WScript.Shell').Exec('C:\\Prog ram Files\\Growl for Windows\\growlnotify.exe "'+sEmail+' signed in"'); }[/code] You may need to change the path if you installed i...
mattyScripting01-21-2010 at 09:28 PM
RE: [Script Request] Growl Notifications
You forgot the "function" keyword before your function definition. [code=js]function OnEvent_ContactSignin(Email){ var shell = new ActiveXObject("WScript.Shell"); var cmd = 'growlnotify "' + Email + 'signed in"'; shell.Run(cmd); }[/code]
MattiScripting01-21-2010 at 09:17 PM
RE: Question about "MyStatus"
Ah yes, you can't use the value of a variable or expression as identifier for a property when you're defining an object literal. "STATUS_ONLINE" is interpreted as a string identifier for the property, it does not take the value of STATUS_ONLINE ...
MattiScripting01-20-2010 at 12:27 PM
[Hide Excerpts] Pages: (51): « First « 15 16 17 18 [ 19 ] 20 21 22 23 » Last »