Random sounds...
Hi every1, As a recent (very enthusiastic!) convert to Metacard from Hypercard in the old days, my question may seem a bit easy (considering the atom-splitting work done recently by the listers!!) Taking Jacqueline's advice I converted an old Hypercard stack to Metacard assuming it would also import the 50 or so snd files (in System 7 Mac mode). It didn't but that wasn't a big deal (Sound 7 and AIFF files I found take up about the same amount of space) just a bit of reformatting. My program (as if it's worthy of the name) simply plays (from a PLAY button) a random sound (animal noises etc..) from the SoundList field I created. No worries...worked great! However, when I tested it on the pre-schoolers (talk about a TOUGH crowd!) they wanted to hear it again before proceeding.. my current (enormous) code is play (any line of card field SoundList) my question...if I make a button called say REPEAT? how do I get Metacard to replay the directly previous sound from the SoundList field? Sorry to bother gurus with such trivial q's... Cheers, Kevin Phyland Wycheproof P-12 College. This message was sent from http://australia.edu Check out the new international site at http://australia.edu/international ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Compiling for Windows
Scott Raney wrote: On Sun, 29 Sep 2002 J. Landman Gay [EMAIL PROTECTED] wrote: On 9/28/02 12:24 PM, Ray Horsley wrote: I've encountered two issues in making my Windows App. The first one is doing something about Window's propensity to open a second copy of my App if it's double-clicked again after a first copy is already running (instead of the Mac's more reasonable approach of bringing the first copy forward). This comes up on the list so often...Scott, is there any way that MetaCard could help handle this situation? Any Windows property it could report or some other way to prevent it? I think what is required here is an attitude adjustment rather than some sort of engineering change. Repeat after me: Windows is not MacOS. Starting up multiple copies of an app is the the way it's *supposed* to work if that's what the user wants. If you've designed your app such that it breaks when you start up multiple copies, you should probably work on fixing your app rather than trying to change the way Windows (or UNIX) works ;-) While I understand the HIG specs, the problem is that without MDI we need to create workarounds for apps that could benefit from that model. Any idea of a timeline for MDI support? -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 2.0: 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: copying from a field to paste into word?
On Sun, 29 Sep 2002 eric engle [EMAIL PROTECTED] wrote: I would like to copy a field and paste it into a word document - and retain the text format. Can this be done in metacard? I can copy and paste fine but the formating is lost. I think this is inevitable, but if there is a way to copy text by hand or programmatically such that it saves the format I would really appreciate knowing! The bad news is that there isn't now, but the good news is that this is supported in 2.5 which we will start public testing for in a couple of weeks (or so). Regards, Scott Thanks in advance Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Compiling for Windows
While I understand the HIG specs, the problem is that without MDI we need to create workarounds for apps that could benefit from that model. Not sure what this has to do with starting multiple copies of an app up: even apps that support MDI work this way... Any idea of a timeline for MDI support? Not really, unfortunately. This was originally scheduled for 2.5, but got pushed back when we cut several months off the 2.5 schedule at RR's request. But it will end up near the top of the to-do list for the next release after 2.5. Regards, Scott -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 2.0: Publish any database on any site ___ [EMAIL PROTECTED] http://www.FourthWorld.com Tel: 323-225-3717 AIM: FourthWorldInc Scott Raney [EMAIL PROTECTED] http://www.metacard.com MetaCard: You know, there's an easier way to do that... ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Compiling for Windows
Scott Raney wrote: While I understand the HIG specs, the problem is that without MDI we need to create workarounds for apps that could benefit from that model. Not sure what this has to do with starting multiple copies of an app up: even apps that support MDI work this way... Try Word. Any idea of a timeline for MDI support? Not really, unfortunately. This was originally scheduled for 2.5, but got pushed back when we cut several months off the 2.5 schedule at RR's request. But it will end up near the top of the to-do list for the next release after 2.5. Cool - thanks. -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 2.0: 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: Random sounds...
On Monday, September 30, 2002, at 08:22 PM, [EMAIL PROTECTED] wrote: However, when I tested it on the pre-schoolers (talk about a TOUGH crowd!) they wanted to hear it again before proceeding.. my current (enormous) code is play (any line of card field SoundList) my question...if I make a button called say REPEAT? how do I get Metacard to replay the directly previous sound from the SoundList field? There would be a number of methods, but here's one idea... Script line #1: global theRandomNumber Here we're declaring a global variable - what this does is lets us use this variable, and the value that's stored in it, in every script, anywhere, whether it's another button, field, card, or stack. Script line #2: put random( the number of lines of card field SoundList ) into theRandomNumber This puts a random number from 1 to the number of lines of the field SoundList into the variable named theRandomNumber. Script line #3: play (line theRandomNumber of card field SoundList) Very similar to before. Now, make a new button, maybe named Repeat, and put in these two lines of script: global theRandomNumber play (line theRandomNumber of card field SoundList) Here we're using carbon copies of our old script, but just excluding the line of script that got a new random sound. Hopefully this was explained well enough. Good luck with MetaCard, glad to have you on board! P.S. You can get rid of that ugly card word by turning off hcAddressing as described in a previous post. You can simply delete the word card from every line of script above. -- Go Bison! http://www.karlbecker.com ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Converting Hypercard language
On Sun, 29 Sep 2002 J. Landman Gay [EMAIL PROTECTED] wrote Is there a possibility to convert the pasted card to get rid of the Hypertalk terminology (apart from rebuilding the card from scratch by creating a new card with new controls and new scripts)? Set the hcaddressing of this stack to false Thanks so much! I see, my fault was to search for hyper in the help index and not for hc. For that matter, the two entries about Hypercard in the Metacard reference have no crosslinks to hc. hcaddressing and hcstack both have a link to Hypercard and Supercard Compatibility, but not the other way round. Also I noticed, there is no entry for player in the help index. Maybe in one of the next updates parts of the help system could be improved for enhanced usability? Regards, Wilhelm Sanke ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
RE: Compiling for Windows
Scott Raney wrote: While I understand the HIG specs, the problem is that without MDI we need to create workarounds for apps that could benefit from that model. Not sure what this has to do with starting multiple copies of an app up: even apps that support MDI work this way... Try Word. Yes! I noticed this a while back, and it is very disconcerting. If I open Word then open what I think is another instance of Word, then quit it, the first instance quits as well. However, if I try the same thing in Excel, the first instance remains running. This is very inconsistant UI behavior (mis-behavior). As for what this means for Metacard, I don't know. We used to have consistency within a given platform, on the Mac launching an already running app does not start a new instance (which is why I have 4 sequentially named copies of Bolo on my mac :-) ), so thats what Metacard should do on the Mac. On windows new instances are launched, so thats what Metacard should do on Windows, however, now Microsoft has screwed up this formerly consistant behavior. -Glen Yates ___ metacard mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/metacard
Re: Compiling for Windows
Yates, Glen wrote: We used to have consistency within a given platform, on the Mac launching an already running app does not start a new instance (which is why I have 4 sequentially named copies of Bolo on my mac :-) )... Speaking of Bolo: Have you ever found yourself daydreaming of writing a networked Bolo-like game in MC? -- Richard Gaskin Fourth World Media Corporation Custom Software and Web Development for All Major Platforms Developer of WebMerge 2.0: 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: checking for Internet connection/testing upstream viability
We sure could also use some definitive answer to this also. I am currently using what, by trial and error, seems to be the least "blocking", DNS test on testNetConnection if HostNameToAddress("www.gurudeva.dynip.com") is not empty then hilite button "Connected" of stack "Transcription Processor" else unhilite button "Connected" of stack "Transcription Processor" end if end testNetConnection What would be really useful would be a list of all 'blocking" and "non-blocking" tests for a connection. Presumably this could be/is already (??) precisely the current blocking and non blocking calls of the latest libURL? i.e. if one uses "load URL" and tests for results you won't tie up the machine, but if you use "get URL' and there is no net connection, you will tie up the machine?? (not tested) HostNameToAddress doesn't seem to tie up my machine (Titanium, OSX, jaguar) at all if I disconnect from the net (unplug ethernet cable to the LAN) and issue a testNetConnection to test. Feedback is instantaneous. I dismiss the dialog and go back to typing, not even a burp lag. Hopefully this emulates the modem/phone configuration of a low band width user. On a related but slightly OT issue, testing for upstream connectivity: "how far can you see on the net" vs "are you connected" is equally important. Sometimes I can get sites in Russia and sometimes not and it seems to be DNS problems, so I am presuming the reverse could be true for someone in another country trying to get through to our US server (s). So, I was using "www.yahoo.com" but switched to a more obscure domain name that (hopefully) forces the DNS to get resolution further upstream, from a California server, instead of an India server (which most certainly will have yahoo.com but not necessarily the IP for our server in San Diego) in this case the editor using the app is in Chennai (Madras, India) . I really am just guessing about how DNS really works, But. I didn't want the user to get DNS for yahoo.com from their India ISP and then have libURL turn around and fail to open a socket to the US. So, since failure for DNS didn't tie up the machine, giving instant feedback, I put in the distant domain thereby averting the user going too far and getting frustrated with subsequent failures even though they were connected. I realize that getting DNS certainly isn't proof that the server is "up" at all, but at least we are part way thereThough, I am told, I could be constructing a ghost, and this is all mute, since DNS is globally distributed and ( young cybernauts tell me) *any* server doing DNS should have ALL domain names and their IP's for the whole universe, every 72 hours -- sounds impossible An (obviously) even more solid check, if server is fixed, would be to download a semaphore file "yes.txt" and, if successful, carry on... Any smooth, rock solid, perfectly clear improvements in this area will be very welcome. Sivakatirswami Himalayan Academy Publications On Sunday, September 29, 2002, at 06:04 AM, [EMAIL PROTECTED] wrote: However, I'm not sure if it will let you distinguish between a timeout as a result of a server error or a lack of an internet connection. Cheers Dave