Search Results |
Subject |
Author |
Forum |
Time |
RE: [?] Shadows on PlusWnds Sounds like a really crappy and possibly cpu intensive method.. I guess the window creating process will be a bit more slower :P | roflmao456 | Scripting | 08-14-2010 at 05:01 AM |
RE: writing text in registry? Contact.Email is not passed as a part of this function. You need to enumerate the ChatWnd.Contacts object. [code=js]function OnEvent_ChatWndReceiveMessage(pChatWnd, sOrigin, sMessage, nKind) { for (var oContact = new Enumerator(pChatWnd.Contacts... | matty | Scripting | 08-14-2010 at 02:09 AM |
RE: writing text in registry? [color=black][b]Matty[/b][/color], thanks for your help but Your code is very complex ... I do not understand well with the [code=js]Registry_SetKeyValue(HKCU, MsgPlus.ScriptRegPath.substr(5), 'key', 'this is a test', REG_SZ); Debug.Trace(Registr... | PedroGabriel | Scripting | 08-13-2010 at 09:59 PM |
RE: writing text in registry? Here is a bunch of registry functions I wrote. It would be used like this [code=js]Registry_SetKeyValue(HKCU, MsgPlus.ScriptRegPath.substr(5), 'key', 'this is a test', REG_SZ); Debug.Trace(Registry_GetKeyValue(HKCU, MsgPlus.ScriptRegPath.substr(5... | matty | Scripting | 08-13-2010 at 09:41 PM |
writing text in registry? I want to write words on the Reg/Registry but i only can write numbers .-. I don't know how to write words anyone can help me? The following script will write 5 on the Reg named Reg1 when open Messenger with this code I can't write words anybody c... | PedroGabriel | Scripting | 08-13-2010 at 09:16 PM |
RE: [Help]Reading a file/Opening a file Nicely done without testing, but after some testing a few problems showed up. You're trying to use a non-existent Path variable for GetFolder, and you're not returning your results array. Also, your line loop is wrong: Line is a property iterator [... | Matti | Scripting | 08-12-2010 at 07:24 PM |
RE: [?] Shadows on PlusWnds Just tried it on XP, but doesn't appear to do anything. | whiz | Scripting | 08-12-2010 at 04:03 PM |
RE: [?] Shadows on PlusWnds [code=js]var nMsg = Interop.Call('user32', 'GetWindowLongW', pPlusWnd.Handle, (-16) /* GWL_EXSTYLE */); nMsg = nMsg | 0x20000 /* CS_DROPSHADOW */; Interop.Call('user32', 'SetWindowLongW', pPlusWnd.Handle, (-16) /* GWL_EXSTYLE */, nMsg);[/code... | matty | Scripting | 08-12-2010 at 01:54 PM |
RE: [Help]Reading a file/Opening a file I can't test this right now, but this should do the trick. [code=jscript]var FSO = new ActiveXObject("Scripting.FileSystemObject"); // define globally /* StringInFolder: return the next line of a file after a string match - Folder: path to a folde... | whiz | Scripting | 08-12-2010 at 11:15 AM |
RE: [?] Displaying steam status in PSM Ah, thank you very much! I just got rid of all mentions of exename and exenamey and made both path strings lower case so they matched exactly. Now it works perfectly. | ryxdp | Scripting | 08-12-2010 at 08:49 AM |
RE: [?] Displaying steam status in PSM [code=js]>>> exenamey = programlist[i].split('\\');<<< >>> exenamey = exenamey[exenamey.length-1];<<< var on = true; Debug.Trace(handle+" - "+activehandle); if(onlyactivelist[i]=='Yes' && handle!=activehandle){ on = false; ... | matty | Scripting | 08-11-2010 at 01:14 PM |
RE: help with convert strings shouldnt the second one be * 1 still? :P | NanaFreak | Scripting | 08-08-2010 at 02:19 PM |
RE: help with convert strings In addition to that, a trick I tend to use is: [code=js] var number1 = '5'; var number2 = '4'; var result = (number1 * 1) + (number2 * 1); [/code] The brackets shouldn't be needed, but I use them anyway | Spunky | Scripting | 08-08-2010 at 01:34 PM |
RE: [?] Displaying steam status in PSM Although it's true that the XMLs delivered by the Steam Community don't provide much valuable data, you can get the current status and the name of the game currently being played if the user has set his profile visibility to public. [size=1](privac... | Matti | Scripting | 08-07-2010 at 08:18 AM |
RE: [?] Shadows on PlusWnds [code=js] var Attribute = Interop.Allocate(4); Attribute.WriteDWORD(0, 2); Interop.Call('dwmapi.dll', 'DwmSetWindowAttribute', pPlusWnd.Handle, 2, Attribute, 4); var _MARGINS = Interop.Allocate(8); _MARGINS.WriteWORD(0, -1); _MARGINS.Write... | matty | Scripting | 08-06-2010 at 11:45 PM |
RE: help with sendmsg i think [code=js]var oChats = {}; function OnEvent_ChatWndSendMessage(pChatWnd, sMessage) { oChats[pChatWnd.Handle] = sMessage; } function OnEvent_ChatWndDestroyed(pChatWnd) { delete oChats[pChatWnd.Handle]; } function OnEvent_ChatWndReceiveMessage(p... | matty | Scripting | 08-02-2010 at 05:49 PM |
RE: [?] Sort array by keys... In that case, you might be better off with what I suggested in my previous post: This solution would consist of an object (indexed on window ID) and an array (alphabetically sorted by ID) holding the window objects. These indexes can then be stored ... | Matti | Scripting | 07-31-2010 at 12:56 PM |
RE: [?] Sort array by keys... I'm using it for Interface Writer, so that windows can be sorted alphabetically. The data's stored like this: [code=js]Interface.Window[WndId].Property = Value; Interface.Window[WndId].Control[CtrlId].Property = Value; Interface.Window[WndId].Elem... | whiz | Scripting | 07-31-2010 at 09:46 AM |
RE: Help with SendMessage() Can you post all of your code please. Also please use the following tags [noparse][code=js][/code][/noparse]. Corrected it. Should be: [code=js]oChatWnds[pPlusWnd.Handle].SendMessage(' This message was sent from clicking a control in a window.');[/... | matty | Scripting | 07-30-2010 at 02:48 PM |
RE: Help with SendMessage() For me it's not working... but at least it's a different error this time :P The error is on sendmessage line: [code=js] oChatWnds[pPlusWnd.Handle].SendMessage = 'This message was sent from clicking a control in a window.'; [/code] | Coso | Scripting | 07-30-2010 at 02:46 PM |
RE: Help with SendMessage() The reason it isn't making sense is because you are not globally defining the Chat Window object. You could do this by putting var objChatWnd; at the top of your script then in your OnEvent_MenuClicked you would assign objChatWnd = pChatWnd. The pro... | matty | Scripting | 07-30-2010 at 01:33 PM |
RE: [?] Using XML DOM "childNodes" property... Are you sure the window actually has a "Controls" node? It seems to work fine here... As for how to loop through them, you simply create an Enumerator like you have already done for the Windows. [code=JScript] var ControlEnum = new Enumerator(node.... | Eljay | Scripting | 07-25-2010 at 02:50 PM |
RE: [?] Using XML DOM "childNodes" property... The slashes are in the path variable. [code=js]var WindowXMLPath = "//Interfaces/Window[@Id=\"" + WindowId + "\"]/"; // here ^[/code] | whiz | Scripting | 07-25-2010 at 12:11 PM |
RE: [?] Using XML DOM "childNodes" property... just guessing here, but shouldn't there be slashes after WindowXMLPath ? | foaly | Scripting | 07-25-2010 at 11:44 AM |
[?] Using XML DOM "childNodes" property... I'm trying to use [b]Node.childNodes[/b] (as opposed to enumerating [b]Node.selectNodes()[/b], so that I can access comments in interfaces, as well as windows, controls and elements. ...except that I don't know how to loop through one. :S [code=js... | whiz | Scripting | 07-25-2010 at 11:37 AM |