Re: calling handlers with keys THANKS!
Geoff, Robert, Klaus and Yennie, thank you all for your replies! After your broad hints I realized that I was missing the concept of recursion ;-( This works fine now: on presentSomeObjects -- do something here send presentSomeObjects to me in 1 second -- or whatever time put the result into gPresentMessage -- allows you to cancel if needed end presentSomeObjects on keyDown pWhichKey -- do something based on the key end keyDown This is a really nice and friendly list! Regards, Uwe ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Temporary picts
If I wanted to show a temporary graphic in Hypercard, I'd use addColor colorPict. I could use this to create 50 duplicate images of a graphic, moving across the screen randomly, leaving a trail of graphics behind. Without needing 50 objects to link the graphics to. Is there a way to do this in Metacard? Show a graphic temporarily, not linked to an object (not requiring that I have 50 or 100 image objects), then be able to wipe the images away with a visual effect? -- --Shareware Games for the Mac-- http://www.gypsyware.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Jeanne's book
Count me in on the list of MetaCard Users who'll purchase a book of examples/tutorials . ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: metacard digest, Vol 1 #133 - 9 msgs
Thanks for the response. But, actually, my question was whether MC treats numerically-indexed arrays in the usual row-column sense that's used for matrix math. As for the question of buying MC or Revolution, there is nothing about Revolution (as appealing as the face lift is) that can justify a switch from MC for me. Greg On Monday, March 18, 2002, at 12:04 PM, metacard- [EMAIL PROTECTED] wrote: To: [EMAIL PROTECTED] From: crob [EMAIL PROTECTED] Subject: Re: Arrays and Matrix Algebra Reply-To: [EMAIL PROTECTED] original message: Arrays and Matrix Algebra Date: Thu, 14 Mar 2002 11:51:31 -0500 From: Gregory Lypny [EMAIL PROTECTED] To: MetaCard List [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Hi Everyone, Just wanted to confirm the correct way to set up arrays to be able to do matrix math. If I have an array named X, does MetaCard treat x[3,4] as the fourth element in the third row of X and x[8,2] as the second element in the eigth row? yes: if you put something into X[n], you can retrieve X[n], if you put something into X[m,n], you can retrieve X[m,n], both with MetaCard 2.4.1 and with Revolution 1.1. The problem is: which to buy? (my subscription to MetaCard has expired :(( ) greets crob ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
image protection
I have developed a MC application for one of the instructors. It allows the user to view images from a huge data base. All the images are in various folders on a CD and are imported and displayed individually. The owner of the images has just realized that the images can be easily copied from the CD. I don't want to try to import all the images into the stack as some form of copy protection as this would make the stack huge and take forever to load. Is there any way to hide, encrypt, whatever, the images so that they are not as easily seen and copied and still keep the actual stack small and fast loading. This stack runs from an autoload, hybrid CD on both Mac and WinDOZ platforms. Thanks Rick ::: :: PLAN!! I'd rather be surprised. :: F.A. (Rick) Rice, Instructor [EMAIL PROTECTED] :: Div. of Sciences and Health Sciences Phone: (250) 828-5424 :: The University College of the Cariboo Fax: (250) 828-5450 :: 900 McGill Road :: Box 3010 :: Kamloops, BC :: V2C 5N3 ::: ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: image protection
Rick, You can compress (zip) the images using MC's compress command, and then when you read them in, uncompress them using the decompress command. For more security, you can base64encode them as well (reverse with base64decode). Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Rick Rice [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 11:20 AM Subject: image protection I have developed a MC application for one of the instructors. It allows the user to view images from a huge data base. All the images are in various folders on a CD and are imported and displayed individually. The owner of the images has just realized that the images can be easily copied from the CD. I don't want to try to import all the images into the stack as some form of copy protection as this would make the stack huge and take forever to load. Is there any way to hide, encrypt, whatever, the images so that they are not as easily seen and copied and still keep the actual stack small and fast loading. This stack runs from an autoload, hybrid CD on both Mac and WinDOZ platforms. Thanks Rick ::: :: PLAN!! I'd rather be surprised. :: F.A. (Rick) Rice, Instructor [EMAIL PROTECTED] :: Div. of Sciences and Health Sciences Phone: (250) 828-5424 :: The University College of the Cariboo Fax: (250) 828-5450 :: 900 McGill Road :: Box 3010 :: Kamloops, BC :: V2C 5N3 ::: ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Trigger Stack Toolbox on console machine
is it possible to a) create a stack that will do stuff, globally make changes to files in a directory etc. then save this to a Unix web host, then b) create a cgi that does this: #! /public_html/cgi-bin/trigger_tools.cgi on startup open stack toolbox # assumes stack is in cgi-bin send rotateAllFooters to stack toolbox ## and or whatever else you want it to do end startUp where, the rotateAllFooters would be some handler created at working at home in the complete UI? Goal would be to consolidate lots of web admin tasks into a single stack rather than develop a dozen separate cgi's.. then simply call those handles with mini cgi that just use send Hinduism Today Sivakatirswami Editor's Assistant/Production Manager [EMAIL PROTECTED] www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: bad token: theID, iconNum, theVis, etc.
--- Klaus Major [EMAIL PROTECTED] wrote: bad token: theID, iconNum, theVis, etc. is what comes up alot esp. when ExplicitVariables() is true. these are close to taken words in MC, but not exactly the same. is this just something you have to deal with by naming your variables in German? not if you are really using german names for the variables ;-) Best from germanski i was being ironisch. i meant the made in Germany as a solution. it seems that choosing ExplicitVariables() = false (so you can apply and exit) then turning off MC, then turning MC back on helps, sometimes. = [EMAIL PROTECTED] http://www.erikhansen.org __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: bad token: theID, iconNum, theVis, etc.
erik hansen wrote: --- Klaus Major [EMAIL PROTECTED] wrote: bad token: theID, iconNum, theVis, etc. is what comes up alot esp. when ExplicitVariables() is true. these are close to taken words in MC, but not exactly the same. is this just something you have to deal with by naming your variables in German? not if you are really using german names for the variables ;-) Best from germanski i was being ironisch. i meant the made in Germany as a solution. it seems that choosing ExplicitVariables() = false (so you can apply and exit) then turning off MC, then turning MC back on helps, sometimes. ExplicitVars is a property, not a function. Any need to quit MC to have it take effect is a bug I've not encountered before, and I turn mine on and off all day. ExplicitVars is useful for debugging, and in some cases can have a very modest performance increase (but very slight and hardly noticeable with MC's overall blinding speed). Everything you need to know about ExplicitVars is well documented, provided you read the entry for it in the MetaTalk Reference. If you're getting words flagged as script errors, look 'em up in the Reference. If they're there you have a keyword conflict -- just change the name and you'll be fine. It's common to preface vars with things like g for global vars to help such cases (it helps readability too -- see http://www.fourthworld.com/embassy/articles/ScriptStyle.html). If they're not in the reference and you still don't know why they're causing script errors, quoting the full line here will be much more useful for being able to help you than posting the word by itself. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Temporary picts
if you are importing custom icons from HC, they will wind up in their own Stack BackGround. Go to Edit BackGrounds and click on HC Icons in the Stack Backgrounds window right below the Card Groups window. --- Scott Rossi [EMAIL PROTECTED] wrote: On Monday, March 18, 2002, at 04:43 AM, Shari wrote: If I wanted to show a temporary graphic in Hypercard, I'd use addColor colorPict. I could use this to create 50 duplicate images of a graphic, moving across the screen randomly, leaving a trail of graphics behind. Without needing 50 objects to link the graphics to. Is there a way to do this in Metacard? Show a graphic temporarily, not linked to an object (not requiring that I have 50 or 100 image objects), then be able to wipe the images away with a visual effect? One way is buttons. You won't need 50 image objects, but you will need 50 button objects, of which you set the icon to the ID of whatever source image you have. set the icon of btn movingBtn1 to the id of img sourceImg repeat with x = 2 to 50 clone btn movingBtn1 set the name of last btn to (movingBtn x) end repeat You should wind up with 50 buttons all referencing the same source image (make sure you disable all the properties of the original button so it doesn't look or respond like a button object). Regards, Scott Rossi Creative Director, Tactile Media [EMAIL PROTECTED] http://www.tactilemedia.com = [EMAIL PROTECTED] http://www.erikhansen.org __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: bad token: theID, iconNum, theVis, etc.
(thetarg is in the propertynames) = false local theTarg put the target into theTarg local: name shadows another variable or constant line:27 column:3 bad token: theTarg Handler: error in command Handler: error in handler this occured AFTER i had worked my way down half of the script localizing all local variables. all of a sudden in the middle of the page it jumped back to theTarg at the top. capricious. Reference has 3 lines on the explicitVariables property, but less info than in your communication. declaring all local variables does clarify things, and a few glitches did turn up. = [EMAIL PROTECTED] http://www.erikhansen.org __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: bad token: theID, iconNum, theVis, etc.
In an effort not to overlook anything... to share a local variable among several handlers, you must declare it outside of all handlers, and above all the ones meant to share it. Like this: stack script local theTarg on mouseUp put the target into theTarg send thud to me in 1 sec beep end mouseUp on thud answer The recent target was theTarg . end thud end of script If the local is declared within the confines of a handler, its scope is that handler only. Just a thought... Phil - Original Message - From: erik hansen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 6:51 PM Subject: Re: bad token: theID, iconNum, theVis, etc. (thetarg is in the propertynames) = false local theTarg put the target into theTarg local: name shadows another variable or constant line:27 column:3 bad token: theTarg Handler: error in command Handler: error in handler this occured AFTER i had worked my way down half of the script localizing all local variables. all of a sudden in the middle of the page it jumped back to theTarg at the top. capricious. Reference has 3 lines on the explicitVariables property, but less info than in your communication. declaring all local variables does clarify things, and a few glitches did turn up. = [EMAIL PROTECTED] http://www.erikhansen.org __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.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: bad token: theID, iconNum, theVis, etc.
Richard Gaskin wrote: The jumping script editor scroll is a known bug, addressed in 2.4.2. I was hoping. But I just downloaded 2.4.2b3 the other day and it is still there. Drives me nuts. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: bad token: theID, iconNum, theVis, etc.
The jumping script editor scroll sounds like the Shorty George, the Texas Tommy, or the Big Apple... by jump back i mean that apply goes to line 27 where it was going to line 192, and it keeps going back there even after i set explicitVars to false and put all the local theTargand all other local variables above the handlers in the script and deleted every following instance of a local theTarg in following script. (they do not like you to declare a local variable twice). set explicitVars to true and i still get bad token: theTarg in line 27. --- Richard Gaskin [EMAIL PROTECTED] wrote: erik hansen wrote: (thetarg is in the propertynames) = false local theTarg put the target into theTarg local: name shadows another variable or constant line:27 column:3 bad token: theTarg Handler: error in command Handler: error in handler this occured AFTER i had worked my way down half of the script localizing all local variables. all of a sudden in the middle of the page it jumped back to theTarg at the top. capricious. Reference has 3 lines on the explicitVariables property, but less info than in your communication. declaring all local variables does clarify things, and a few glitches did turn up. The jumping script editor scroll is a known bug, addressed in 2.4.2. Is it jumping to line 27 -- is that line 2 that you've copied above? -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 1.9: Publish any Database on Any Site = [EMAIL PROTECTED] http://www.erikhansen.org __ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Arrays and Matrix Algebra
Message: 1 Date: Mon, 18 Mar 2002 12:17:49 -0500 Subject: Re: metacard digest, Vol 1 #133 - 9 msgs From: Gregory Lypny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Thanks for the response. But, actually, my question was whether MC treats numerically-indexed arrays in the usual row-column sense that's used for matrix math. As for the question of buying MC or Revolution, there is nothing about Revolution (as appealing as the face lift is) that can justify a switch from MC for me. Greg I don't understand very well what you mean, btw try this: --- #matrix4 #button go global matrix,m,n,out on mouseUp put 3 into m put 4 into n put 1 into x repeat with i=1 to m repeat with j=1 to n put x into matrix[i,j] put x+1 into x end repeat end repeat put empty into out repeat with i=1 to m repeat with j=1 to n put matrix[i,j] after out end repeat put return after out end repeat put return after out put out end mouseUp --- is this what you want? as for MetaCard or Revolution, it is a matter of price: maybe upgrading from old MC to Rev is cheaper tha from old MC to 2.4.1? who knows? bye crob ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard