Search Results |
Subject |
Author |
Forum |
Time |
[?] PHP ZipArchive... I'm trying to use the PHP [url=http://php.net/manual/en/class.ziparchive.php ]ZipArchive[/url] class, but I can't seem to get it to work. It always has a status of 0, and the folder is never created. The script is uploaded [url=http://mwss.ww-c.cz... | whiz | Tech Talk | 11-21-2010 at 03:25 PM |
RE: getting a message and a sound together Some basic (and a bit more advanced) examples of using the Windows Speech API in JScript:[code=jscript]var oVoice = new ActiveXObject("SAPI.SpVoice"); with (oVoice) { Voice = GetVoices()[0]; Volume = 100; // basic example Rate = 1; Speak("Hel... | CookieRevised | Scripting | 11-15-2010 at 06:25 PM |
RE: getting a message and a sound together You still need to tell us a bit more about what exactly you want to achieve here. [list] [*]What exactly do you want to be played? Do you want the message to be read out, or a specific sound? [*]Do you want to hear the sound, or do you want the cont... | whiz | Scripting | 11-11-2010 at 08:38 PM |
RE: Read Text from a file Now that's a useful error message! :D Line 18 is: [code=js]line = line.replace('alias "serverinfo [', '');[/code] This is just weird. I tried this myself and indeed, ReadLineFromFile returns false, meaning that the requested line number exceeds... | Matti | Scripting | 11-07-2010 at 10:36 PM |
RE: Read Text from a file Where are you pasting the snippets into? Are you using the built-in script editor of Plus! Live? If so, does it say "Script has successfully started" in the debugger when you click "Save All"? What exactly is at line 255 of that saved.cfg file of... | Matti | Scripting | 11-07-2010 at 08:42 PM |
RE: Read Text from a file You guys are still using the bugged version of ReadLineFromFile(). On the last line, "FileContents" is misspelled, which I already mentioned in my previous post. Another possible issue could be that the file you're trying to read is saved as Unico... | Matti | Scripting | 11-07-2010 at 07:42 PM |
RE: Read Text from a file The highlighted line was forgotten. [code=jscript]function ReadLineFromFile(sFile, nLine) { var f = new ActiveXObject("Scripting.FileSystemObject").Open TextFile(sFile, 1 /* ForReading */); var s = f.ReadAll(); f.Close() var FileCont... | matty | Scripting | 11-07-2010 at 06:30 PM |
RE: Read Text from a file You need to include the parameters (ChatWnd and Message) for [b]OnEvent_ChatWndReceiveMessage()[/b]. [code=jscript]function ReadLineFromFile(sFile, nLine) { var f = new ActiveXObject("Scripting.FileSystemObject").Open TextFile(sFile, 1 /* ForRea... | whiz | Scripting | 11-07-2010 at 05:24 PM |
RE: Read Text from a file matty just provided you with two possible implementations of how you could read a single line from a file (what's in a function name?). Basically, you copy one of those functions in your script and call them: [code=js]var line = ReadLineFromFile("C... | Matti | Scripting | 11-07-2010 at 10:11 AM |
RE: Read Text from a file Here are 2 untested options to get get you started. [code=js]function ReadLineFromFile(sFile, nLine) { var f = new ActiveXObject("Scripting.FileSystemObject").Open TextFile(sFile, 1 /* ForReading */); while (--nLine > 0 && !f.AtEndOfStream) { fs... | matty | Scripting | 11-07-2010 at 03:40 AM |
RE: Parameters by reference There's no such thing as passing arguments by reference in JScript. Instead, depending on the variable type, variables are changed or recreated. This is what we call "immutable" types. For example, the string type is immutable: you can't change i... | Matti | Scripting | 11-05-2010 at 07:29 PM |
RE: [ Help ] Alpha making window invisible Not that we condone this type of prank but there are a few things you can do. Firstly using transparency to hide the window is ok but you can use ShowWindow instead. Firstly the function Huhu_ChatWndReceiveMessage doesn't appear to be called anywher... | matty | Scripting | 11-02-2010 at 05:51 PM |
RE: The "Voice Clip Sender" script The reason for the error is because they are trying to set the size of a variable that is not created if the script doesn't reach a specific point. Albeit good practise to do so it is not required to set the size of the databloc's to 0 after you ar... | matty | Scripting | 10-27-2010 at 04:10 PM |
RE: Using C# DLL [/spoiler] | felipEx | Scripting | 10-23-2010 at 05:15 AM |
RE: status script [code=js] var old_status = ""; function OnEvent_ChatWndCreated() { if (old_status === "") old_status = Messenger.MyStatus; if (Messenger.MyStatus != STATUS_INVISIBLE) Messenger.MyStatus = STATUS_BUSY; } function OnEvent_ChatWndDestroy... | Spunky | Scripting | 10-22-2010 at 07:46 AM |
RE: status script You're not supposed to fill something in in that string variable! It does not define what status is being set after all the chat windows are closed. [size=1]it actually doesn't matter what you fill in there, any random string will do, as long as yo... | CookieRevised | Scripting | 10-21-2010 at 07:22 AM |
Structure definition class Actually, that build() method simply returns the DataBloc created during construction. When I started working on it, I first laid out the structure and I was still unsure about how I was going to implement it. I kept the build() method so the actual... | Matti | Scripting | 10-18-2010 at 09:43 PM |
Structure definition class It's quite funny how similar your struct system is to one I started making :P How do you define elements that are arrays with your system? e.g. [url=http://msdn.microsoft.com/en-us/library/dd145 037(VS.85).aspx]lfFaceName in LOGFONT[/url]. I was tryi... | Eljay | Scripting | 10-18-2010 at 09:16 PM |
Structure definition class That's exactly how I did it. The following comes straight from my implementation: [code=js]DataType.INT = new DataType({ size : 4, read : function( databloc, position ) { return databloc.ReadDWORD( position ); }, write : fun... | Matti | Scripting | 10-18-2010 at 08:33 PM |
Structure definition class [align=center][size=6][b]Structure definition class[/b][/size] [b]Current version: 1.0.001[/b][/align] [size=4]^o) [b]What?[/b][/size] The structure definition class allows developers to easily define, create, access and modify memory structures to u... | Matti | Scripting | 10-17-2010 at 08:35 PM |
RE: List-view groups @Matti: seems like I'm using an outdated version of your class? I copied it from Countdown live 2.1 and did some edits to it; I'll attach a ZIP file for ya :P @matty: I've had no luck yet.. Here's my code (besides the class): [code=JScript] ... | SmokingCookie | Scripting | 10-16-2010 at 05:18 PM |
RE: status script I thought it looked a bit wrong when I did it, but looking in the contacts section of the help file (it's been a while) gave me contacts.count. Maybe it should be explained a bit clearer for people. Updated original post | Spunky | Scripting | 10-15-2010 at 11:25 AM |
RE: status script Yes but ChatWnds is not declared. It is [code=js]Messenger.CurrentChats.Count;[/code] | matty | Scripting | 10-15-2010 at 11:23 AM |
RE: status script [code=js] var old_status = ""; function OnEvent_ChatWndCreated(){ if(Messenger.CurrentChats.Count > 0){ if(old_status === "") old_status = Messenger.MyStatus; Messenger.MyStatus = STATUS_BUSY; } } function OnEvent_ChatWndDestroyed(){ ... | Spunky | Scripting | 10-15-2010 at 09:15 AM |
RE: [Release]Idle Liar 1.0 Correct me if I am wrong but wouldn't this work? I am not at home and cannot test it but I don't see why you couldn't simply do this... [code=js]function OnEvent_ChatWndSendMessage(pChatWnd, sMessage) { if (sMessage.match(/\/idle/)) { ... | matty | Scripting | 10-13-2010 at 08:28 PM |