how to open an html file
Hello. I need to script a button so that when clicked it opens an html file, in a browser window, that exists in the same folder as the metacard file, not on the web. Any direction is greatly appreciated. Thanks in advance, Kristen Billings VA Pittsburgh Healthcare System ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
'Real' file names in Windows
Does anyone know how to get 'real' file names (as opposed to 'DOS' filenames) in Windows? This is related to installing fonts, which I see that I must modify the registry to have new fonts recognized...but the 'key' is the long name of the font. Do I really need to parse the font file data looking for this? Thanks, JR ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Extracting a subset of lines from a large file
Thanks Xavier, That's what I suspected after doing some primitive experiments. I'll try your buffer idea. Gregory I wrote: Message: 1 Date: Tue, 01 Jul 2003 16:43:44 -0400 From: Gregory Lypny [EMAIL PROTECTED] Subject: Extracting a subset of lines from a large file To: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Hello everyone, I want to take a chunk of 1000 lines at a time out of a text file and display it in a field. Some of the text files are big, 200 MB and up. Is one of the following approaches preferred? [1] put line 1 to 1000 of url (file: filePath) into field X [2] read from file filePath from line 1 for 1000 lines put it into field X Regards, Gregory On Wednesday, July 2, 2003, at 12:03 PM, Xavier replied: From: MisterX [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Extracting a subset of lines from a large file Date: Wed, 2 Jul 2003 06:57:42 +0200 Reply-To: [EMAIL PROTECTED] Gregory, the url will force the file to be read completely. for those cases (but not for over 30MB's) it's better to store the data into a variable and treat it in a loop after. In your case, read the file using the read file command. Try to optimize a buffer for your reading (32-64K's may be best... but experiment!) Stocking the data temporarily in a field will definitely slow down things... try to keep that for last... Memory is the fastest you got! cheers Xavier ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: 'Real' file names in Windows
On Wednesday, July 2, 2003, at 09:13 AM, RCS wrote: Does anyone know how to get 'real' file names (as opposed to 'DOS' filenames) in Windows? This is related to installing fonts, which I see that I must modify the registry to have new fonts recognized...but the 'key' is the long name of the font. Do I really need to parse the font file data looking for this? JR, We have been marketing our fonts for over a year now. To meet those needs, we created a simple font installer (available through RevNet). Our installer simply copies the fonts into the users fonts folder. Nothing has been done to the registry to make them show up in every application on the system. I am not aware of why modifying the registry would be needed. We have had zero complaints from our users. I am interested to hear your thoughts though. Best regards, Mark Talluto http://www.canelasoftware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: how to open an html file
the building blocks you want to work with are: ask file -- which invokes a dialog box which will allow you to choose the file you want to read open for read -- which lets you open the file you want to read (when your done reading be sure to use close file to avoid problems) you'll also need theHtmlText. The way I did this was to build a stack with one button and two fields. What you are going to do is read raw HTML into the one field, get that field's html text property and put that into your second field. You could of course do this with containers, but I prefer working with fields. You can set the visible field one (the field into which raw html is imported) to false. I'd recommend actually writing the routine yourself since you'll learn more and be able to do exactly what you want with the field. I have a stack here: http://www.runrev.com/revolution/downloads/developerdownloads/ENGLEMCRRStacks.zip that does this, it imports html, and lets you write it to a field. Have fun. If you wish to use it commercially please ask for a license. I'm an academic and need publication credit. I.e. the license you have is for personal use. If you want more contact me off list. My Home Page with free online legal information Page perso avec liens juridiques http://www.lexnet.bravepages.com/ind.htm _ FindLaw - Free Case Law, Jobs, Library, Community http://www.FindLaw.com Get your FREE @JUSTICE.COM email! http://mail.Justice.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
[ANN] Game Available for Test
Greetings List: I've recently been working on a small game called KodeKraker, a variation of the classic logic game Mastermind. I'd like to invite folks with a few spare moments (!) to take it for a test run. What started out a programming exercise turned into a fairly involved little project. The game features audio feedback, a custom UI (typical Tactile Media eye candy), and a fun little custom dialog system (note: no Flash was used in the making of this game). To grab the game, type the following in your message box: go stack url http://www.tactilemedia.com/test/stacks/kodekraker.mc; The stack runs 285K (folks with slower connections please be patient). Thanks for reporting any problems or otherwise. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Another Script Editing Tip
Scott, Does the handler name ends with a ? work on both platforms? Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ From: Scott Rossi [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 01 Jul 2003 13:52:51 -0700 To: [EMAIL PROTECTED] Subject: Another Script Editing Tip When looking for ways to make script editing more convenient, I found the following to be a simple and easy method which (best of all) allows me to keep the browse tool active -- no need to switch to the pointer tool. Place the following in the stack script: on editScript? if the optionKey is down then edit script of the target exit to metacard end if end editScript? Then in any object whose script you want to edit often, place the line editScript? at the top of its mouseUp handler: on mouseUp editScript? ... ... end mouseUp Now you can quickly edit the script of any object whenever you alt+click (option+click) the object with the browse tool. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Another Script Editing Tip
Recently, Ken Ray wrote: Does the handler name ends with a ? work on both platforms? For me it does. :-) (Maybe not on Linux but I have no idea.) Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design Email: [EMAIL PROTECTED] Web: www.tactilemedia.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: [ANN] Game Available for Test
Scott, Very Cool! Works great on XP. 2nd time thru, used only 5 slotsmust admit to being a bit lucky! ;-) -Chipp -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Scott Rossi Sent: Wednesday, July 02, 2003 7:04 PM To: [EMAIL PROTECTED] Subject: [ANN] Game Available for Test Greetings List: I've recently been working on a small game called KodeKraker, a variation of the classic logic game Mastermind. I'd like to invite folks with a few spare moments (!) to take it for a test run. What started out a programming exercise turned into a fairly involved little project. The game features audio feedback, a custom UI (typical Tactile Media eye candy), and a fun little custom dialog system (note: no Flash was used in the making of this game). To grab the game, type the following in your message box: go stack url http://www.tactilemedia.com/test/stacks/kodekraker.mc; The stack runs 285K (folks with slower connections please be patient). Thanks for reporting any problems or otherwise. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard