Search Results |
Subject |
Author |
Forum |
Time |
RE: Basic Questions - LaTeX I'm having a bit of trouble with my window at the moment... I'm trying to make it a look a biter nicer, because the png image is only exactly as large as the equation, so there is no 'border' around the equation, making it hard to read sometimes.... | Flippy | Scripting | 06-18-2009 at 08:10 PM |
RE: HELP - Arrays in the registry! [code=js]WndLstId = ReadRegistry("Lst", "Id"); WndLstId.split(","); WndLstTitle = ReadRegistry("Lst", "Title"); WndLstTitle.split(","); // ...[/code] Is that the right idea? | whiz | Scripting | 06-18-2009 at 07:56 PM |
RE: Basic Questions - LaTeX Ah, it seems like you ran into the same problem every developer goes through when learning to work with Interop.Allocate and memory structures. No worries, I've had the same thing as well. :) Let's have a look at the RECT structure as defined by MS... | Matti | Scripting | 06-18-2009 at 07:22 PM |
RE: HELP - Arrays in the registry! Almost, [code=js] var Msg = "Item1,Item2"; Msg.split(,); [/code] Should be: [code=js] var Msg = "Item1,Item2"; Msg.split(","); [/code] EDIT: Bit slow=/ I left the browser window open for a while :p | Spunky | Scripting | 06-18-2009 at 07:14 PM |
RE: Basic Questions - LaTeX [code=js] // Get chat window size var wndRect = Interop.Allocate(4); Interop.Call("user32.dll", "GetWindowRect", ChatWnd.Handle, wndRect); Debug.Trace("Left: " + wndRect.left + ... | Spunky | Scripting | 06-18-2009 at 07:11 PM |
RE: HELP - Arrays in the registry! Yes, as long as the array elements don't contain your separator character (in this case, a comma), you'll get the same array. Since you're trying to retrieve an array of window IDs, you won't have any trouble with possibly having a comma in an el... | Matti | Scripting | 06-18-2009 at 07:07 PM |
RE: HELP - Arrays in the registry! So, to be clear, this code... [code=js]var Msg = "Item1,Item2"; Msg.split(,);[/code] ...would return the same as this code... [code=js]var Msg = new Array("Item1", "Item2");[/code] Is that correct? | whiz | Scripting | 06-18-2009 at 07:02 PM |
HELP - Arrays in the registry! I want to use this with the Interface Writer script, but I have a problem with what it returns. Note: this function uses a [url=http://shoutbox.menthix.net/showthread.php?ti d=56747&pid=746212#pid746212]registry code snippet[/url]. [code=js]function S... | whiz | Scripting | 06-18-2009 at 06:20 PM |
RE: Basic Questions - LaTeX Well first of all getting the window size... I tried it, but I don't really know how to use the Allocate function. It wants to know the size in bytes, but how do I know? The Rect structure seems to store 4 long integers (= 4 * 4 bytes???) so I used ... | Flippy | Scripting | 06-18-2009 at 06:11 PM |
RE: Need help, what is wrong here? <Picture></picture> is invalid, use <Picture></Picture> or <picture></picture> instead =) Anyways, make it look like this: [code=xml]<SkinInfo xmlns="urn:msgplus:skins" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta nce" xsi:schemaLocation=... | blessedguy | Skinning | 06-18-2009 at 06:09 PM |
RE: Basic Questions - LaTeX My suggestion is the following: [code=js]var oGdip = new Gdip(); if ( oGdip.Initialize() === true ) { >>> oGdip.ConvertImage( 'C:\\myImage.png', 'C:\\myImage'+new Date().getTime()+'.jpg', 'JPG', 75 );<<< Debug.Trace( oGdip.GetImageDim... | matty | Scripting | 06-18-2009 at 05:36 PM |
RE: Need help, what is wrong here? But what is [code=xml] <Picture Id="59000"><File>img/DSC00315.jpg</File></Pictur e> [/code] doing between the replace tags? | blessedguy | Skinning | 06-18-2009 at 05:25 PM |
RE: Basic Questions - LaTeX Ok, I found Javascript code to find the size of an image, but it doesn't work in jscript :( [code=javascript]var newImg = new Image(); newImg.src = imgSrc; var height = newImg.height; var width = newImg.width;[/code] But 'Image' isn't recognized.... | Flippy | Scripting | 06-18-2009 at 01:29 PM |
RE: Basic Questions - LaTeX Wow thanks, I learned something new again :p I've got it nearly done now. The latex png is created and shows in a window. Only thing left now is to resize the window depending on the size of the image. I have been trying first to simply resize the... | Flippy | Scripting | 06-18-2009 at 11:29 AM |
RE: startsWith() and endsWith() I normally am a person who uses regular expressions all over the place (it is my job after all) but in this case I would highly recommend not doing it as it is a much slower option. Instead I would use the following [code=JScript] function startsWit... | markee | Scripting | 06-18-2009 at 07:46 AM |
RE: Basic Questions - LaTeX You could debug that code yourself by stripping down the command line and testing it part by part... starting with the CD command... Doing this it shows two things: - You get the error because you start your command line with an internal DOS command ... | CookieRevised | Scripting | 06-18-2009 at 01:42 AM |
RE: Basic Questions - LaTeX Alright, the docs now work, thanks for that :) I got the Run command to work, including the -include-directory switch and -output-directory switch. So I have been able to run the latex command without the use of the cd command, great! But, it appears... | Flippy | Scripting | 06-17-2009 at 10:01 PM |
RE: startsWith() and endsWith() Because you actually check if the string is exactly "$$", nothing more, nothing less. This because you have the [b]^[/b] in there (meaning 'from the beginning'). So, the correct expression is: [code=jscript]function endsWithToken(orig) { return... | CookieRevised | Scripting | 06-17-2009 at 07:52 PM |
RE: startsWith() and endsWith() Fixed by using:[code=js]return (orig.lastIndexOf(str)===orig.length-str.length) && (orig.length>=str.length);[/code] ---------------------- For that triple '=', those are [u]identity[/u] operators (opposed to a double '=' which is a [u]equality[/... | CookieRevised | Scripting | 06-17-2009 at 07:19 PM |
RE: Interface Writer | [release] 3.0 | 22/08/2010 Go to the Script Menu > "Interface Writer" > "Create a new interface...". :) | whiz | Scripting | 06-17-2009 at 06:56 PM |
RE: PHP help - Curl Have you looked at the request headers to make sure you're sending the cookie? [code=php]curl_setopt($ch, CURLOPT_VERBOSE, true);[/code] | WDZ | Tech Talk | 06-17-2009 at 06:30 PM |
RE: startsWith() and endsWith() Thanks. I didn't try it yet (will do later tonight), but I cannot guarantee that orig is longer than str. str will actually be "$$" always (at least in my script), and orig is simply the message someone receives. That message might be a simple "... | Flippy | Scripting | 06-17-2009 at 06:26 PM |
RE: Basic Questions - LaTeX 1) I've tried running the commands directly, but it won't work. The reason is that the commands I'm using ("latex <file>" for example) don't work if the <file> is any full path (such as "C:\Test\file.tex"). The file needs to be relative (su... | Flippy | Scripting | 06-17-2009 at 06:14 PM |
RE: startsWith() and endsWith() Maybe this will work.. [code=jscript]function startsWithToken(orig, str) { return orig.indexOf(str)===0; } function endsWithToken(orig, str) { return orig.lastIndexOf(str)===(orig.length-str.length); }[/code] I'm assuming str won't be longer than... | Mnjul | Scripting | 06-17-2009 at 05:28 PM |
startsWith() and endsWith() Hey, I'm looking for a function that will tell me if a string starts or ends with a certain string. In any language I've worked in so far you had the StartsWith() and EndsWith() functions, but they don't seem to work in jscript. I've looked on go... | Flippy | Scripting | 06-17-2009 at 04:59 PM |