Bessel function
Hi Does anyone know if Rev has a bessel function? I can't find it in the transcript dictionary. If not, does anyone have any suggestions on the maths to build this function. I am trying to recode an EXCEL application I have to an to a Revolution application. The EXCEL implementation is a bit to flexible and too easy for users to mess up the sheet! Cheers Steve ___ 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: Studio License Renewal Cost
Hi, Have been off the list for a while as I am still using 2.5.x. I am a hobbyist only and feel that Rev pricing is pretty competitive. To the question is $200 a lot - interesting question, I work in a very different field of engineering and not software, for a very large company and know that even $200 is extremely difficult to justify with many hoops to jump through if it's not 'office' - I suspect it's actually easier in a very small company where the justification can be more easily seen. Anyway - my one gripe about Rev pricing (if the Rev guys are listening) is the way bugs are dealt with. I stopped upgrading after a few years as I continually found the Rev Bugs I needed fixing (unfortunately I have found it a bit buggy) were not fixed within the 1 year period and so I had buy the next license to get it fixed. Key ones for me were Speech on Windows and flashing quick time players. In the case of Speech, actually the Rev guys were very good and after some considerable dialogue let me have the fix even outside the 1 year period - but I still can't get two movie windows working even now. So I would be much happier if all 'major' bugs in a release were fixed free (even if outside the year) by maintenance .x releases, otherwise pricing seems reasonable. Beware though - it is getting more competitive for the hobbyist with the free .NET studio availability - do many hobbyists really need cross platform? Cheers Steve ___ 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: Bessel function
On Aug 6, 2006, at 4:03 AM, Stephen King wrote: If not, does anyone have any suggestions on the maths to build this function. Can you get by with integral orders? Is there a limit on how big the arg is? I would think you can compute it for positive integer orders using a Taylor's series. See wikipedia for Bessel. Getting the negative order from the positive is described there, too. In computing the Taylor's series, don't compute the power or the factorials each time, but accumulate those as you go. If you need only one order and you call it often, you can build a factor table the first time and use that each time. Dar 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
shell command ?
How can I set file attributes? open file FileToWriteVar for write write "MyText" to file FileToWriteVar close file FileToWriteVar .. shell command (?) --> How can I set the attribute of the file "FileToWriteVar" so that the user can't see the file in the directory I've written the file to? ……… but he should be able to open and read from it by the "open file for read" command. Martin ___ 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
Extension of pre-pub testing for ns performance timer plugin
Well, the timer resolution is closer to microsecond than nanosecond, but it is high resolution. I decided to wait a couple days before publishing the FREE timer plugin. If you want to help me out and want to influence how this turns out, let me know and I'll send you a pre-publication version to play with. This is a plugin that makes a few timer related functions and commands available in your IDE. You can use these in your scripts to time how long certain operations take. You can use 'the long seconds', of course, but that does not have the resolution on Windows that it does on OS X. Also, it does not have built-in calibration for timing and the uniform timing commands and functions. On Windows you can time short operations by repeating them, but in some cases that cannot work. This might be because the operation changes the situation, such as closing a file, or because you need to time in a live test. The high resolution timer plugin takes care of that. It sets up a uniform timing API and adds very high res timing to Windows. The new commands can be inserted as a front script or as a stack library. The first is better for timing built-in operations, the latter is better for timing scripts with lots of calls. The plugin is a single stack so you can't lose supporting stacks and externals; they are embedded. I've been calling this darzStopwatch, but might change that to darzTimer or something. So, if you have any of the gifts of encouragement, making snide remarks, nitpicking, clocks on Windows machines, whining, GUI and so on, please help me out. I've only checked this out on a single processor Athlon for Windows XP and a dual G4 for OS X, so if you have something different (especially old, mobile, weird PCI, or OS X on Intel) that will help. Besides the plugin, I'll send a small demo stack that times "repeat n times". With this timer you can see the difference in times as you move from 0 times, to 1 times, to 2 times to 100 times. Remember, because of the nature of these OSs, the time it takes to do an operation can vary and sometimes take much longer than usual. Time several times to get the feel for the time. Drop me a note if you want an early look. Dar Scott [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: Extension of pre-pub testing for ns performance timer plugin
On Aug 6, 2006, at 12:09 PM, Dar Scott wrote: It sets up a uniform timing API and adds very high res timing to Windows. I forgot to say that this version does not solve bug 75 for non Windows, so don't use 'time' or 'convert' during timing. It will mess up the timing measurement. To put it in positive sense, timing on Windows is not affected by bug 75. Certain commands and functions mess up the seconds, milliseconds and so on. That bug is resolved as "isn't fixable", so maybe it should be called "interesting feature 75". That is fixed for the high res timer plugin from Dar's Lab on Windows. Dar 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: shell command ?
Hi Martin, On Mac OS X, you might want to start the name of your file with a period, on Windows you need to check the Attrib command, on Mac OS 9 you might want to use an AppleScript OSAX called FileVisibility. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Download ErrorLib at http://economy-x-talk.com/developers.html and get full control of error handling in Revolution. Op 6-aug-2006, om 19:55 heeft Martin Meili het volgende geschreven: How can I set file attributes? open file FileToWriteVar for write write "MyText" to file FileToWriteVar close file FileToWriteVar .. shell command (?) --> How can I set the attribute of the file "FileToWriteVar" so that the user can't see the file in the directory I've written the file to? ……… but he should be able to open and read from it by the "open file for read" command. Martin ___ 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
Handler or function
Hi all I have am using this handler to calculate different prices for children adults and others The aPrice cPrice and the oPrice are different prices selected from a fld with different prices in it the handler works fine my question is should I this with a function or is there a better way to do this on fCal set the numberFormat to "#0.00" -- dollar format put field "aPrice" into theaPrice -- the selected adult price Put field "cPrice" into thecPrice -- the selected child price put fld "oPrice" into theoPrice ---other selected price put field "child" into theChildNumber --the number of children put field "adult" into theAdultNumber --the number of adults put fld "other" into theOtherNumber ---the number of other put (theChildNumber * thecPrice) into field "Childprice"-- * the number of children by the price put (theAdultNumber * theaPrice) into field "Adultprice"-- * the number of Adults by the price put (theOtherNumber * theoPrice) into fld "Otherprice" put field "Childprice" into theChildprice put field "Adultprice" into theAdultprice put fld "Otherprice" into theOtherPrice put theAdultprice + theChildprice + theotherPrice into field "Total" end fCal Thank's Liam IRELAND [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
Handler or function
Sorry Typo Should have said Hi all I have am using this handler to calculate different prices for children adults and others The aPrice cPrice and the oPrice are different prices selected from a fld with different prices in it the handler works fine my question is should I do this with a function or is there a better way to do this on fCal set the numberFormat to "#0.00" -- dollar format put field "aPrice" into theaPrice -- the selected adult price Put field "cPrice" into thecPrice -- the selected child price put fld "oPrice" into theoPrice ---other selected price put field "child" into theChildNumber --the number of children put field "adult" into theAdultNumber --the number of adults put fld "other" into theOtherNumber ---the number of other put (theChildNumber * thecPrice) into field "Childprice"-- * the number of children by the price put (theAdultNumber * theaPrice) into field "Adultprice"-- * the number of Adults by the price put (theOtherNumber * theoPrice) into fld "Otherprice" put field "Childprice" into theChildprice put field "Adultprice" into theAdultprice put fld "Otherprice" into theOtherPrice put theAdultprice + theChildprice + theotherPrice into field "Total" end fCal Thank's Liam IRELAND [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: Handler or function
Hi Liam, Whether you should use a function rather than your handler really depends on what you want. If you really need to display intermediate values, you might want to use the following relatively short handler on fCal set the numberFormat to "#0.00" put (fld "Adult" * fld "aPrice") into fld "AdultPrice" put (fld "Child" * fld "cPrice") into fld "ChildPrice" put (fld "Other" * fld "oPrice") into fld "AdultPrice" put (fld "Adult" * fld "aPrice") + (fld "Child" * fld "cPrice") ¬ + (fld "Other" * fld "oPrice") into field "Total" end fCal but if that's not necessary, the first and the last line of above handler would be sufficient on fCal set the numberFormat to "#0.00" put (fld "Adult" * fld "aPrice") + (fld "Child" * fld "cPrice") ¬ + (fld "Other" * fld "oPrice") into field "Total" end fCal and if you need to do this really, really often and you get tired of typing the syntax all the time, I would try to use shorter variable names together with this function: function gCalc theaPrice,thecPrice,theoPrice,theChildNumber,theAdultNumber,theOtherNumb er set the numberFormat to "#0.00" return (theAdultNumber * theaPrice) + (theChildNumber * thecPrice) + (theOtherNumber * theoPrice) end gCalc If you are going to repeat these calculations hundreds of times, you really don't want to update the fields all the time, because it reduces performance. Otherwise, you could use your original handler as well. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Download ErrorLib at http://economy-x-talk.com/developers.html and get full control of error handling in Revolution. Op 6-aug-2006, om 20:45 heeft Liam Lambert het volgende geschreven: Sorry Typo Should have said Hi all I have am using this handler to calculate different prices for children adults and others The aPrice cPrice and the oPrice are different prices selected from a fld with different prices in it the handler works fine my question is should I do this with a function or is there a better way to do this on fCal set the numberFormat to "#0.00" -- dollar format put field "aPrice" into theaPrice -- the selected adult price Put field "cPrice" into thecPrice -- the selected child price put fld "oPrice" into theoPrice ---other selected price put field "child" into theChildNumber --the number of children put field "adult" into theAdultNumber --the number of adults put fld "other" into theOtherNumber ---the number of other put (theChildNumber * thecPrice) into field "Childprice"-- * the number of children by the price put (theAdultNumber * theaPrice) into field "Adultprice"-- * the number of Adults by the price put (theOtherNumber * theoPrice) into fld "Otherprice" put field "Childprice" into theChildprice put field "Adultprice" into theAdultprice put fld "Otherprice" into theOtherPrice put theAdultprice + theChildprice + theotherPrice into field "Total" end fCal Thank's Liam IRELAND [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
Handler or function
Thank's Mark That answers my question. Liam IRELAND [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: Handler or function
Liam If all you're doing with the calculation results is populating a field, then it probably doesn't matter a whit whether you use a function or a handler. The only real difference is that when you call a function, you have to be aware that it's returning a result and that you MUST call it in such a way that the result is dealt with (even if "dealt with" means throwing it away). Thus if you had a handler called calcPrice and a function called calcPrice, you'd call the handler like this: calcPrice x, y and the function like this: put calcPrice(x,y) into field "foo" or wherever you want it. (You probably already know this stuff and if so I apologize for wasting your time with something obvious but I often find that assuming isn't useful either.) On 8/6/06, Liam Lambert <[EMAIL PROTECTED]> wrote: Hi all I have am using this handler to calculate different prices for children adults and others The aPrice cPrice and the oPrice are different prices selected from a fld with different prices in it the handler works fine my question is should I this with a function or is there a better way to do this on fCal set the numberFormat to "#0.00" -- dollar format put field "aPrice" into theaPrice -- the selected adult price Put field "cPrice" into thecPrice -- the selected child price put fld "oPrice" into theoPrice ---other selected price put field "child" into theChildNumber --the number of children put field "adult" into theAdultNumber --the number of adults put fld "other" into theOtherNumber ---the number of other put (theChildNumber * thecPrice) into field "Childprice"-- * the number of children by the price put (theAdultNumber * theaPrice) into field "Adultprice"-- * the number of Adults by the price put (theOtherNumber * theoPrice) into fld "Otherprice" put field "Childprice" into theChildprice put field "Adultprice" into theAdultprice put fld "Otherprice" into theOtherPrice put theAdultprice + theChildprice + theotherPrice into field "Total" end fCal Thank's Liam IRELAND [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 -- ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, "Revolution: Software at the Speed of Thought" From http://www.shafermediastore.com/tech_main.html ___ 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
Handler or function
Dan thank you for your response When I am writing code even if something works well I wonder if there is a better way of doing it. I have found in the past asking questions on this list has been a great way to learn how other people do things and often learn a lot of new things from peoples replies also other peoples posts. I am constantly amazed by how generous people are on this list with there time. Thank's Liam IRELAND [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
Crop command
Anyone having problems with the crop command? crop img "myImage" to the rect of btn 1 -- nothing crop img "myImage" to "76,48,171,158" -- nothing crop img 1 to the rect of fld 1 -- OK But if the image is in a background group nothing seems to work, no matter how the image is refered to. Anyone know why? This isn't an image referenced from disk, by the way, it's on the card. -- 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
HTML Tag Cleaner Fails
I think I am missing thing... I thought this used to work # html tag cleaner, simple no brainer style put "Chapter 1: Great Revolution Recipes" into tHtml set the htmltext of fld "title" to tHtml I get nothing returned at all, field is empty. ?? ___ 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: HTML Tag Cleaner Fails
Hi Sivakatirswami, Maybe the field stays empty because the tag is not a part of the body of the html page. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Download ErrorLib at http://economy-x-talk.com/developers.html and get full control of error handling in Revolution. Op 7-aug-2006, om 0:03 heeft Sivakatirswami het volgende geschreven: I think I am missing thing... I thought this used to work # html tag cleaner, simple no brainer style put "Chapter 1: Great Revolution Recipes" into tHtml set the htmltext of fld "title" to tHtml I get nothing returned at all, field is empty. ?? ___ 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
Plugin visibility
Is there a way to set a plugin so it is invisible when (if) loaded with the IDE, but visible when loaded from the menu? Is there a way for the plugin to tell the difference? Dar 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: Plugin visibility
Hi Dar - Good question. My short answer: no. Sounds like a good feature request. Rephrasing the question: Is there any IDE (stack that isn't opened | flag that isn't set) that always gets opened|set, but isn't opened|set until after all startup plugins are opened? If you know of one, I guess you could use that. I looked at the 'rev' messages you can send to a plugin upon opening, but I don't see anything there that tells you 'what time it is'. Please let us know if you uncover a way. Sounds quite useful. Phil Davis Dar Scott wrote: Is there a way to set a plugin so it is invisible when (if) loaded with the IDE, but visible when loaded from the menu? Is there a way for the plugin to tell the difference? Dar 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: Plugin visibility
Can you not do this from the 'Development' menu in the IDE? I have a menuItem at the bottom of the 'Development' menu called 'plugin settings', where you can define this behaviour for each plugin. Studio 2.7.2, but I'm pretty sure it's been there in prvious versions. Best, Mark On 6 Aug 2006, at 23:31, Dar Scott wrote: Is there a way to set a plugin so it is invisible when (if) loaded with the IDE, but visible when loaded from the menu? Is there a way for the plugin to tell the difference? Dar 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 ___ 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: Plugin visibility
On Aug 6, 2006, at 6:53 PM, Mark Smith wrote: Can you not do this from the 'Development' menu in the IDE? I have a menuItem at the bottom of the 'Development' menu called 'plugin settings', where you can define this behaviour for each plugin. Studio 2.7.2, but I'm pretty sure it's been there in prvious versions. Hmmm. For me I get invisible for both startup and menu. Maybe I'm setting something wrong. Hmmm. It seems I can't turn invisible off, so maybe something else is wrong. Dar ___ 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: Plugin visibility
The settings Mark mentioned are the ones I was referring to in my earlier response. I didn't see a message among them that tells the plugin when (start of session / mid-session) or how (auto / manual) it is being opened. I thought that's what you wanted - so the plugin to make up its own mind whether it should be visible or not. Maybe I missed what you were really asking? Phil Davis Dar Scott wrote: On Aug 6, 2006, at 6:53 PM, Mark Smith wrote: Can you not do this from the 'Development' menu in the IDE? I have a menuItem at the bottom of the 'Development' menu called 'plugin settings', where you can define this behaviour for each plugin. Studio 2.7.2, but I'm pretty sure it's been there in prvious versions. Hmmm. For me I get invisible for both startup and menu. Maybe I'm setting something wrong. Hmmm. It seems I can't turn invisible off, so maybe something else is wrong. Dar ___ 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: Plugin visibility
On Aug 6, 2006, at 7:43 PM, Phil Davis wrote: The settings Mark mentioned are the ones I was referring to in my earlier response. I didn't see a message among them that tells the plugin when (start of session / mid-session) or how (auto / manual) it is being opened. I thought that's what you wanted - so the plugin to make up its own mind whether it should be visible or not. Maybe I missed what you were really asking? I don't think I thought this out. I wanted to tell whether started "Revolution starts up" or "Chosen from Plugins menu", so the stack can override "invisible" for the latter case. But that is only because there didn't seem to be a way to select invisible for the first and not for the latter. It would be nice if that was the case. After thinking about it, I don't think I want to override those settings. But maybe. After all, the tab editor does that. Dar ___ 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: HTML Tag Cleaner Fails
The problem is that "" isn't a supported HTML tag in Rev's formatted text, so nothing shows. If you change the tag to one of those that is supported (see docs), it works fine. Dan On 8/6/06, Sivakatirswami <[EMAIL PROTECTED]> wrote: I think I am missing thing... I thought this used to work # html tag cleaner, simple no brainer style put "Chapter 1: Great Revolution Recipes" into tHtml set the htmltext of fld "title" to tHtml I get nothing returned at all, field is empty. ?? ___ 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 -- ~~ Dan Shafer, Information Product Consultant and Author http://www.shafermedia.com Get my book, "Revolution: Software at the Speed of Thought" From http://www.shafermediastore.com/tech_main.html ___ 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: Sending Messages To API's
On 8/6/06 12:24 AM, "Bridger Maxwell" <[EMAIL PROTECTED]> wrote: > Hey, > I am seeing if it is possible to control the Skype API using Revolution. > The Skype Developer site ( > https://developer.skype.com/Docs/ApiDoc/Using_the_Skype_API_on_Windows) says > to use the WM_COPYDATA command to communicate with Skype, but I have no idea > how to do this. I have used the "open process C:/.../Skype.exe for text > update" command to open Skype, but the write to process yields no results. > I am also not able to receive anything from Skype using the read from > process, or close Skype using close process. Skype shows up in the > openProcesses and the result never shows any errors. Can someone help me > make heads or tails of all this? You would need to have an external written that would be able to send WM_COPYDATA messages and to register the appropriate window messages with Skype. This isn't something that Rev can do "out of the box". 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