like pass, but without ending the handler
If you have a handler that needs to do something after letting the message proceed along the message path, here¹s a pithy way: call the params of the owner of me One example scenario involves a newGroup handler that needs its owner¹s more general handler to run before the more specific handler can finish its task. For a demonstration, try the following: 1. create a new main stack and give it this script: on foo p1,p2,p3 put hello from me with the params cr after msg end foo 2. give the card this script: on foo p1,p2 put call the params of the owner of me put hello from me with the params cr after msg end foo 3. in the message box, enter foo 1,2,3 without the quotes 4. see the following: hello from stack Untitled 1 with foo 1,2,3 hello from card id 1002 with foo 1,2,3 It works for me. If you find a case where it doesn't, please let me know. Or is there a better way for an initialization handler to invoke its parents without skipping remaining statements? -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bar Code Generation and reading
Thanks very much for the replies. After trying some of this, and after some help from the kbarcode author, it seems to be down to how I was saving copying and printing. Maybe this will be useful to someone else struggling with this stuff. Kbarcode is a wonderful tool - it generates codes of all kinds, puts in the prefixes and suffixes, does the checksums where the code requires, does label layout and printing for every kind of label format there is. It also will either print directly, or let you save in lots of graphics formats. So it should do the prefix stuff you describe. What I had done was save in pbm (and one or two others) format. I then imported into OpenOffice, using the presentation package, for layout. To get it laid out properly I resized the graphics. They didn't work. However, printing directly from kbarcode turned out to work, and after enough experimentation, once or twice, one or two of the pbms printed from OO worked if I tried often enough from enough angles. It seems that doing all this, though it results in visually perfectly acceptable codes, somehow loses resolution. So there are two possible ways of doing it. The first way is to do your resizing in kbarcode, and then print either directly from kbarcode, or else import the code into the OO presentation package but not change it at all while doing so. The second way, which the developer suggested as an alternative (very helpful guy by the way), would be, generate a really huge version of the code, and then downsize it. I haven't tried this since the first alternative seems to work. The thing that is still deeply puzzling is the question of barcode fonts. Maybe this relates to your comments? I have a few free ttf ones, all code 39. One from ID Automation. I downloaded them, and they display on the desktop or font viewer like any other font, showing icons for bar codes, or showing all the different sizes in the viewer. I imported them into OO. They appear in the font list and you can type in your code, put in the prefix and suffixes as you guys instructed, select it, and then apply the font, just as if they were Times New Roman or whatever. Nothing happens! It still says (eg) *1234*, though when you select it, OO is telling me that it is indeed a bar code font. I did print preview, just in case, and it still shows *1234* in what looks like my standard font. I printed to a pdf, same thing. Also, in the font selection menu, all other fonts show up with representations of how they are going to look, whereas the bar code fonts don't. So how, if you have a real barcode font, do you get to use it??? There must be a childishly simple answer to this one. Peter ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Droplets and AppleEvents
Hi, Thanks a lot Jim. It's first thing in the morning here and I haven't quite woken up - not enough tea flowing through my system yet! I'm not 100% sure what you mean here. I have a Standalone App that has a Splash Screen Place Holder, this loads and then calls another stack, then depending on what the user does, other stacks will be opened/closed etc. From looking at what you wrote below, I am guessing that you mean I should have one object (in a separate stack file?) with a Script that has the appleEvent handler in it? This would be doable in my case, but I would have have the appleEvent handler object in the Splash Screen Stack and obviously not close it anymore. Also I'm not sure if I should be using frontScripts or backScripts. I want this handler to take priority over any other appleEvent handlers and I don't want them to get the appleEvent message. In this case should I add the object to the frontScripts and then NOT pass the message? I'm playing with this now but any suggestions or advice would be greatly appreciated. Thanks a lot All the Best Dave On 27 Feb 2007, at 19:09, Jim Ault wrote: On 2/27/07 9:40 AM, Dave [EMAIL PROTECTED] wrote: Hi Jim, Ok, that's a good idea. What I would like is to be able to have just one place that handles AppleEvents, I can ship the commands off to wherever they are needed myself (I already have the mechanism for this). How can I use backScript I've never used it before and not really sure how I would go about setting this up. Very easy. The docs show this under backfrontremove the backscripts put the script of btn scriptHolder into back answer the backscripts remove the script of btn scriptHolder from back answer the backscripts or put the script of fld dummyInvis into back answer the backscripts remove the script of btn scriptHolder from back answer the backscripts Sort of like the hokey pokey... you put your back script in, you take your back script out. Standalones are allowed 10, the dev environment is unlimited. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Groovy Graphic Demos
Hi Barry, Yes, I had the same problems. I was asked to write such a small arts software for a client (to do what would have then have been a very nifty whiteboard application). Well, this got me embarrassed when I had to explain I could do nothing about it. Is there a bug in quality center on this? A related one I did enter is: http://quality.runrev.com/qacenter/show_bug.cgi?id=4094 But there, the problem was in part due to a problem in my own code because I didn't read the doc carefully enough (well, we all err). It may be worth adding a request for enhancement specially on this loss of quality when flipping and image. Then another one for the filling report. If you can provide a demo stack to speed up confirmation, all the better. Marielle On 28 Feb 2007, at 07:48, barryb@@libero..it wrote: Having already viewed or downloaded all these graphical marvels, can any one tell me why I cannot import a simple transparent b/w outline image, in png or gif format, to a stack (Media Studio)and then floodfill a color or flip-it without it deteriating into something that looks like it has been dragged through a hedge backwards? The stack I am trying to develop only has to do these two operations; something I find any kid's art application can do nicely. My 5yo grandson would be very grateful if someone can solve this for me! Cheers Barry -- Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada28eb07 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution Marielle Lange (PhD), http://widged.com Bite-size Applications for Education ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Umlaut
Hello Perhaps someone of you may find a better solution to a small problem. I need to have the letter n with umlaut (tréma) in a text fld set to an ordinary textfont (verdana). So far I have used the imagesource, but I would like to know if there is a font (among those always present on both Mac and Windows) which will accomplish the same. Signe Marie Sanne___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Hi Signe Marie, Hello Perhaps someone of you may find a better solution to a small problem. I need to have the letter n with umlaut (tréma) in a text fld set to an ordinary textfont (verdana). So far I have used the imagesource, but I would like to know if there is a font (among those always present on both Mac and Windows) which will accomplish the same. On the Mac numtochar(150) will create this n with a trema in Verdana and other fonts. Or manually with the keyboard: 1. ALT-n and 2. n At least here on my german system. Not booted my PC yet :-) Signe Marie Sanne Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Hi Dick, Why don't you use different handler names? in stack: on stackHandler p1,p2,p3 -- do something end stackHandler on cardHandler p1,p2,p3 stackHandler p1,p2,p3 -- do something here end cardHandler If the card doesn't contain a cardHandler script, you can run the stackHandler script by including the cardHandler in the stack script: on cardHandler p1,p2,p3 stackHandler p1,p2,p3 end cardHandler Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 9:11 heeft Dick Kriesel het volgende geschreven: If you have a handler that needs to do something after letting the message proceed along the message path, here’s a pithy way: call the params of the owner of me One example scenario involves a newGroup handler that needs its owner’s more general handler to run before the more specific handler can finish its task. For a demonstration, try the following: 1. create a new main stack and give it this script: on foo p1,p2,p3 put hello from me with the params cr after msg end foo 2. give the card this script: on foo p1,p2 put call the params of the owner of me put hello from me with the params cr after msg end foo 3. in the message box, enter foo 1,2,3 without the quotes 4. see the following: hello from stack Untitled 1 with foo 1,2,3 hello from card id 1002 with foo 1,2,3 It works for me. If you find a case where it doesn't, please let me know. Or is there a better way for an initialization handler to invoke its parents without skipping remaining statements? -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Klaus, That's a tilde, not a trema/umlaut. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 11:34 heeft Klaus Major het volgende geschreven: Hi Signe Marie, On the Mac numtochar(150) will create this n with a trema in Verdana and other fonts. Or manually with the keyboard: 1. ALT-n and 2. n At least here on my german system. Not booted my PC yet :-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: If statements vs case
Sure, Hershel, nested switch control structures are possible, just like nested if-then-else control structures. switch myVar case 1 case 2 -- do something break case 3 switch myVar2 case a -- do something break case b -- do something else break default -- do something end switch default -- do something else end switch Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 2:45 heeft Hershel Fisch het volgende geschreven: On 2/27/07 4:53 PM, Mark Schonewille [EMAIL PROTECTED] talk.com wrote: Thanks, I saw it after I asked sorry about that. But by the way besides speed I think there is an additional difference which I think is the nested if's, vs. case I don’t think this is possible Thanks, Hershel ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: writing to external file from Windows standalone: empty files
Hi Curt: I would not think it is a permissions issue if you are successfully creating the file (albeit without content). I think Bill is right...it is the open file statement. The following works for me on XP, without opening or otherwise preparing vTargetFile for appending. put vContent into URL vTargetFile ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Hi Signe Marie and Mark, Klaus, That's a tilde, not a trema/umlaut. Oops, my mistake, sorry for that :-/ Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 11:34 heeft Klaus Major het volgende geschreven: Hi Signe Marie, On the Mac numtochar(150) will create this n with a trema in Verdana and other fonts. Or manually with the keyboard: 1. ALT-n and 2. n At least here on my german system. Not booted my PC yet :-) Regards Klaus Major [EMAIL PROTECTED] http://www.major-k.de ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Hello Klaus and Mark Thanks for the reply, so far no good. I thought that perhaps there might be a unicode solution, or a solution with putting the trema atop the n in some way or other. Other suggestions? Signe Marie Den 28. feb. 2007 kl. 11:53 skrev Mark Schonewille: Klaus, That's a tilde, not a trema/umlaut. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 11:34 heeft Klaus Major het volgende geschreven: Hi Signe Marie, On the Mac numtochar(150) will create this n with a trema in Verdana and other fonts. Or manually with the keyboard: 1. ALT-n and 2. n At least here on my german system. Not booted my PC yet :-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
What will the Umlaut N represent? I am trying to find references to that character and so far (I haven't looked within IPA) I haven't seen it. What language Is the character supposed to be used in? Thanks, Marc Siskin Manager, Modern Language Resource Center Carnegie Mellon University [EMAIL PROTECTED] On Feb 28, 2007, at 5:03 AM, Signe Marie Sanne wrote: Hello Perhaps someone of you may find a better solution to a small problem. I need to have the letter n with umlaut (tréma) in a text fld set to an ordinary textfont (verdana). So far I have used the imagesource, but I would like to know if there is a font (among those always present on both Mac and Windows) which will accomplish the same. Signe Marie Sanne___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
It is used in the orthography for the Indian dialect Boruca, spoken by only few inhabitants in Costa Rica. I'm making a language/research program for a colleague of mine from Costa Rica, who is professor at our Spanish department. Signe Marie Sanne Den 28. feb. 2007 kl. 13:05 skrev Marc Siskin: What will the Umlaut N represent? I am trying to find references to that character and so far (I haven't looked within IPA) I haven't seen it. What language Is the character supposed to be used in? Thanks, Marc Siskin Manager, Modern Language Resource Center Carnegie Mellon University [EMAIL PROTECTED] On Feb 28, 2007, at 5:03 AM, Signe Marie Sanne wrote: Hello Perhaps someone of you may find a better solution to a small problem. I need to have the letter n with umlaut (tréma) in a text fld set to an ordinary textfont (verdana). So far I have used the imagesource, but I would like to know if there is a font (among those always present on both Mac and Windows) which will accomplish the same. Signe Marie Sanne___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Looking through the Character Palette on my Mac, I see a character called Combining Diaresis which seems to be some kind of 'standalone' umlaut. It has the Unicode value '0308' and the UTF8 value of 'CC88'. According to Wikipedia In Unicode, diacritics are always added after the main character. so I think that the following sequence of (decimal) byte values should work as unicodeText: 0 110 3 8 But it doesn't work on my machine - all I get is a solitary n, even thought checking the unicodeText of the fld shows the values above. The same happens using u instead of nperhaps Rev's unicode implementation doesn't support Combining diacriticals, using only 'precomposed' characters? Best, Mark On 28 Feb 2007, at 11:30, Signe Marie Sanne wrote: Hello Klaus and Mark Thanks for the reply, so far no good. I thought that perhaps there might be a unicode solution, or a solution with putting the trema atop the n in some way or other. Other suggestions? Signe Marie Den 28. feb. 2007 kl. 11:53 skrev Mark Schonewille: Klaus, That's a tilde, not a trema/umlaut. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 11:34 heeft Klaus Major het volgende geschreven: Hi Signe Marie, On the Mac numtochar(150) will create this n with a trema in Verdana and other fonts. Or manually with the keyboard: 1. ALT-n and 2. n At least here on my german system. Not booted my PC yet :-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Format of appleEvent data?
Hi, Does anyone know the format of the data returned by the: request appleEvent data command? Specifically I would like to know how the aevt, odoc event data is formatted. It seems to return a something like string funny_chars File Path Thanks a lot All the Best Dave ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Droplets and AppleEvents
Hi, Thanks a lot Jim. It's first thing in the morning here and I haven't quite woken up - not enough tea flowing through my system yet! I'm not 100% sure what you mean here. I have a Standalone App that has a Splash Screen Place Holder, this loads and then calls another stack, then depending on what the user does, other stacks will be opened/closed etc. From looking at what you wrote below, I am guessing that you mean I should have one object (in a separate stack file?) with a Script that has the appleEvent handler in it? This would be doable in my case, but I would have have the appleEvent handler object in the Splash Screen Stack and obviously not close it anymore. Also I'm not sure if I should be using frontScripts or backScripts. I want this handler to take priority over any other appleEvent handlers and I don't want them to get the appleEvent message. In this case should I add the object to the frontScripts and then NOT pass the message? I'm playing with this now but any suggestions or advice would be greatly appreciated. Thanks a lot All the Best Dave On 27 Feb 2007, at 19:09, Jim Ault wrote: On 2/27/07 9:40 AM, Dave [EMAIL PROTECTED] wrote: Hi Jim, Ok, that's a good idea. What I would like is to be able to have just one place that handles AppleEvents, I can ship the commands off to wherever they are needed myself (I already have the mechanism for this). How can I use backScript I've never used it before and not really sure how I would go about setting this up. Very easy. The docs show this under backfrontremove the backscripts put the script of btn scriptHolder into back answer the backscripts remove the script of btn scriptHolder from back answer the backscripts or put the script of fld dummyInvis into back answer the backscripts remove the script of btn scriptHolder from back answer the backscripts Sort of like the hokey pokey... you put your back script in, you take your back script out. Standalones are allowed 10, the dev environment is unlimited. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Best practice question--Protecting auto-loaded Rev stack
I am using the so-called altSplash architecture (standalone executable that loads an un-compiled rev stack) and have a basic best-practices question: What is the best way to protect the rev stack? Stack A: Loader stack (compiled standalone) Stack B: Main stack (uncompiled Rev stack) Stack B2: Substack of Stack B If I set the password of Stack B and B2 to foo, then what do I need to do in the standalone A so that Stack B functions, but without Stack B's scripts being viewable by someone with the Rev IDE installed? Or is it a foregone conclusion that the architecture presumes the Rev stack to be open source? Thnaks Mark ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Hi Mark and Signe Marie, The ability to display combined unicode characters depends on the text engine used by the software. Revolution's text engine is much oder than the invention of combining diaresis. There is a slight possibility that I am wrong, but I don't think that Revolution is able to display combining diaresis in text fields. It is still possible to convert a simple text containing n¨ to correct unicode. Just get the unicodeText from the field and replace all unicode characters representing n¨ with the binary form of the hex value 006ecc88 before writing the data to a file. Looking for a solution, I found a nice set of fonts here: http://scripts.sil.org/cms/scripts/page.php? site_id=nrsiitem_id=CharisSIL_download#277fc10b but guess what: no n-umlaut. Signe Marie, have you thought of creating a special font file with just the characters you need? This shouldn't be too difficult. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 13:54 heeft Mark Smith het volgende geschreven: Looking through the Character Palette on my Mac, I see a character called Combining Diaresis which seems to be some kind of 'standalone' umlaut. It has the Unicode value '0308' and the UTF8 value of 'CC88'. According to Wikipedia In Unicode, diacritics are always added after the main character. so I think that the following sequence of (decimal) byte values should work as unicodeText: 0 110 3 8 But it doesn't work on my machine - all I get is a solitary n, even thought checking the unicodeText of the fld shows the values above. The same happens using u instead of nperhaps Rev's unicode implementation doesn't support Combining diacriticals, using only 'precomposed' characters? Best, Mark On 28 Feb 2007, at 11:30, Signe Marie Sanne wrote: ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Bar Code Generation and reading
Peter, Try doing this with another application (say wordpad). I've had good luck with OO.o, but you might have a font substitution setting or something turned on. Some fonts shift the character set, so the font you have might not work the way you expect it to. I'm not familiar with the fonts you are using, but in the fonts we use, shifting is a problem for some of the characters. -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Hello The ability to display combined unicode characters depends on the text engine used by the software. Revolution's text engine is much oder than the invention of combining diaresis. There is a slight possibility that I am wrong, but I don't think that Revolution is able to display combining diaresis in text fields. Mark you are wrong I think. copy this to a runrev field: np nnñ For finding the chars and their unicode number please run on win the progs charmap.exe in extended view. Search the letter n with ~ or with trema as you like and try the different fonts you have. U+00F1 (latin n with tilde or some of the others) can be used in Arial,Verdana,Times NR etc. on win, I do not know the way to do the same on mac. Regards, Franz ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Quicktime -- Vista
Sivakatirswami- Tuesday, February 27, 2007, 2:01:30 PM, you wrote: We already have associates -- young, but brilliant, Indian Americans in key IT positions, -- in the US telling me I use Ubunto at home. When will Revolution work on that OS? Revolution, of course, works fine on (K)Ubuntu, it's just a couple of major versions behind the times... -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Franz, I think the problem here is that the particular character/ diacritic that we want (n + trema) does not seem to occur as a 'precomposed' character (unlike n + tilde) - and although it can be represented in unicode as a combination of the character followed by the code for the trema, the text rendering engine in Revolution seems to be unable to deal with such combinations. Mark is obviously right that we can create the right code for what we want and write it to a file that some other (more unicode-friendly) application can display correctly, but it seems that we can't display it simply in Revolution. One solution might be to take a snapshot of it in another app, (in the right font and size, of course) and then use the resulting image data in Revolution. A kludge, for sure, but should work. Best, Mark On 28 Feb 2007, at 15:00, [EMAIL PROTECTED] wrote: Hello The ability to display combined unicode characters depends on the text engine used by the software. Revolution's text engine is much oder than the invention of combining diaresis. There is a slight possibility that I am wrong, but I don't think that Revolution is able to display combining diaresis in text fields. Mark you are wrong I think. copy this to a runrev field: np nnñ For finding the chars and their unicode number please run on win the progs charmap.exe in extended view. Search the letter n with ~ or with trema as you like and try the different fonts you have. U+00F1 (latin n with tilde or some of the others) can be used in Arial,Verdana,Times NR etc. on win, I do not know the way to do the same on mac. Regards, Franz ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut
Hi Franz, 00f1 is a single character. We were trying to figure out whether Revolution is able to combine a character with the combining diaresis cc88. In other words, we want to display two different characters in one position, which e.g. Apple's TextEdit is able to do, but Revolution isn't. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 16:00 heeft [EMAIL PROTECTED] het volgende geschreven: Hello The ability to display combined unicode characters depends on the text engine used by the software. Revolution's text engine is much oder than the invention of combining diaresis. There is a slight possibility that I am wrong, but I don't think that Revolution is able to display combining diaresis in text fields. Mark you are wrong I think. copy this to a runrev field: np nnñ For finding the chars and their unicode number please run on win the progs charmap.exe in extended view. Search the letter n with ~ or with trema as you like and try the different fonts you have. U+00F1 (latin n with tilde or some of the others) can be used in Arial,Verdana,Times NR etc. on win, I do not know the way to do the same on mac. Regards, Franz ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Groovy Graphic Demos
Hi Barry, Have you tried to merely paste the image onto a card in your stack. I just went through doing this with over 50 images that were copied from ResEdit - obviously on a Mac OSX and Classic, but it worked fine and the images could subsequently be filled with other colors using the paint bucket tool. If you haven't follow my column at: www.macinstruct.com you might check it out. The completion of the stack to which I'm referring takes place in today's column. You may want to go back and check the previous week's offering. It shows some of the images that were used partially painted. Joe Wilkins On Feb 27, 2007, at 11:48 PM, barryb@@libero..it wrote: Having already viewed or downloaded all these graphical marvels, can any one tell me why I cannot import a simple transparent b/w outline image, in png or gif format, to a stack (Media Studio)and then floodfill a color or flip-it without it deteriating into something that looks like it has been dragged through a hedge backwards? The stack I am trying to develop only has to do these two operations; something I find any kid's art application can do nicely. My 5yo grandson would be very grateful if someone can solve this for me! Cheers Barry -- Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada28eb07 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
On Wed, 28 Feb 2007 00:11:42 -0800, Dick Kriesel wrote: If you have a handler that needs to do something after letting the message proceed along the message path, here¹s a pithy way: call the params of the owner of me That's very cool, Dick! I tried it a number of different ways and couldn't break it, so it looks pretty solid. :-) Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Subject: Re: Copy Paste update
Chipp: In Rev/Linux 2.6.1: 1. If I execute the URL in the message box I get the response No such card. After downloading the stack manually: 2. If I put the stack into the plugins folder, it doesn't appear. 3. If I try to load it into Rev as a common stack, I get There was a problem opening that stack. Could it have something to do with the stack format change from 2.7 onwards? Bob ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Best practice question--Protecting auto-loaded Rev stack
On Wed, 28 Feb 2007 05:10:17 -0800, Mark Powell wrote: I am using the so-called altSplash architecture (standalone executable that loads an un-compiled rev stack) and have a basic best-practices question: What is the best way to protect the rev stack? Stack A: Loader stack (compiled standalone) Stack B: Main stack (uncompiled Rev stack) Stack B2: Substack of Stack B If I set the password of Stack B and B2 to foo, then what do I need to do in the standalone A so that Stack B functions, but without Stack B's scripts being viewable by someone with the Rev IDE installed? Or is it a foregone conclusion that the architecture presumes the Rev stack to be open source? I you set a password, it only protects one from looking at scripts - the locked stack will function just fine. So Stack B and substack B2 will operate the same way as they did before you set the password. Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RunRev and Ubuntu . . .
Mark Weider wrote: Revolution, of course, works fine on (K)Ubuntu, it's just a couple of major versions behind the times... I use RunRev on a full-time basis running content delivery and reinforcement programs - a posh way of saying EFL software for Primary Kids - on Pentium 3s running Ubuntu - super. BUT! because movieClip delivery with RR is dependent on Quicktime, it is effectively a no-go area on Ubuntu. I use silly, little animated GIFs to entertain the tinies; but they suck RAM in a very bad way; and, obviously, you cannot control them in the same 'fine-grained' way you can using QT on Mac OS or Windows. As a result, EFL video segments I use with adult student have to be delivered by RealPlayer; and having video segments that have to be accessed externally to the main teaching program means a lot of teaching time wasted helping busy people who have more important things going on in their lives than having to negotiate themselves round the intricacies of the fairly top-heavy modern GUI (see my Master's thesis for further abusive comments on that topic). Until Runtime Revolution can produce a home-grown component for movie-file delivery on Linux it will not get as far as it should in that GROWING SECTOR. sincerely, Richmond Mathewson A Thorn in the flesh is better than a failed Systems Development Life Cycle. ___ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re-2: Umlaut
Hi Mark, you are right - I am wrong. In a runrev textfield it is not possible to combine the characters you were talking about as you can in notepad on win too. I did it in notepad and pasted it (and even this did only work in half the cases). Perhaps it would the best for runrev they would rework the textfield unicode functions and starting also removing the righttoleft bugs in the textfields for arabic,syriac and hebrew. Copy the syriac phrase in a runrev textfield = (if the syriac text is sent by the mailinglist ...) Regards, Franz Original Messageprocessed by David InfoCenter Subject: Re: Umlaut (28-Feb-2007 16:19) From:Mark Schonewille [EMAIL PROTECTED] To: use-revolution@lists.runrev.com Hi Franz, 00f1 is a single character. We were trying to figure out whether Revolution is able to combine a character with the combining diaresis cc88. In other words, we want to display two different characters in one position, which e.g. Apple's TextEdit is able to do, but Revolution isn't. Best, Mark -- ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Droplets and AppleEvents
On 2/28/07 1:51 AM, Dave [EMAIL PROTECTED] wrote: Thanks a lot Jim. It's first thing in the morning here and I haven't quite woken up - not enough tea flowing through my system yet! I'm not 100% sure what you mean here. I have a Standalone App that has a Splash Screen Place Holder, this loads and then calls another stack, then depending on what the user does, other stacks will be opened/closed etc. From looking at what you wrote below, I am guessing that you mean I should have one object (in a separate stack file?) with a Script that has the appleEvent handler in it? This would be doable in my case, but I would have have the appleEvent handler object in the Splash Screen Stack and obviously not close it anymore. Also I'm not sure if I should be using frontScripts or backScripts. I want this handler to take priority over any other appleEvent handlers and I don't want them to get the appleEvent message. In this case should I add the object to the frontScripts and then NOT pass the message? Remember that closing a stack does not necessarily remove it from memory or keep Rev from accessing it even if the stack has been closed and removed from memory. The idea of the back script is that it can be where the actual working code resides and all other instances are calls to that same script. This makes it a library-type script. One way of doing it is to insert a script from your splash screen card and just not remove it. Another is to have a loop check to see if the script is already in the back, and if not, add it. There is an example of this in the Docs. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut--Success!
On Feb 28, 2007, at 3:03 AM, Signe Marie Sanne wrote: Hello Perhaps someone of you may find a better solution to a small problem. I need to have the letter n with umlaut (tréma) in a text fld set to an ordinary textfont (verdana). So far I have used the imagesource, but I would like to know if there is a font (among those always present on both Mac and Windows) which will accomplish the same. You *can* do this in Rev. Here's how I did it in OS X (I'm using rev 2.8 in OSX 10.4.8): 1. Create a field and set its textfont to a unicode font: set the textFont of fld unistuff to Verdana,unicode 2. Enable the Unicode Hex Input method in the International system prefs under the input tab. This will cause the Unicode Hex Input method to appear in the input menu (the one with the little flags on the right side of the menubar.) 3. Position the insert cursor in the field, choose Unicode Hex Input from the input menu, then type : n (then, holding alt/option key down) 0308 the n with umlaut should appear. Sorry, don't know how to do this via direct input in Windows. However, the following should work on either OS: 1. Create a UTF-8 encoded text file that includes the desired character. I used BBedit, making sure I chose a font that supported unicode (Tahoma or Lucida Grande should work) and that the document encoding was set to UTF-8, then created the n-umlaut character just as I described in #3 above. 2. Save the file to disk. 3. Read it in to your rev fld using the uniencode() function. I've created a stack that shows how to do this. go stack url http://revolution.byu.edu/unicode/testUnicode.rev; You may also want to download the utf-8 file from http:// revolution.byu.edu/unicode/textUni.ut8. This is the file that the sample stack reads from. HTH Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Re-2: Umlaut
runrev at animabit.de wrote: Perhaps it would the best for runrev they would rework the textfield unicode functions and starting also removing the righttoleft bugs in the textfields for arabic,syriac and hebrew. Ouch! That survived v2.8? Any word on when that'll be addressed? Oh, I'm in for a tough conversation with some customers -- Richard Gaskin Fourth World Media Corporation ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Re-2: Umlaut
On Feb 28, 2007, at 10:58 AM, Richard Gaskin wrote: runrev at animabit.de wrote: Perhaps it would the best for runrev they would rework the textfield unicode functions and starting also removing the righttoleft bugs in the textfields for arabic,syriac and hebrew. Ouch! That survived v2.8? Any word on when that'll be addressed? Oh, I'm in for a tough conversation with some customers Richard, I don't think the 2.8/2.9 fixes even addressed the unicode bugs, which are probably shortcomings in the engine that will need to be addressed as a whole. I would be surprised if that issue were even addressed before the next major Rev version. But in the meantime, you can get right to left languages to mostly behave as long as you don't need to support extensive user input. If you only need to support *display* of right to left langs you can do it pretty reliably. In that case you're usually better off to create the text outside of Rev, save as unicode--utf-8 seems to be pretty reliable--and read it into a field. I covered many of the basic unicode issues in my Revcon talk last summer. Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Bar Code Generation and Reading
OK, victory! In the interests of saving anyone else a struggle... When, in Linux, you install a bar code font into OO using spadmin, it doesn't work. The font looks like it is there but it isn't. What you have to use is kfontview. This less than obvious tool opens up a window so small that the install button is obscured in the bottom right corner so you could be forgiven for thinking it is just a font viewer. But you make it bigger and the install button magically shows up. Once you find this out, and do install, the display in OO works just fine, and lo and behold you can type your fonts. You can even see what you are typing because the ascii appears below the ID Automation ones at least. Amazing how complicated such a simple thing can be. Have to say that Rev with a wedge works so simply and easily, given you can get the codes to work, its surprising bar code applications are so scarce and so expensive. There is an opportunity here for you professionals. Peter ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
re: writing to external file from Windows standalone: empty files: solved!
Many thanks to Sarah, Bill, and Mark for your responses - commenting out the 'open file ... for update' line did the trick. Works great now. : ) This was one of the first things I wrote in the project, when I was *really* just starting in Revolution, and I think I used 'open file..' and then 'write to file.' Several sources then recommended using 'put .. into URL..' so I put that in without deleting the 'open file.' The Mac version never minded - I'd made dozens of lists with the Mac standalone - guess Windows was pickier about the syntax. I will probably need to deal with the permissions issue at some point but I'm glad it's not now! -Curt ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut--Success!
Hi Devin, This is great news. I would like to do a few tests, but can't download your utf file. Is the address correct? Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 18:57 heeft Devin Asay het volgende geschreven: You *can* do this in Rev. Here's how I did it in OS X (I'm using rev 2.8 in OSX 10.4.8): 1. Create a field and set its textfont to a unicode font: set the textFont of fld unistuff to Verdana,unicode 2. Enable the Unicode Hex Input method in the International system prefs under the input tab. This will cause the Unicode Hex Input method to appear in the input menu (the one with the little flags on the right side of the menubar.) 3. Position the insert cursor in the field, choose Unicode Hex Input from the input menu, then type : n (then, holding alt/option key down) 0308 the n with umlaut should appear. Sorry, don't know how to do this via direct input in Windows. However, the following should work on either OS: 1. Create a UTF-8 encoded text file that includes the desired character. I used BBedit, making sure I chose a font that supported unicode (Tahoma or Lucida Grande should work) and that the document encoding was set to UTF-8, then created the n-umlaut character just as I described in #3 above. 2. Save the file to disk. 3. Read it in to your rev fld using the uniencode() function. I've created a stack that shows how to do this. go stack url http://revolution.byu.edu/unicode/testUnicode.rev; You may also want to download the utf-8 file from http:// revolution.byu.edu/unicode/textUni.ut8. This is the file that the sample stack reads from. HTH Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
I have a question which is a variant of the same type of thing. Here's what I'm trying to do. I've created (with Chris's help) an application which communicates with Python via text files and callbacks. It basically works like this: Rev writes a Python script to folder 'test' Python polls for script, find it, runs it and writes the result in folder 'test2' Rev reads it and displays the result. In order for Rev to display the result, the originating script generator handler exits, then Rev polls the folder and then reads the result and returns via a 'callback' it to the originating control. So, a basic script on Rev would look like this: on mouseUp -- MY LIBRARY NEEDS tID TO KNOW WHERE TO SEND CALLBACK put the long ID of me into tID -- BELOW HANDLER RESIDES IN MY LIBRARY GetSomethingFromPython tID end mouseUp on receiveCallback pResult answer pResult end receiveCallback So, the question is, how can I write a handler even more generic than above? IOW, without having to have the callback code. I'd prefer to have: on mouseUp put GetSomethingFromPython() into tMyVar end mouseUP Any ideas? best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Could this be of interest to you? http://homepage.mac.com/philip_aker/osa/osa.html Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 21:25 heeft Chipp Walters het volgende geschreven: I have a question which is a variant of the same type of thing. Here's what I'm trying to do. I've created (with Chris's help) an application which communicates with Python via text files and callbacks. It basically works like this: Rev writes a Python script to folder 'test' Python polls for script, find it, runs it and writes the result in folder 'test2' Rev reads it and displays the result. In order for Rev to display the result, the originating script generator handler exits, then Rev polls the folder and then reads the result and returns via a 'callback' it to the originating control. So, a basic script on Rev would look like this: on mouseUp -- MY LIBRARY NEEDS tID TO KNOW WHERE TO SEND CALLBACK put the long ID of me into tID -- BELOW HANDLER RESIDES IN MY LIBRARY GetSomethingFromPython tID end mouseUp on receiveCallback pResult answer pResult end receiveCallback So, the question is, how can I write a handler even more generic than above? IOW, without having to have the callback code. I'd prefer to have: on mouseUp put GetSomethingFromPython() into tMyVar end mouseUP Any ideas? best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut--Success!
On Feb 28, 2007, at 1:21 PM, Mark Schonewille wrote: Hi Devin, This is great news. I would like to do a few tests, but can't download your utf file. Is the address correct? I've created a stack that shows how to do this. go stack url http://revolution.byu.edu/unicode/testUnicode.rev; You may also want to download the utf-8 file from http:// revolution.byu.edu/unicode/textUni.ut8. This is the file that the sample stack reads from. Sorry, the url for the text file should be http://revolution.byu.edu/ unicode/testUni.ut8 (testUni, not textUni). Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Thanks Mark, My issue though isn't with Python, but rather how to create an slick interface callback system for Rev. The idea being I would really like to be able to implement in my library, in process function calls such as: put getThisThing() into t1 put nowGetAnotherThing() into t2 without the developer having to implement a messy callback structure. Not sure if this is even possible. (Or if anyone else could describe a different type of way for handling callback 'in process'?) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Umlaut--Success!
Thanks Devin, I took the data from your file and did a few tests. Eventually, it turned out that the following works: on mouseUp put efff 00e6 3080 into myChars replace space with empty in myChars put binaryEncode(h*,myChars) into myBin set the unicodetext of fld 1 to myBin --set the textFont of char 1 to -1 of fld 1 to Lucida Grande,unicode end mouseUp You need a stack with one field and one button to run this script. Set the script of the button to the above. My observations: - this doesn't work without the signature efff - setting the font of the characters afterwards is not possible - it works with both Verdana and Lucida Grande, but you really have to set the textFont of the field in advance Additional remarks: - above script needs adjustment for Intel machines (both Mac and PC) - my earlier statement saying that it was not possible is wrong. Best regards, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 21:53 heeft Devin Asay het volgende geschreven: On Feb 28, 2007, at 1:21 PM, Mark Schonewille wrote: Hi Devin, This is great news. I would like to do a few tests, but can't download your utf file. Is the address correct? I've created a stack that shows how to do this. go stack url http://revolution.byu.edu/unicode/testUnicode.rev; You may also want to download the utf-8 file from http:// revolution.byu.edu/unicode/textUni.ut8. This is the file that the sample stack reads from. Sorry, the url for the text file should be http:// revolution.byu.edu/unicode/testUni.ut8 (testUni, not textUni). Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Chipp, The software I linked to allows you to run Python with Rev. This means that you can simply get the result frokm the Python script, just like with AppleScript and any other OSA language. This makes the callback unnecessary. If you still need a callback, you could call the script that runs the Python script with send in 0 millisecs and directly after that run a repeat loop with messages. The repeat loop can poll for the file that contains the result of the Python script. When the file is there, continue the handler and return the contents of the new file. function foo put empty into myData send doYourPythonStuff to me in 0 millisecs put 0 into myCounter repeat until (there is a file x) or (myCounter 100) wait 100 millisecs with messages add 1 to myCounter -- at most 10 secs end repeat if there is a file x then open file x read from file x until eof close file x put it into myData delete file x end if return myData end foo Now, the user of your libraries only needs to call the foo() function. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 22:19 heeft Chipp Walters het volgende geschreven: Thanks Mark, My issue though isn't with Python, but rather how to create an slick interface callback system for Rev. The idea being I would really like to be able to implement in my library, in process function calls such as: put getThisThing() into t1 put nowGetAnotherThing() into t2 without the developer having to implement a messy callback structure. Not sure if this is even possible. (Or if anyone else could describe a different type of way for handling callback 'in process'?) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
I suppose you could use shell commands to work with app globals as flags and data holders. This would allow direct set-get of app global vars both ways. There is a description of this in the archives somewhere about 9-10 months ago. Can't remember the original correct-answer poster. This was related to AppleScript var passing. In the message box window, click the 4th icon Global Variables to see which ones Rev currently uses. Not sure if this is what you mean by not a messy callback system Jim Ault Las Vegas On 2/28/07 1:19 PM, Chipp Walters [EMAIL PROTECTED] wrote: Thanks Mark, My issue though isn't with Python, but rather how to create an slick interface callback system for Rev. The idea being I would really like to be able to implement in my library, in process function calls such as: put getThisThing() into t1 put nowGetAnotherThing() into t2 without the developer having to implement a messy callback structure. Not sure if this is even possible. (Or if anyone else could describe a different type of way for handling callback 'in process'?) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Hey Mark, I'm actually interfacing with a Python scripting tool already embedded in a 3-D application. Plus it's on WinXP as well. Your wait with messages is probably the ticket. I had thought of something similar but discarded as I just don't know if it's 'blocking' when it's being called from within a different handler. IOW, the original handler must stay in a suspended state until the library returns a value and thus 'locks up' the interface. I really don't know, guess I need to do some mock-ups. I also need to work out the fail-safe and error correction stuff. I suppose I'll also need stop it now button which will exit the loop, assuming the interface isn't 'Locked Up.' The button would write a file which the library is looking for. This gives me something to work with. Thanks a bunch :-) best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Subject: Re: Copy Paste update
Yes, it is a 2.7 versioned stack. You should open it in 2.7 and save it as a legacy version and it should work. Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Site for sore eyes
Good idea, but sadly one has to 'sign-up' for the site in order to comment. Bummer. On 2/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Look at this and make your comments! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Mark, Your solution works great. I can continue to work with Rev while the script is processing. Multi-threaded? Close. -Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: If statements vs case
On 2/28/07 6:00 AM, Mark Schonewille [EMAIL PROTECTED] wrote: Sure, Hershel, nested switch control structures are possible, just like nested if-then-else control structures. Thanks, Hershel switch myVar case 1 case 2 If this = to Case 1 or 2 and the and will work the same Case 1 and 2 -- do something break case 3 switch myVar2 case a -- do something break case b -- do something else break default -- do something end switch default -- do something else end switch Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 28-feb-2007, om 2:45 heeft Hershel Fisch het volgende geschreven: On 2/27/07 4:53 PM, Mark Schonewille [EMAIL PROTECTED] talk.com wrote: Thanks, I saw it after I asked sorry about that. But by the way besides speed I think there is an additional difference which I think is the nested if's, vs. case I don¹t think this is possible Thanks, Hershel ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Chipp Walters wrote: Hey Mark, I'm actually interfacing with a Python scripting tool already embedded in a 3-D application. Plus it's on WinXP as well. Your wait with messages is probably the ticket. I had thought of something similar but discarded as I just don't know if it's 'blocking' when it's being called from within a different handler. IOW, the original handler must stay in a suspended state until the library returns a value and thus 'locks up' the interface. I really don't know, guess I need to do some mock-ups. I also need to work out the fail-safe and error correction stuff. I suppose I'll also need stop it now button which will exit the loop, assuming the interface isn't 'Locked Up.' The button would write a file which the library is looking for. I was going to suggest something similar, since I had to do it once. It's a last-resort kind of thing though, because it can really crank up the CPU and is in the same precautionary category as polling the mouse. But sometimes there's no other way. The repeat loop will block the calling handler, which is what you want. The important part is the wait time with messages, which allows user input to occur simultaneously. That will allow you to put in a stop button. But while wait with messages does allow the messages to happen, it does not allow them to be acted on. They will pile up in a queue until the loop is exited. Some of them, anyway. I think some were just lost. What I did was check for a mouseclick inside the repeat loop and if it occured, do a click at the clickloc and then exit the loop: repeat until condition: time, file exists, etc. if there is a file whatever then -- do stuff exit repeat -- or return results here if the mouseclick then click at the clickloc exit repeat end if end repeat It's ugly and tempermental but it can be forced to work. I wouldn't ever use this as a first choice solution though. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
I assume that the app you are interfacing with does not support sockets. If it did, then receiving a packet via a socket would be able to trigger a Rev handler (or if blocked, be added to the queue). I use this for async messaging between Rev apps on the same computer. Just a thought Jim Ault Las Vegas On 2/28/07 2:29 PM, Chipp Walters [EMAIL PROTECTED] wrote: Hey Mark, I'm actually interfacing with a Python scripting tool already embedded in a 3-D application. Plus it's on WinXP as well. Your wait with messages is probably the ticket. I had thought of something similar but discarded as I just don't know if it's 'blocking' when it's being called from within a different handler. IOW, the original handler must stay in a suspended state until the library returns a value and thus 'locks up' the interface. I really don't know, guess I need to do some mock-ups. I also need to work out the fail-safe and error correction stuff. I suppose I'll also need stop it now button which will exit the loop, assuming the interface isn't 'Locked Up.' The button would write a file which the library is looking for. This gives me something to work with. Thanks a bunch :-) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Thanks Jim, I assume Python can open sockets back and forth, but there's really not enough information about the apps implementation of it to bother. The text files work well and are easy to debug. Plus, as a 3D app, execution speed isn't critical. best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Here's what I ended up with..Seems to work fine and I don't see any increase in processor usage on XP. Script of btn 1 (the test button) on mouseUp answer getThing() end mouseUp function getThing repeat forever wait 100 millisecs with messages if there is a file C:/test.txt then put URL (file:C:/test.txt) into tResult delete file C:/test.txt beep exit repeat end if end repeat return tResult end getThing Script of btn 2 (the stop now button) on mouseUp put stop Now into URL(file:C:/test.txt) end mouseUp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: If statements vs case
Sorry, what do you mean that IF-ELSE-IF is always evaluated? If you have a 20 line nested IF-ELSE-IF statement and the one that matches your current situation is the 20th one, the previous 19 are evaluated (thankfully Rev uses some short-circuited methods to speed it up) In a SWITCH statement the engine/compiler converts the CASE statements into a hashed lookup table (think fast) and as such when the SWITCH statement is evaluated it just quickly looks up the code to run in the hash table. As I mentioned in my first posting, if you're only using the IF-ELSE-IF statement a few times, you don't have to wait for the SWITCH lookup table to be hashed (adding overhead the first time a SWITCH statement is called) Also mentioned in my first posting, how much of this applies to Revolution in general only they know, as Revolution allows you to some weird things with the SWITCH statements that you couldn't do in other languages (apparently a lot of languages the result of the SWITCH statement can only be an integer) -Sean ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Good. I use text files, too, in part of my scheme since they work very well as long as split second speed and response is not a issue. Jim Ault Las Vegas On 2/28/07 4:23 PM, Chipp Walters [EMAIL PROTECTED] wrote: Thanks Jim, I assume Python can open sockets back and forth, but there's really not enough information about the apps implementation of it to bother. The text files work well and are easy to debug. Plus, as a 3D app, execution speed isn't critical. best, Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
basic standalone question
I've got a stack including scripts that write text data to fields in the stack. Then, if I'm running the stack using StackRunner, for example, on closeStack the stack gets saved so that any updates to text fields are reflected the next time a user opens the stack. With a standalone app version of a stack is there a way to update text fields in the stack and not lose the changes when one closes it? If so, how? Thanks in advance. Sieg Lindstrom ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: If statements vs case
On 2/28/07 7:45 PM, Shao Sean [EMAIL PROTECTED] wrote: Thanks a mill Hershel Sorry, what do you mean that IF-ELSE-IF is always evaluated? If you have a 20 line nested IF-ELSE-IF statement and the one that matches your current situation is the 20th one, the previous 19 are evaluated (thankfully Rev uses some short-circuited methods to speed it up) In a SWITCH statement the engine/compiler converts the CASE statements into a hashed lookup table (think fast) and as such when the SWITCH statement is evaluated it just quickly looks up the code to run in the hash table. As I mentioned in my first posting, if you're only using the IF-ELSE-IF statement a few times, you don't have to wait for the SWITCH lookup table to be hashed (adding overhead the first time a SWITCH statement is called) Also mentioned in my first posting, how much of this applies to Revolution in general only they know, as Revolution allows you to some weird things with the SWITCH statements that you couldn't do in other languages (apparently a lot of languages the result of the SWITCH statement can only be an integer) -Sean ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
On 3/1/07, Chipp Walters [EMAIL PROTECTED] wrote: Here's what I ended up with..Seems to work fine and I don't see any increase in processor usage on XP. Script of btn 1 (the test button) on mouseUp answer getThing() end mouseUp function getThing repeat forever wait 100 millisecs with messages if there is a file C:/test.txt then put URL (file:C:/test.txt) into tResult delete file C:/test.txt beep exit repeat end if end repeat return tResult end getThing Script of btn 2 (the stop now button) on mouseUp put stop Now into URL(file:C:/test.txt) end mouseUp __ I use a similar scheme for inter-application communications, but there is one check that you might need to insert. If you start reading the file before it is completely written to, the file exists but it will be empty. Unless the file can be legitimately empty, then I suggest you add a check for that to your loop as well. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: basic standalone question
On 3/1/07, Sieg Lindstrom [EMAIL PROTECTED] wrote: I've got a stack including scripts that write text data to fields in the stack. Then, if I'm running the stack using StackRunner, for example, on closeStack the stack gets saved so that any updates to text fields are reflected the next time a user opens the stack. With a standalone app version of a stack is there a way to update text fields in the stack and not lose the changes when one closes it? If so, how? Thanks in advance. You might find this article useful http://www.revjournal.com/tutorials/saving_data_in_revolution.html Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
Thanks Sarah, will do. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: like pass, but without ending the handler
So, for posterity's sake here's the final. Here's what I ended up with..Seems to work fine and I don't see any increase in processor usage on XP. Script of btn 1 (the test button) on mouseUp answer getThing() end mouseUp function getThing repeat forever wait 100 millisecs with messages if there is a file C:/test.txt then put URL (file:C:/test.txt) into tResult if tResult is empty then next repeat delete file C:/test.txt beep exit repeat end if end repeat return tResult end getThing Script of btn 2 (the stop now button) on mouseUp put stop Now into URL(file:C:/test.txt) end mouseUp ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Site for sore eyes
Good idea, but sadly one has to 'sign-up' for the site in order to comment. Bummer. At least you don't need an account to just view the site ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
ANN: StackRunner 1.6 Now Available
Just a quick note to let you know that a new version of StackRunner was released today. Version 1.6 is built on Revolution 2.8.0 and provides Universal Binary, PowerPC Only, Intel Only, and Windows builds. For more information, visit the StackRunner web page: http://www.sonsothunder.com/devres/revolution/downloads/StackRunner.htm Thanks! (Now, on to finish RevZilla... :-) Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ANN: StackRunner 1.6 Now Available
Ken- Wednesday, February 28, 2007, 10:35:55 PM, you wrote: Just a quick note to let you know that a new version of StackRunner was released today. Version 1.6 is built on Revolution 2.8.0 and provides Universal Binary, PowerPC Only, Intel Only, and Windows builds. Hooray! (Now, on to finish RevZilla... :-) Otra vez Hooray! -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution