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. | matty | Scripting | 02-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... | SmokingCookie | Scripting | 02-02-2010 at 07:39 PM |
RE: Interface Writer | [release] 3.0 | 22/08/2010 Done that. | whiz | Scripting | 02-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... | matty | Scripting | 02-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] | matty | Scripting | 02-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... | SmokingCookie | Scripting | 01-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"... | whiz | Scripting | 01-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 ... | Spunky | Tech Talk | 01-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. | macgyver08 | Tech Talk | 01-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. | Spunky | Tech Talk | 01-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] | matty | Scripting | 01-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'... | whiz | Scripting | 01-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... | stoshrocket | Tech Talk | 01-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 | macgyver08 | Scripting | 01-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... | Spunky | Scripting | 01-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_89 | Scripting | 01-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... | matty | Scripting | 01-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');[... | matty | Scripting | 01-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... | matty | Scripting | 01-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... | matty | Scripting | 01-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.... | Matti | Forum & Website | 01-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); }... | matty | Scripting | 01-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... | matty | Scripting | 01-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] | Matti | Scripting | 01-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 ... | Matti | Scripting | 01-20-2010 at 12:27 PM |