Re: [ANN] Brand NEW altBrowser2!!! Neat new capabilities.
Hi Judy, Chipp, I'm not seeing the pricing info... Where is it? click Buy in the naviagation bar on the left side of the page, et voila!: the prices! It's magic, ladies and gentlemen! :-) http://www.altuit.com/webs/altuit2/altBrowserCover/default.htm Thanks! Judy 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: [ANN] Brand NEW altBrowser2!!! Neat new capabilities.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Major Sent: Wednesday, 1 March 2006 7:04 PM To: How to use Revolution Subject: Re: [ANN] Brand NEW altBrowser2!!! Neat new capabilities. It's magic, ladies and gentlemen! :-) You're a true Warlock Klaus... g Scott ___ 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: search scripts for string
On Feb 28, 2006, at 8:20 AM, Preston Shea wrote: I seem to remember a something (third party? sample script?) somewhere to search all the scripts in a stack for a text string. Does anyone know where this gem might be? Navigator will do this as well: http://www.inspiredlogic.com/navigator Right-click (control-click on a Mac) on any set of controls and in the contextual menu will be options to search the scripts of just the hilited objects, or all the objects they contain. advertising You can also easily search based on any test you like -- find all buttons that aren't 14 pixels tall, find all invisible fields, etc. /advertising regards, Geoff ___ 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] Brand NEW altBrowser2!!! Neat new capabilities.
Hi Scott, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Major Sent: Wednesday, 1 March 2006 7:04 PM To: How to use Revolution Subject: Re: [ANN] Brand NEW altBrowser2!!! Neat new capabilities. It's magic, ladies and gentlemen! :-) You're a true Warlock Klaus... g thank you very much, Scott! :-) Scott Best 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: Counting Chars by ASCI Values
Ken Ray wrote: On 2/28/06 3:57 PM, Jonathan Lynch [EMAIL PROTECTED] wrote: I like the idea of using itemdel as a means of counting - very clever... I was thinking there must be some other immediate means of counting? How about this one? function CountChars pString,pChar replace space with null in pString replace pChar with space in pString return ((the number of words of pString)-1) end CountChars That doesn't work because a sequence of consecutive spaces doesn't cause intermediate null words - the sequence is a single word delimiter. So if you tried to count the :s in asd:::fgh you'd replace it to asd fgh - which word-counting says is the same as asd:fgh. It would also get the wrong answer if there are quotes in the string forming a quoted word. I think it requires a space immediately before the first quote for ti to be considered the start of a quoted word - but once it does form a quoted word, internal spaces are ignored, as is the lack of a space after the second quote. string word count ----- asdfgh 1 as you wanted asdextrafgh 1 again asd extrafgh 3 !! asd extra fgh3 again asd extra fgh 3 again -- Alex Tweedly http://www.tweedly.net No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 27/02/2006 ___ 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: implementing a search function
If you want to go beyond the first character (press 'm' to get all the 'm…' lines, 'a' to get all the 'ma…' lines rather than all the 'a…' lines) it gets trickier, but several people have worked out versions of it. I can't remember quite when, but look in the archives for roughly August of last year . . . So many people come back to this, that it might be something to build into a library? Charles On Mar 1, 2006, at 1:37 AM, Ken Ray wrote: On 2/28/06 11:55 PM, N Cueto [EMAIL PROTECTED] wrote: Hello All, I'd like to make a search function similar to the one for the Rev docs, i.e., as letter by letter is typed in the search field, the indexed list automatically jumps to the corresponding alphabetical location. See: List Fields: Scrolling to a Line on Keypress http://www.sonsothunder.com/devres/revolution/tips/fld003.htm :-) Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [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 ___ 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
Type a text from a palette stack to an external window
There is a way to let Revolution (also via Applescript) may type a text on an external app window (i.e. a text editor)? I've tried using various AS tips to bring the ext. window to the frontmost, but every time the focus remains on the stack (a systemWindow style palette), and typing give back only an error sound. ___ 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: Counting Chars by ASCI Values
In a message dated 2/28/06 6:20:02 PM, Todd Geist [EMAIL PROTECTED] writes: I need to count the number of times a Character occurs in text string. The character will be high or Low ASCII. SO I need to input the value as an ASCII value. Anybody have any scripts that can get me started? The replies you've gotten thus far have used loops to explicitly count the occurences of whatever-character-it-is. Here's a different way to do it, using the replace function, which could be faster: function HowManyCharXs TheText, ASCIIval # TheText is whatever you're interested in counting the characters of # ASCIIval is the ASCII value for the character you want to count put the length of TheText into Fred replace (numToChar (ASCIIval)) with in TheText return (Fred - the length of TheText) end HowManyCharXs This function uses the length of twice for each character-count. If you want to count multiple characters at any one time, it should be possible to speed things up a trifle by eliminating nearly half of the needed the length ofs: function CountManyChars TheText, ASCIIvals # TheText is whatever you're interested in counting the characters of # ASCIIvals is a comma-delimited list of ASCII values for all characters you want to count put the length of TheText into Fred put into Rezultz repeat for each item II in ASCIIvals replace (numToChar (II)) with in TheText put the length of TheText into George put (Fred - George) into item (1 + the number of items in Rezultz) of Rezultz put George into Fred end repeat return Rezultz end CountManyChars Hope this helps... ___ 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: ... how could one create a customized object ... ? (was something else)
Thanks, Dick This is something I have thought about... and, as RR currently stands, I think you would need an image with a bit of scripting, that holds the 3D object data in a custom property and sends that data to an external for processing when the view of the object is changed, then puts the new image data into the image. However, that requires an external. If you wanted to build a true custom object of this sort for RR, would it be possible? ___ 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: Counting Chars by ASCI Values
aha! Using replace twice - awesome Idea! I would write it like this: function CharCount pAsciiChar,pString put numtochar(pAsciiChar) into tCharToCheck put pString into pString2 replace tCharToCheck with empty in pString2 return (the length of pString)-(the length of pString2) end CharCount Awesome thinking Cubist! ___ 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: Type a text from a palette stack to an external window
Paul Consolo asked: There is a way to let Revolution (also via Applescript) may type a text on an external app window (i.e. a text editor)? I've tried using various AS tips to bring the ext. window to the frontmost, but every time the focus remains on the stack (a systemWindow style palette), and typing give back only an error sound. Hi Paul ~ I am relatively new to RunRev, but I just ran into this recently in my own project. I had the same problem with AS, but this is what I did (note this does not include AS routine to transfer text, just activate an external app window: on mouseUp put tell application quote Microsoft Word quote return into tAppleScript put open return after tAppleScript put end tell after tAppleScript do tAppleScript as AppleScript put tell application quote Microsoft Word quote return into tAppleScript put activate return after tAppleScript put end tell after tAppleScript do tAppleScript as AppleScript end mouseUp I tried putting the AScript into one put tell application, but I found the same thing you did... it would launch the Word app, but not bring it to the frontmost app, so I had to tell it to open and then activate in separate tell application statements. I'm sure there is a more concise, elegant way which the experts here on the list will provide. Lynn P. -- View this message in context: http://www.nabble.com/Type-a-text-from-a-palette-stack-to-an-external-window-t1205435.html#a3183270 Sent from the Revolution - User forum at Nabble.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: Type a text from a palette stack to an external window
Hi Lynn, unfortunately this does not work for me. Perhaps the problem is that my stack has a systemWindow style. I've created this property, running it as Applescript: tell application System Events to set frontApp to name of (item 1 of (processes whose frontmost is true)) tell window 1 of application frontApp to activate tell application System Events keystroke Test end tell return frontApp It properly return the name of the text editor that's already open (frontApp), but doesn't bring it really to the front, and fails to type. on 1-03-2006 14:46, Lynn Marie Peterson at [EMAIL PROTECTED] wrote: Hi Paul ~ I am relatively new to RunRev, but I just ran into this recently in my own project. I had the same problem with AS, but this is what I did (note this does not include AS routine to transfer text, just activate an external app window: on mouseUp put tell application quote Microsoft Word quote return into tAppleScript put open return after tAppleScript put end tell after tAppleScript do tAppleScript as AppleScript put tell application quote Microsoft Word quote return into tAppleScript put activate return after tAppleScript put end tell after tAppleScript do tAppleScript as AppleScript end mouseUp I tried putting the AScript into one put tell application, but I found the same thing you did... it would launch the Word app, but not bring it to the frontmost app, so I had to tell it to open and then activate in separate tell application statements. I'm sure there is a more concise, elegant way which the experts here on the list will provide. Lynn P. -- View this message in context: http://www.nabble.com/Type-a-text-from-a-palette-stack-to-an-external-window-t 1205435.html#a3183270 Sent from the Revolution - User forum at Nabble.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 ___ 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
PayPal and Rev update
In my haste to bed the other night, I accidently put up some old [and nasty] cgi scripts. I've updated them. --and in the reg_stack.rev Scott Rossi's PayPal button worked well in development mode, but not under my standalone. I changed it to a revGoURL call and now it works. Also prettied up the auto-code fill-in feature. Now customers don't have to copy and paste the registration code. all the scripts and the reg_stack.rev are available here: http://www.discamus.com/nunc/how/PayPal_setup2.html cheers, tm ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! ___ 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
Counting Chars By ASCII Part 2
Hello Again, After trying several of the excellent suggestions from all you revolutionaries, I realized I hadn't quite explained myself... go figure. So here is another attempt to explain what I am after. I am actually after low ASCII and High ASCII characters that my have snuck into a text file. So I need to look at every character, but I don't need to count every character. I just want the ones that have ASCII values below 32 and above 255 and that are not in a small set of allowed control characters. Based on the suggestions I got on the other thread, I came up with the following that produces the results I am after. SPEED is critical here, since the files I am scanning maybe many mbs. I am wondering if any of you can improve on the design. I feel the need, the need for SPEED. :) put field 1 into tString put 10 11 12 29 into charsToIgnore REPEAT for each char tChar in tString put charToNum(tChar) into tASCII IF (tASCII 31 OR tASCII 255) THEN IF tASCII is not among the words of charsToIgnore THEN add 1 to tCounts[tASCII] END IF END IF END REPEAT put the keys of tCounts into tChars sort lines of tChars numeric REPEAT for each line thisLine in tChars put thisLine TAB tCounts[thisLine] Return after newList END REPEAT put newList into field Chars Thanks in Advance Todd -- Todd Geist __ g e i s t i n t e r a c t i v e ___ 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: Counting Chars By ASCII Part 2
How is the speed on the script you are using? Like, if you use this script on a string of several megabytes, how long does it take to get a result? Since you are testing for a number of possible different characters, you are going to have to use a repeat for each char loop - I think. ___ 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
Do you want to save changes to this stack ..... ?
Hi from Paris, I have a relatively big stack (4000 cards, 6 Mb). When I run it, most times I just do calculations on card 1 whose results are stored on this card. In this case, from my point of view, there are no mods (although I agree that SOME fields on card 1 have changed, but I don't want to save the stack). Sometimes I add data cards, and so I do want to save the stack on exit. You can quit a stack in three ways, by (a) executing a close stack command, (b) by clicking top left (Mac), or (c) by quitting Revolution. Obviously, if I use methods (a) or (b), and answer No to the save request, when I open the stack again in the SAME Revolution session, any mods I made are there, because the stack is still in memory. If I use methods (a) or (b) with no save, and then quit Revolution, I lose my mods. I can go with that - it seems perfectly normal. Questions : 1 - Under what conditions does Revolution ask me the question Do you want to save the changes , or more simply, what constitutes a change ? The answer once seemed clear to me, but maybe there are things I don't know ! As an example, if I change the contents of a field, I get the request to save, but if I change the labels from English to French (by buttons), I don't get the request to save. Yet I made modifications to the stack ! And when I execute the stack again, label modifications have been lost. Curiouser and Curiouser ! 2 - Are the conditions the same under Stack Runner ? And the most important question : 3 - If I consider that I have made no changes, and Revolution doesn't agree, can I bypass the Do you want to save? request (maybe there is a gREV global that I can tinker with) ? ASSUMING the answer to question (3) is YES, I want to handle the save problem myself in the Stack Script : global IveModifiedTheStack on newCard -- I call newCard in a main-line script. create card put 1 into IveModifiedThe Stack end newCard on closeStack if IveModifiedTheStack = 1 then save this stack -- otherwise DON'T save ! end closeStack I tried using saveStackRequest and not passing it, but this doesn't appear to work, and it appears to be called AFTER the Revolution Do you want to save question, thus defeating the object : on saveStackRequest global IveModifiedTheStack if IveModifiedTheStack ≠ 1 then exit saveStackRequest pass saveStackRequest -- Leave Revolution to decide. end saveStackRequest Is this the correct way to attack the problem (I hope all this is clear to you guys) ? Francis ___ 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: Counting Chars By ASCII Part 2
I've come up with this: on anotherOne put fld 1 into tString repeat with n = 1 to 30 if (n = 10 AND n =12) OR n = 29 then next repeat put n tab charCount(n,tString) cr after tList end repeat put tList into fld chars end anotherOne function charCount n,tString put length(tString) into oLen replace numToChar(n) with empty in tString return oLen - length(tString) end charCount Of course this won't find chars 255, but then I have a question - if you insert set the useUnicode to true at the beginning of it, it still works, however if you do the same with your handler, on my system, it takes four time longer, and produces no result. Without the useUnicode setting, surely we're only able to count chars with an ascii value = 255...or have I misunderstood this ascii 1-byte, 2- byte stuff? Mark On 1 Mar 2006, at 15:41, Jonathan Lynch wrote: How is the speed on the script you are using? Like, if you use this script on a string of several megabytes, how long does it take to get a result? Since you are testing for a number of possible different characters, you are going to have to use a repeat for each char loop - I think. ___ 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
Recovering a corrupt file
Hi -- Any hints on recovering a corrupted Rev file? We're using 2.6 on Mac OS 10.4.3 and saving files to a Sun workstation that emulates a Mac server by using a program called xinet. Anyway, when a student's quota is exceeded on the server, there is no error message when his RR stack is saved; however it is corrupt when the student tries to open the stack the next day. By corrupt, I mean that RR won't even begin to open it. One of my students just lost a couple of weeks of work. I can use vi or emacs to directly edit the RR file if I know what to go and fix. Any pointers to documentation that might help me? Thanks, - marty -- Marty Billingsley ([EMAIL PROTECTED]) The University of Chicago Laboratory Schools ___ 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: Counting Chars By ASCII Part 2
I would assume that if he is checking for characters 255 that he must be using unicode. ___ 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: Do you want to save changes to this stack ..... ?
I might be misunderstanding... but, if you want your stack to not remain in memory after you close it, can't you just set it's destroystack property to true? ___ 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: Counting Chars by ASCI Values
On 3/1/06 5:08 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In a message dated 2/28/06 6:20:02 PM, Todd Geist [EMAIL PROTECTED] writes: I need to count the number of times a Character occurs in text string. The character will be high or Low ASCII. SO I need to input the value as an ASCII value. Anybody have any scripts that can get me started? The replies you've gotten thus far have used loops to explicitly count the occurences of whatever-character-it-is. Here's a different way to do it, using the replace function, which could be faster: Actually, my original post used the following technique: set the itemDel to ¼ get the number of items in (textStr null) which does not require a repeat loop or replace or a function or establishing more variables. One post was done to show the precaution of counting any container for words, items, lines where the last to be counted was empty. The best implementation would be either: -- method 1 inline put the itemDel into prevDel set the itemDel to asciiChar get the number of items in (textStr null) set the itemDel to prevDel ---method 2 function function getCharCount asciiChar set the itemDel to asciiChar return the number of items in (textStr null) end getCharCount --and now the itemDel does not have to reset put getCharCount(¼) into howMany So many ways, so many choices :-) 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: On the Democratic Operation of Bugzilla
Jim Ault wrote: It would be nice if there was a wiki that would categorize bugs (text-in-fields, icons, standalones, Win32 vs Mac) that would read more like a book or simple outline. You mean, like http://revdocwiki.wikispaces.com/ ? Jerry Muelver ___ 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: Counting Chars By ASCII Part 2
On 3/1/06 7:20 AM, Todd Geist [EMAIL PROTECTED] wrote: Question 1: IF (tASCII 31 OR tASCII 255) THEN Why would you test for 255 since no ASCII would be higher than this? Question 2: Are you trying to strip the characters, or just count them and report the result, like a histogram? Could you show exactly what you are starting with and what you want to end up with? Thanks. Jim Ault Las Vegas On 3/1/06 7:20 AM, Todd Geist [EMAIL PROTECTED] wrote: Hello Again, After trying several of the excellent suggestions from all you revolutionaries, I realized I hadn't quite explained myself... go figure. So here is another attempt to explain what I am after. I am actually after low ASCII and High ASCII characters that my have snuck into a text file. So I need to look at every character, but I don't need to count every character. I just want the ones that have ASCII values below 32 and above 255 and that are not in a small set of allowed control characters. Based on the suggestions I got on the other thread, I came up with the following that produces the results I am after. SPEED is critical here, since the files I am scanning maybe many mbs. I am wondering if any of you can improve on the design. I feel the need, the need for SPEED. :) put field 1 into tString put 10 11 12 29 into charsToIgnore REPEAT for each char tChar in tString put charToNum(tChar) into tASCII IF (tASCII 31 OR tASCII 255) THEN IF tASCII is not among the words of charsToIgnore THEN add 1 to tCounts[tASCII] END IF END IF END REPEAT put the keys of tCounts into tChars sort lines of tChars numeric REPEAT for each line thisLine in tChars put thisLine TAB tCounts[thisLine] Return after newList END REPEAT put newList into field Chars Thanks in Advance Todd ___ 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: implementing a search function
I use this to progressively auto-fill from a defined list... Script for Field or Combo-button... on keyup k put word 2 of the selectedChunk into temp put the num of words of char 1 to temp of me into w put lineoffset(CR word w of me, CR fld wordList) into n get line n of fld wordList if it then put it into word w of me -- Select current word offset put the num of chars of word 1 to w of me into w select char (temp) to w of me end keyup Maybe I should put it in the Scripter's Scrapbook. /H On 2/28/06 11:55 PM, N Cueto [EMAIL PROTECTED] wrote: Hello All, I'd like to make a search function similar to the one for the Rev docs, i.e., as letter by letter is typed in the search field, the indexed list automatically jumps to the corresponding alphabetical location. ___ 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: Counting Chars By ASCII Part 2
Exactly why I wondered... from the Docs: If the useUnicode property is set to true, the numToChar function returns a double-byte character. If the useUnicode is false and you specify an ASCIIValue greater than 255, the numToChar function returns the character corresponding to the ASCIIValue mod 256. So if we're dealing with unicode text, and really need to count the instances of each character outside of the 0 - 255 range, then we've got a real lot of tests to do since we have to consider values up to 65535... my 0 - 255 test took a couple of seconds on about 3 megabytes of data, testing for only 27 characters...Todd may be taking some longish coffee breaks! Mark On 1 Mar 2006, at 15:34, Jim Ault wrote: On 3/1/06 7:20 AM, Todd Geist [EMAIL PROTECTED] wrote: Question 1: IF (tASCII 31 OR tASCII 255) THEN Why would you test for 255 since no ASCII would be higher than this? Question 2: Are you trying to strip the characters, or just count them and report the result, like a histogram? Could you show exactly what you are starting with and what you want to end up with? Thanks. Jim Ault Las Vegas On 3/1/06 7:20 AM, Todd Geist [EMAIL PROTECTED] wrote: Hello Again, After trying several of the excellent suggestions from all you revolutionaries, I realized I hadn't quite explained myself... go figure. So here is another attempt to explain what I am after. I am actually after low ASCII and High ASCII characters that my have snuck into a text file. So I need to look at every character, but I don't need to count every character. I just want the ones that have ASCII values below 32 and above 255 and that are not in a small set of allowed control characters. Based on the suggestions I got on the other thread, I came up with the following that produces the results I am after. SPEED is critical here, since the files I am scanning maybe many mbs. I am wondering if any of you can improve on the design. I feel the need, the need for SPEED. :) put field 1 into tString put 10 11 12 29 into charsToIgnore REPEAT for each char tChar in tString put charToNum(tChar) into tASCII IF (tASCII 31 OR tASCII 255) THEN IF tASCII is not among the words of charsToIgnore THEN add 1 to tCounts[tASCII] END IF END IF END REPEAT put the keys of tCounts into tChars sort lines of tChars numeric REPEAT for each line thisLine in tChars put thisLine TAB tCounts[thisLine] Return after newList END REPEAT put newList into field Chars Thanks in Advance Todd ___ 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
strange menu behavior
I've found what I think is a bug of some kind, but I wanted to ask here to see if someone else has run into anything like this, and to see if maybe it's something I'm doing. I've got an application that uses a splash screen method. The main stack opens and the user has to enter his password to continue. This main stack has its own menu, which includes File - Quit with Ctrl-Q set as the shortcut. After entering a password and logging in successfully, another stack opens. This stack has its own menu, which also includes File - Quit with Ctrl-Q as its shortcut. When hitting ctrl-Q from this second stack, it should close the stack and return to the main login screen. Unfortunately, it's exiting the application completely. I believe what's happening is hitting ctrl-Q in the second stack is triggering the menu item in the first stack, which *is* supposed to exit the application completely. I've found that if I access the menu in the second stack by just clicking File, then ctrl-Q works correctly. It's almost as if the menu in the second stack is not loading or coming to the front or whatever until it is accessed in some way with an actual click of the mouse. Anyone have any ideas? Have I found a bug of some kind, or could there possibly be something I'm doing? One extra piece of information is that I am changing the menu items of this File menu in the preOpenStack handler of the second stack, dependent on a couple different conditions. Not sure if that would have anything to do with it or not. This problem only occurs under Windows, btw. On the Mac the behavior is exactly how I want it. Any help would be appreciated. Thanks, Chris -- Chris Sheffield Read Naturally The Fluency Company http://www.readnaturally.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: Pie Chart Algorithms?
On Feb 28, 2006, at 3:35 PM, Sivakatirswami wrote: The only caveat I discovered that there was some unknown condition wherein the arc is drawn sans the radius lines... i.e you get just a curved line..a simple arc... but, if I draw an oval manually and set it's arc angle one gets a complete pie cut polygon shape. And now my script only creates the full pie shape.. Can anyone tell us what determines whether full pie piece is drawn or just the arc without radius lines? Don't you just need to set the lineSize of the oval graphic to 0 ? 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: Counting Chars by ASCI Values
Jim's solution seems the best, but if the data is big, then the 'number of items in (textStr null)' seems to slow things down - I guess that textStr is being copied with the null char appended, and if it's big, that's a lot of work. I think it's therefore more efficient to test for char -1 of textStr being the char tested for, and if it is, then add 1 to the count. Also, shouldn't the count be 'the number of items in textStr -1? so I ended up with this: on yetAnotherWay put fld 1 into tString repeat with n = 1 to 30 if (n = 10 AND n =12) OR n = 29 then next repeat set the itemDelimiter to numToChar(n) put the number of items in tString -1 into tCount if char -1 of tString is numToChar(n) then add 1 to tCount put n tab tCount cr after tList end repeat put tList into fld chars end yetAnotherWay this was just about twice as fast as textStr null with 3 megabytes of data. Mark On 1 Mar 2006, at 15:25, Jim Ault wrote: On 3/1/06 5:08 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In a message dated 2/28/06 6:20:02 PM, Todd Geist [EMAIL PROTECTED] writes: I need to count the number of times a Character occurs in text string. The character will be high or Low ASCII. SO I need to input the value as an ASCII value. Anybody have any scripts that can get me started? The replies you've gotten thus far have used loops to explicitly count the occurences of whatever-character-it-is. Here's a different way to do it, using the replace function, which could be faster: Actually, my original post used the following technique: set the itemDel to π get the number of items in (textStr null) which does not require a repeat loop or replace or a function or establishing more variables. One post was done to show the precaution of counting any container for words, items, lines where the last to be counted was empty. The best implementation would be either: -- method 1 inline put the itemDel into prevDel set the itemDel to asciiChar get the number of items in (textStr null) set the itemDel to prevDel ---method 2 function function getCharCount asciiChar set the itemDel to asciiChar return the number of items in (textStr null) end getCharCount --and now the itemDel does not have to reset put getCharCount(π) into howMany So many ways, so many choices :-) 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
Built-in Font Dialog?
Rev 2.6.1 Greetings, Is there a built-in font dialog in Rev? Or do I use fontnames to get a list and create my own font selection routine? Thanks in advance, -Garrett ___ 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
RGB to HEX
Rev 2.6.1 Greetings, Is there a built-in function in Rev that will convert RGB color string to a HEX color string? If no, does anyone know how to do this? I knew how to do this in another language, but am at a loss as to how to work it out in Rev. Thanks in advance, -Garrett ___ 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: Built-in Font Dialog?
HiGarrett, Rev 2.6.1 Greetings, Is there a built-in font dialog in Rev? No, but you can examine the Rev Font menu :-) Or do I use fontnames to get a list and create my own font selection routine? That's possible, too. Thanks in advance, -Garrett 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: RGB to HEX
Hello again, Garrett .-) Rev 2.6.1 Greetings, Is there a built-in function in Rev that will convert RGB color string to a HEX color string? If no, does anyone know how to do this? I knew how to do this in another language, but am at a loss as to how to work it out in Rev. Check the baseconvert command in the docs. Pretty straightforward... Thanks in advance, -Garrett 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
ask dialog removes selectedChunk in field
Rev 2.6.1 Greetings, When I use the ask dialog to get some user input on changing some hilighted text in a field, the ask dialog removes the focus from the field, thus losing the ability to use the selectedChunk after the dialog has been dismissed. I did not know if there was any way within any of the properties to stop this, such as setting traversalOn, so I put the selectedChunk into a variable before the ask dialog. Other than what I have done to resolve this, is there some property dealing with the ask dialog that might bypass the need to record the selectedChunk before the ask dialog? Thanks, -Garrett ___ 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
test
This is a test. Thanks for your time. :-) -- Chris Sheffield Read Naturally The Fluency Company http://www.readnaturally.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: A Constellation problem-of my own making?
Michael, Chipp's answer is the one I'd recommend...set the loc of stack revConstellation to the screenLoc. Like all windows, Constellation can be moved and resized via scripts or commands from the message box. Best, Jerry Daniels Artists, Consultants Developers http://www.daniels-mara.com/art http://www.daniels-mara.com/products http://www.daniels-mara.com Voice: 512.879.6286 Skype: jerry.daniels On Feb 28, 2006, at 3:04 PM, Michael Mandaville wrote: Revolutionaries, I installed version 2.7 along with Constellation. However, when I use Constellation, the interface sticks to the top of the screen, covered up by the Revolution Toolbar Text and Toolbar Icons pallettes. I might have inadvertently hit a button on Constellation that locks it into place? The only way I can see the Constellation tabs is to turn off the Revolution text and icon pallettes? Yoda? Thanks, Michael ___ 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: Pie Chart Algorithms?
Doing that only increased the size the arc line that was drawn. The two radius lines from the center out to the end of the arc, forming the pie did not always appear, sometimes yes, sometimes no... but by setting the opaque on create oval to true then the background color appears whether or not the radius lines show or not.. so that works. I have to test some more. possible the opaque property is turning the radius lines off and on as well... Now my next challenge is to get a list of points on the circumference of any circle. I checked the mailing lists and can't find the algorithm or sample script that would do this. If anyone has the professional algorithm to do this please do post it... /H's chart stack is protected... I'm working with setting a single radius at 3 o'clock and rotating this through 90 degrees using revRotatePoly and logging the end point on 90 iterations of 1 degree. And then I think I can use the relative values of this quadrant for the other three quadrants. But, I think this must be horrible hack and that someone has a much cleaner way to get this list of pioints -- some very cool math function... ON mouseUp put (the right of grc BaseCircle , the height of grc BaseCircle/2+the top of grc BaseCircle) into tVariablePosition put 1 into tIncrement set the points of grc Line to (the loc of grc baseCircle, tVariablePosition) put line 2 of the points of grc line into tLoc repeat 90 times put tLoc cr after fld props ## log the end point on each iteration set the points of grc Line to (the loc of grc baseCircle, tVariablePosition) revRotatePoly the long id of grc line,tIncrement put tIncrement +1 into tIncrement put line 2 of the points of grc line into tLoc set the loc of grc littleBall to tLoc end repeat END mouseup result 628,364 (3 o'clock on this particular circle) 626,368 626,372 626,376 626,380 626,384 626,390 etc (90 lines of such points... from 3 o'clock to 6 o'clock -- straight down) OK set this aside for a while... it's something to work on when the brain needs a break from real work on a rainy day off... Hopefully someone will come to my rescue by the time I try to carry this forward. And a related issue: move grc ball to the points of grc oval doesn't do anything... oval's don't have any points (?) doesn't make sense to me: any line object on a screen is a series of pixels... how can it not have points? Sivakatirswami On Mar 01, 2006, at 7:33 AM, Devin Asay wrote: On Feb 28, 2006, at 3:35 PM, Sivakatirswami wrote: The only caveat I discovered that there was some unknown condition wherein the arc is drawn sans the radius lines... i.e you get just a curved line..a simple arc... but, if I draw an oval manually and set it's arc angle one gets a complete pie cut polygon shape. And now my script only creates the full pie shape.. Can anyone tell us what determines whether full pie piece is drawn or just the arc without radius lines? Don't you just need to set the lineSize of the oval graphic to 0 ? 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: Counting Chars by ASCI Values
On 3/1/06 9:34 AM, Mark Smith [EMAIL PROTECTED] wrote: Jim's solution seems the best, but if the data is big, then the 'number of items in (textStr null)' seems to slow things down - I guess that textStr is being copied with the null char appended, and if it's big, that's a lot of work. I think it's therefore more efficient to test for char -1 of textStr being the char tested for, and if it is, then add 1 to the count. Also, shouldn't the count be 'the number of items in textStr -1? so I ended up with this: on yetAnotherWay put fld 1 into tString repeat with n = 1 to 30 if (n = 10 AND n =12) OR n = 29 then next repeat set the itemDelimiter to numToChar(n) put the number of items in tString -1 into tCount if char -1 of tString is numToChar(n) then add 1 to tCount put n tab tCount cr after tList end repeat put tList into fld chars end yetAnotherWay this was just about twice as fast as textStr null with 3 megabytes of data. I agree with Mark on the efficiency of the 'yetAnotherWay' on large text blocks. Also, shouldn't the count be 'the number of items in textStr -1? As I indicated in a previous post, it depends on what you are trying to count when you use items a measure. If the last char of a string is the asciiChar, then the number of items will be one less than the true count, however, if null is appended, the count will be equal to the true count. If Todd's desired solution is to do just a count (but on more than one asciiChar) then arrays+keys may be the best overall. In addition, if the locations of the chars are important, that is another story (eg. hiliting instances) Good work, Mark. 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: Counting Chars by ASCI Values
In this case, we're counting delimiters - not items, so it I'm sure it should be the number of items -1, unless we have a trailing delimiter, when the item count and delimiter count are the same, hence the need for null or testing the last char. This is how it seems to work on my setup (rev 2.7, Mac OS X): 1,2,3 = 3 items, 2 delimiters ,1,2,3 = 4 items (one empty), 3 delimiters 1,2,3, = 3 items, 3 delimiters - Rev doesn't count the implied empy item at the end. Cheers, Mark On 1 Mar 2006, at 20:12, Jim Ault wrote: Also, shouldn't the count be 'the number of items in textStr -1? As I indicated in a previous post, it depends on what you are trying to count when you use items a measure. If the last char of a string is the asciiChar, then the number of items will be one less than the true count, however, if null is appended, the count will be equal to the true count. ___ 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: XML Library and Windows
--- Karen [EMAIL PROTECTED] wrote: Hi Jan, Thanks very much for that, but as I'm building on the Mac only, I had to use something that Trevor DeVore had previously suggested - http://article.gmane.org/gmane.comp.ide.revolution.user/64387/match=set+external The problem I'm now having is that Quartam says it can't find the report formats. Is there some trick to the path to use for this in Windows? Thanks, Karen Hi Karen, Glad to hear you have found a way to get revXML into working order -- let's hope the standalone builder gets fixed in 2.7.1 so nobody else has to work around it. As for the report formats: when you refer to a file using a relative path, the Rev engine starts to search from the 'defaultFolder' -- when you fire up the Rev IDE, this is the folder where the Rev application resides. In your standalone, it refers to the folder where your standalone resides -- but there's a twist: on Windows, this is the same directory as where the .exe file lives ; but as MacOSX applications are actually folders themselves (bundles of files), the 'defaultFolder' points to the folder _inside_ the bundle where the actual executable file is hidden. If your reports live in a subdirectory next to the .app bundle, you have two options: change the defaultFolder, or refer to these files by combining the .app bundle location and the relative location of your report format files. A popular cross-platform function to get the appropriate path was written by Richard Gaskin: ## function AppPath put the filename of this stack into tPath set the itemdel to / If (IsOSX()) then get offset(.app/Contents/MacOS/, tPath) if it 0 then -- 2.4.3 or later delete char it to len(tPath) of tPath end if end if delete last item of tPath return tPath / end AppPath function IsOSX if the platform is not MacOS then return false get the systemversion set the itemdel to . if item 1 of it = 10 then return true return false end IsOSX ## (for a more complete explanation, go to: http://www.sonsothunder.com/devres/revolution/tips/file008.htm) So, armed with the function above, you can change the path to the report layout file as follows: ## on mouseUp -- prep all the variables put AppPath() reports/myreport.qrl \ into tLayoutPath put MyDataStack into tStackName put true into tPreviewFlag put all into tCardRange -- and print the data stack qrtReports_PrintReportFromStack \ tLayoutPath,tStackName,tPreviewFlag,tCardRange end mouseUp ## Hope this helped, Jan Schenkel. Quartam Reports for Revolution http://www.quartam.com = As we grow older, we grow both wiser and more foolish at the same time. (La Rochefoucauld) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] Brand NEW altBrowser2!!! Neat new capabilities.
Chipp: VERY professional! VERY impressive! Of course, you know what I am going to remind you of next, don't you? LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! Congratulations, 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: [ANN] Brand NEW altBrowser2!!! Neat new capabilities.
Duly noted. We may even have something in the works for altBrowser3 ;-) Bob Warren wrote: Chipp: VERY professional! VERY impressive! Of course, you know what I am going to remind you of next, don't you? LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! LINUX! Congratulations, Bob -- -- Chipp Walters www.altuit.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: ask dialog removes selectedChunk in field
Garrett Hylltun wrote: When I use the ask dialog to get some user input on changing some hilighted text in a field, the ask dialog removes the focus from the field, thus losing the ability to use the selectedChunk after the dialog has been dismissed. I did not know if there was any way within any of the properties to stop this, such as setting traversalOn, so I put the selectedChunk into a variable before the ask dialog. Other than what I have done to resolve this, is there some property dealing with the ask dialog that might bypass the need to record the selectedChunk before the ask dialog? I think you've solved the problem in the best way. When a dialog is shown, the focus is removed from the original stack and the selection is lost; the workaround is exactly what you've done. -- 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: Do you want to save changes to this stack ..... ?
Francis Nugent Dixon wrote: Questions : 1 - Under what conditions does Revolution ask me the question Do you want to save the changes , or more simply, what constitutes a change ? The answer once seemed clear to me, but maybe there are things I don't know ! As an example, if I change the contents of a field, I get the request to save, but if I change the labels from English to French (by buttons), I don't get the request to save. Yet I made modifications to the stack ! And when I execute the stack again, label modifications have been lost. Curiouser and Curiouser ! The state of the stack is tracked by the IDE, not by the engine. Revolution, in general, considers a change to be anything you do manually that alters the content of the stack: creating an object, changing the text of a field by typing into it, changing an object's properties by using the inspector, etc. Changes that your own scripts make to a stack are not caught by the IDE. Therefore, if you change the label in the inspector, Rev notices. If you change the label from a script in a button, Rev does not notice. In other words, if any of your own scripts make changes, the IDE cannot see them. The engine doesn't pay attention to changes; only the IDE does that. 2 - Are the conditions the same under Stack Runner ? No. StackRunner has no change-tracking in it at all. It won't notice any changes you make, whether they are manual or scripted, and it never asks if you want to save. And the most important question : 3 - If I consider that I have made no changes, and Revolution doesn't agree, can I bypass the Do you want to save? request (maybe there is a gREV global that I can tinker with) ? There probably is a global or a property, but I don't know offhand what it is called. Someone else may have looked into it. You could avoid the problem by just writing your own save handler and calling that before closing the stack, but it isn't as automatic as you probably want. -- 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
Controlling Quicktime frames
hello! I exported a PowerPoint presentation of an educational slideshow which I imported to Revolution but I can't find the proper scripts to Play the Quicktime frame by frame. I want to create 3 buttons: BTN1: Play next frame and stop BTN2:Play previous frame and Stop BTN3:Rewind quicktime to frame 1 Have anyone done that? any help? Thanks! Ben ___ 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: Controlling Quicktime frames
You could use the currentTime setting to step through a QT movie. If there is no interaction, and you're just displaying a static frame, all you would need is something like this: on NextFrame put the currentTime of player Power Point into tCurrentTime add tTheAppropriateTime to tCurrentTime set the currentTime of player Power Point to tCurrentTime end NextFrame etc. You will have to figure out what tTheAppropriateTime is. I'm not sure how PowerPoint exports to QT. At 03:36 PM 3/1/2006, you wrote: hello! I exported a PowerPoint presentation of an educational slideshow which I imported to Revolution but I can't find the proper scripts to Play the Quicktime frame by frame. I want to create 3 buttons: BTN1: Play next frame and stop BTN2:Play previous frame and Stop BTN3:Rewind quicktime to frame 1 Have anyone done that? any help? Thanks! Ben ___ 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 Peter T. Evensen http://www.PetersRoadToHealth.com 314-629-5248 or 888-628-4588 ___ 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
Paypal Solution?
I read about the Altuit software that incorporates Paypal with revolution but I wonder if there is any other as a component and not as part of a whole system. I would like to create a stack with some articles to sell and have a paypal button to process the payment. thanks! Ben ___ 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: Counting Chars by ASCI Values
correct. On 3/1/06 12:35 PM, Mark Smith [EMAIL PROTECTED] wrote: In this case, we're counting delimiters - not items, so it I'm sure it should be the number of items -1, unless we have a trailing delimiter, when the item count and delimiter count are the same, hence the need for null or testing the last char. This is how it seems to work on my setup (rev 2.7, Mac OS X): 1,2,3 = 3 items, 2 delimiters ,1,2,3 = 4 items (one empty), 3 delimiters 1,2,3, = 3 items, 3 delimiters - Rev doesn't count the implied empy item at the end. Cheers, Mark On 1 Mar 2006, at 20:12, Jim Ault wrote: Also, shouldn't the count be 'the number of items in textStr -1? As I indicated in a previous post, it depends on what you are trying to count when you use items a measure. If the last char of a string is the asciiChar, then the number of items will be one less than the true count, however, if null is appended, the count will be equal to the true count. ___ 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: Pie Chart Algorithms?
Sivakatirswami wrote: Now my next challenge is to get a list of points on the circumference of any circle. I checked the mailing lists and can't find the algorithm or sample script that would do this. If anyone has the professional algorithm to do this please do post it... /H's chart stack is protected... Not professional, but maybe interested amateur :-) (this returns floating point numbers - remember to convert to integers before using as points of a polygon or similar) on mouseUp put getPoints(100,100,10) after msg end mouseUp function getPoints xc, yc, rad -- returns a list of points on the circumference of a circle -- centered at xc,yc with radius rad repeat with i = 0 to 90 put xc+ rad*sinInDegrees(i), yc+rad*cosInDegrees(i) CR after tResult end repeat return tResult end getPoints function cosInDegrees angleInDegrees return cos(angleInDegrees * pi / 180) end cosInDegrees function sinInDegrees angleInDegrees return sin(angleInDegrees * pi / 180) end sinInDegrees And a related issue: move grc ball to the points of grc oval doesn't do anything... oval's don't have any points (?) doesn't make sense to me: any line object on a screen is a series of pixels... how can it not have points? Polygons are defined by a set of points Ovals are defined by a centre and radius (or radii) When either of them is drawn, some pixels are coloured in; in the case of a polygon, far more pixels will be coloured in than are in the points of the poly. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/270 - Release Date: 27/02/2006 ___ 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: RGB to HEX
Is there a built-in function in Rev that will convert RGB color string to a HEX color string? If no, does anyone know how to do this? I knew how to do this in another language, but am at a loss as to how to work it out in Rev. No built-in command, but it can be scripted. You might like to check out Eric Chatonet's Color Picker, which you can find on this page: http://www.sosmartsoftware.com/?r=revolutionl=en 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: Paypal Solution?
Hi Ben, It's not Altuit which has this particular solution. I believe it's Tom McCarthy who you may be referring to. In anycase, he has some info about using PayPal with Rev at: http://www.discamus.com/nunc/how/PayPal_setup2.html benjamin pastrana wrote: I read about the Altuit software that incorporates Paypal with revolution but I wonder if there is any other as a component and not as part of a whole system. ___ 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: Paypal Solution?
Hi Ben, If your main goal is to sell something, you might want to have a look at the Salery web store software at http://www.salery.biz/salery.html. It creates web pages for all products in the store with on every page a PayPal button for that particular product. Best, Mark benjamin pastrana wrote: I read about the Altuit software that incorporates Paypal with revolution but I wonder if there is any other as a component and not as part of a whole system. I would like to create a stack with some articles to sell and have a paypal button to process the payment. thanks! Ben -- Consultant and Software Engineer mailto:[EMAIL PROTECTED] http://www.economy-x-talk.com eHUG coordinator mailto:[EMAIL PROTECTED] http://www.ehug.info Advertise with us and reach 1000 truely interested internet users every month. See http://economy-x-talk.com/advertise.html for more information. ___ 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: Paypal Solution?
no intersted do not sell anthing From: Mark Schonewille [EMAIL PROTECTED] Reply-To: How to use Revolution use-revolution@lists.runrev.com To: How to use Revolution use-revolution@lists.runrev.com Subject: Re: Paypal Solution? Date: Thu, 02 Mar 2006 00:31:13 +0100 Hi Ben, If your main goal is to sell something, you might want to have a look at the Salery web store software at http://www.salery.biz/salery.html. It creates web pages for all products in the store with on every page a PayPal button for that particular product. Best, Mark benjamin pastrana wrote: I read about the Altuit software that incorporates Paypal with revolution but I wonder if there is any other as a component and not as part of a whole system. I would like to create a stack with some articles to sell and have a paypal button to process the payment. thanks! Ben -- Consultant and Software Engineer mailto:[EMAIL PROTECTED] http://www.economy-x-talk.com eHUG coordinator mailto:[EMAIL PROTECTED] http://www.ehug.info Advertise with us and reach 1000 truely interested internet users every month. See http://economy-x-talk.com/advertise.html for more information. ___ 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 _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.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: test
Was it a successful test? ;-) Robert On Mar 1, 2006, at 12:50 PM, Chris Sheffield wrote: This is a test. Thanks for your time. :-) -- Chris Sheffield Read Naturally The Fluency Company http://www.readnaturally.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 ___ 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
repeat repeat
My fld seatNo has more than one line or item I want to repeat the code below for each line or item on mouseUp put fld seatNo into tseatNo repeat with x = 1 to the number of buttons if tseatNo = the label of button x then set the backgroundcolor of button x to red end if end repeat end mouseUp Liam Lambert [EMAIL PROTECTED] IRELAND ___ 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: Paypal Solution?
Hi Ben, I had the impression that once you have a paypal vendor account you would just need to provide a button to open a URL straight to your payment page. Then you maintain a list of the product (that are in your rev stack) at your paypal vendor page. Maybe there is more to it thaan I think... Good luck John -Original Message- From: David Lewis [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 1, 2006 06:43 PM To: use-revolution@lists.runrev.com Subject: Re: Paypal Solution? no intersted do not sell anthing From: Mark Schonewille [EMAIL PROTECTED] Reply-To: How to use Revolution use-revolution@lists.runrev.com To: How to use Revolution use-revolution@lists.runrev.com Subject: Re: Paypal Solution? Date: Thu, 02 Mar 2006 00:31:13 +0100 Hi Ben, If your main goal is to sell something, you might want to have a look at the Salery web store software at http://www.salery.biz/salery.html. It creates web pages for all products in the store with on every page a PayPal button for that particular product. Best, Mark benjamin pastrana wrote: I read about the Altuit software that incorporates Paypal with revolution but I wonder if there is any other as a component and not as part of a whole system. I would like to create a stack with some articles to sell and have a paypal button to process the payment. thanks! Ben -- Consultant and Software Engineer mailto:[EMAIL PROTECTED] http://www.economy-x-talk.com eHUG coordinator mailto:[EMAIL PROTECTED] http://www.ehug.info Advertise with us and reach 1000 truely interested internet users every month. See http://economy-x-talk.com/advertise.html for more information. ___ 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 _ Are you using the latest version of MSN Messenger? Download MSN Messenger 7.5 today! http://messenger.msn.co.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 ___ 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: repeat repeat
Hi Liam, Assuming that your original code does not cause any errors, the following should work, although I didn't test it: on mouseUp repeat for each item myLabel in fld seatNo repeat with x = 1 to the number of buttons if myLabel is the label of btn x then set the backgroundColor of btn x to red end if end repeat end repeat end mouseUp Instead of item myLabel you could also use line myLabel. Best, Mark liamlambert wrote: My fld seatNo has more than one line or item I want to repeat the code below for each line or item on mouseUp put fld seatNo into tseatNo repeat with x = 1 to the number of buttons if tseatNo = the label of button x then set the backgroundcolor of button x to red end if end repeat end mouseUp Liam Lambert [EMAIL PROTECTED] IRELAND -- Consultant and Software Engineer mailto:[EMAIL PROTECTED] http://www.economy-x-talk.com eHUG coordinator mailto:[EMAIL PROTECTED] http://www.ehug.info Advertise with us and reach 1000 truely interested internet users every month. See http://economy-x-talk.com/advertise.html for more information. ___ 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: repeat repeat
on mouseUp put fld seatNo into tseatNo repeat for each line y in tSeatNo repeat with x = 1 to the number of buttons if y = the label of button x then set the backgroundcolor of button x to y end if end repeat end repeat end mouseUp Something like the above might work. Hope this helps. Mark On Mar 1, 2006, at 4:43 PM, liamlambert wrote: My fld seatNo has more than one line or item I want to repeat the code below for each line or item on mouseUp put fld seatNo into tseatNo repeat with x = 1 to the number of buttons if tseatNo = the label of button x then set the backgroundcolor of button x to red end if end repeat end mouseUp Liam Lambert [EMAIL PROTECTED] IRELAND ___ 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: repeat repeat
If speed matters, you could avoid nesting the loops. on mouseUp repeat with i = 1 to number of buttons put i into tArray[the label of button i] end repeat repeat for each item tSeatNo in field seatNo set the backgroundColor of button tArray[tSeatNo] to red end repeat end mouseUp -- Dick On 3/1/06 4:54 PM, Mark Schonewille [EMAIL PROTECTED] wrote: Hi Liam, Assuming that your original code does not cause any errors, the following should work, although I didn't test it: on mouseUp repeat for each item myLabel in fld seatNo repeat with x = 1 to the number of buttons if myLabel is the label of btn x then set the backgroundColor of btn x to red end if end repeat end repeat end mouseUp Instead of item myLabel you could also use line myLabel. Best, Mark liamlambert wrote: My fld seatNo has more than one line or item I want to repeat the code below for each line or item on mouseUp put fld seatNo into tseatNo repeat with x = 1 to the number of buttons if tseatNo = the label of button x then set the backgroundcolor of button x to red end if end repeat end mouseUp Liam Lambert [EMAIL PROTECTED] IRELAND ___ 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: strange menu behavior
Chris Sheffield wrote: I've found what I think is a bug of some kind, but I wanted to ask here to see if someone else has run into anything like this, and to see if maybe it's something I'm doing. I've got an application that uses a splash screen method. The main stack opens and the user has to enter his password to continue. This main stack has its own menu, which includes File - Quit with Ctrl-Q set as the shortcut. After entering a password and logging in successfully, another stack opens. This stack has its own menu, which also includes File - Quit with Ctrl-Q as its shortcut. When hitting ctrl-Q from this second stack, it should close the stack and return to the main login screen. Unfortunately, it's exiting the application completely. I believe what's happening is hitting ctrl-Q in the second stack is triggering the menu item in the first stack, which *is* supposed to exit the application completely. I've found that if I access the menu in the second stack by just clicking File, then ctrl-Q works correctly. It's almost as if the menu in the second stack is not loading or coming to the front or whatever until it is accessed in some way with an actual click of the mouse. Anyone have any ideas? Have I found a bug of some kind, or could there possibly be something I'm doing? Depending on your setup, it might be a message hierarchy thing. On Macs, the menubar property of a stack puts the menu into the OS menu space and keyboard shortcuts are sent there first. There isn't any other menu available, since only one can be active at a time. Whatever menu group a stack contains will get first crack at keyboard events. On Windows there is no global menu bar, and the menu functions as a group on the card. Keyboard events are sent to the card and, if the stack is a substack, the event passes through to the main stack. If your menu group in the main stack has backgroundBehavior set to true, but the menu group on the substack does not, then the main stack's menu group would catch the event. Check to see if your substack's menu group has backgroundBehavior set to true. If it does then maybe you did find a bug. One workaround would be for your quit handler to check whether the mainstack was the topstack, and only quit if it is. One extra piece of information is that I am changing the menu items of this File menu in the preOpenStack handler of the second stack, dependent on a couple different conditions. Not sure if that would have anything to do with it or not. This problem only occurs under Windows, btw. On the Mac the behavior is exactly how I want it. Any help would be appreciated. Thanks, Chris -- Chris Sheffield Read Naturally The Fluency Company http://www.readnaturally.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 -- 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: strange menu behavior
I've got an application that uses a splash screen method. The main stack opens and the user has to enter his password to continue. This main stack has its own menu, which includes File - Quit with Ctrl-Q set as the shortcut. After entering a password and logging in successfully, another stack opens. This stack has its own menu, which also includes File - Quit with Ctrl-Q as its shortcut. When hitting ctrl-Q from this second stack, it should close the stack and return to the main login screen. Unfortunately, it's exiting the application completely. I believe what's happening is hitting ctrl-Q in the second stack is triggering the menu item in the first stack, which *is* supposed to exit the application completely. I've found that if I access the menu in the second stack by just clicking File, then ctrl-Q works correctly. It's almost as if the menu in the second stack is not loading or coming to the front or whatever until it is accessed in some way with an actual click of the mouse. This doesn't really answer your problem, but as a user-interface issue, if I selected Quit or pressed Ctrl-Q, I would expect the app to quit. Anything else would feel wrong. How about having a Logout menu item instead as this would seem to be a better indication of the function of that particular menu item? 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: Counting Chars By ASCII Part 2
Sorry for not getting back to answer questions. I am moving my office and I cut the tip of my index finger off. Just a little bit of the tip. But it makes typing very difficult :) Here are the answers to a couple of questions... My script can do 25 mb in a minute or two, but I had not been using unicode set to true, which I will need to do. I want to display the list of these bad characters, then I will want to remove them. I am not sure if I need to deal with character higher then 255. I am trying to clean potentially corrupt data from database records. I think chars greater then 255 will be possible, and bad. So If they are there I want to zap them. Thanks for all the help :) Todd -- Todd Geist __ g e i s t i n t e r a c t i v e ___ 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