RE: Back to button basics
Tereza, 6. desember 2006 06:30, you wrote If all the buttons do is signal a state change that will be acted on later, I would put the following script in the group: Fantistical, Not only did you help me out - you threw in some lessons too. I'm enlightened and my head is in order. What an absolutely tremendous reply. Big handshake, Jan --- Jan Selid [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: best downloading architecture - vote 1, 2, 3 or 4
Oops, I probably forgot to mention the app is delivered by download :-) So yes, the application will be installed with everything it needs to run, but it needs to download the stuff first. And with QT movies and separate files, I have a list of stuff to download, just trying to figure out the best way to structure it. Speaking of downloads, I probably posted this before, but I would like to offer a generous bounty for anyone who would like to either: 1. write a bittorrent client in Rev (or Rev external) 2. write or alter (license permitting) a faceless bittorrent client (in whatever language) that announces download status either in a text file or sockets On Dec 5, 2006, at 10:25 PM, Richard Gaskin wrote: Josh Mellicker asked: What is your vote? 1 2 3 4 5. none of the above 6: The application is installed with everything it needs to run. Updates can come in over the wire later, but once the installer has run it's ready to go, right then and there. You'd be surprised how many folks download installers and run them later, and later might be on a train or a plane or a spaceship to Mars. Why punish the affluent traveling customer when you could be catering to that desirable demographic instead, for the low cost of a convenient experience for everyone else. When updates are checked, all user interface elements are able to be updated. The splash screen is a user interface element, and as subject to change as anything else, so the only thing in the standalone is an error dialog which no one should ever see unless Something Very Bad happens during install, in which case the user won't be able to see anything other than the first card of the mainstack anyway -- might as well make it count. If boot goes well I can hide that and move on to load the rest of the components. No UI in the standalone means all UI can be updated. I guess if this needs a name we could call it Complete Install with Anchor Stack. I'm sure there's a 7, 8, 43, 1544, and more, but #6 is just what I do. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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: slide with multiples of x?
Here's another similar wee snippet. on mouseUp set the thumbPos of me to round(the thumbPos of me / 20) * 20 end mouseUp :-) Jim Ault wrote: Same result, just a little bit shorter and one less handler, but probably the same speed. on mouseUp get the thumbposition of me set the thumbposition of me to ((it div 20)+( it mod 20 div 10))*20 AdjustLabelPosition end mouseUp You can do a quick test by pasting the following lines in the multi-line message box and hitting the enter key put empty into msg repeat with x = 1 to 109 get ((x div 20)+( x mod 20 div 10))*20 put msg cr x it into msg end repeat and now your msg box is filled with 110 lines of results If you don't like the hard coded numbers try something like put 100/5 into incrm put ((it div incrm)+( it mod incrm div (incrm/2)))*incrm I implemented my own scrollbar value indicator that I move.Here's what I wound up with in my script. I haven't tried this on the Mac yet. I don't like the hard-coded numbers; the might not work on the Mac. It runs on a Mac just fine. Jim Ault Las Vegas On 12/5/06 1:35 PM, Peter T. Evensen [EMAIL PROTECTED] wrote: Hi Eric, Thanks for the pointer. The one key I was missing is scrollbarDrag. I didn't know about that message. I implemented my own scrollbar value indicator that I move.Here's what I wound up with in my script. I haven't tried this on the Mac yet. I don't like the hard-coded numbers; the might not work on the Mac. I'll have to think to see if I can come up with anything better. on mouseUp set the thumbposition of me to NearestThumbPos(the thumbposition of me) AdjustLabelPosition end mouseUp on scrollbarDrag lock screen AdjustLabelPosition unlock screen end scrollbarDrag function NearestThumbPos pPos put pPos div 20 into tNumTwenties put pPos mod 20 into tRemainder if tRemainder = 10 then add 1 to tNumTwenties end if return 20 * tNumTwenties end NearestThumbPos on AdjustLabelPosition put the thumbposition of me into tPos put NearestThumbPos(the thumbposition of me) into field Thumb Pos put (the width of me - 12) / the endValue of me into tPixelsPerValue put the left of me + 6 + tPixelsPerValue * tPos into tThumbLoc put the loc of field Thumb Pos into tFieldLoc put tThumbLoc into item 1 of tFieldLoc set the loc of field Thumb Pos to tFieldLoc end AdjustLabelPosition At 02:46 PM 12/5/2006, you wrote: Hi Peter, The How to Manage Snap to Scrollbars tutorial might help you: How to manage a slider snap-to behavior to make sure that the indicator lines up with the ticks especially on Mac OS X. You will access this tutorial through Tutorials Picker a free plugin that interfaces with the So Smart Software website in order to display all available tutorials stacks directly from the web. You will find it by going to http://www.sosmartsoftware.com/. Revolution/Plugins or Tutorials section. Le 5 déc. 06 à 21:43, Peter T. Evensen a écrit : Is there a built-in way to create a slider that only stops at increments of x (e.g., of 20, from 0 to 100, so 0, 20, 40, 60, 80, 100)? Thanks! Best Regards from Paris, Eric Chatonet -- http://www.sosmartsoftware.com/[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 Peter T. Evensen http://www.PetersRoadToHealth.com 314-629-5248 or 888-682-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 ___ 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: Access Plugins
try communicating with Access driver through js or vbs script. In both js and vbs there is a way to build a dsn-less connections to nearly any type of relational database. A while ago I worked with this from within hta apps, but now went multiplatform with Rev and start forgetting those things... For example this jscript function creates and uses dsn-less connection to execute SQL commands: function dbAccess(sql) { var dbrcd, cString, sql; // Creating ADO Recordset dbrcd = new ActiveXObject( ADODB.Recordset ); //Creating the connection string cString = Driver={Microsoft Access Driver (*.mdb)};DBQ=Tables.mdb; // Create SQL Statement //sql = SELECT * from table1; // Open connection to database dbrcd.Open( sql, cString, 1, 3); while( !dbrcd.EOF ) { // Loop through each field in this record // and add contents to variable for( i = 0; i dbrcd.Fields.Count; i++ ) { record+= dbrcd(i) + ;} //Move to the next record and loop dbrcd.MoveNext(); record+=\n; } return (record); } Although I have never tried creating new database or defining schema with this, but maybe it can be useful in this regard too... Rev studio has open driver close driver handlers, although I have never tried to communicate with Access driver directly from within Rev, could this work ?.. Best regards Viktoras ___ 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: Access Plugins
Don't know if this might be useful (calling it from Rev): http://sourceforge.net/projects/plane-disaster/ Can create new files, you can then zip them up with Rev. From the description: 'PlaneDisaster.NET is a .NET Database front end for JetSQL (Microsoft Access File Format) and sqLite. In addition to basic database browsing and querying, it can create new JetSQL and SQLite files as well as compact and repair JetSQL databases.' It's Windows only. Cheers, Luis. Mikey wrote: All, I have a really interesting project that I'm going to be starting here shortly, but it has a problem - I need to be able to generate Access database files as output (and then zip them). I'd love to be able to do this one in RR, because there will be a significant amount of parsing, and chunk expressions are SO perfect for that. However, if I can't use RR to (easily) generate .mdb files then I'm going to be forced to use one of the other tools at my disposal. Suggestions? Mike. ___ 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
Forgotten variables
Hello everybody, Using RunRev 2.7.4, I declare on preopenstack ... ... global var1 var2 var3 var4 ... ... put my variable into var1 end preopenstack Now, in another card, I would like to use var1, but var1 is empty. Does someone know why? where is my fold? best regards and Thanks in advance Horst ___ 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: Forgotten variables
Hi Horst, If you use the global statement inside a handler, you have to repeat that in all handlers that use the declared variables. If you use global outside a handler, you still have to repeat it at the top of all scripts that use the declared variables. So, you could write global var1,var2,var3,var4 at the top of the card script to use these variables in all handlers of the card script. I've noticed that you use spaces instead of commas to separate variables. Does that work? Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz Op 6-dec-2006, om 12:56 heeft [EMAIL PROTECTED] het volgende geschreven: Hello everybody, Using RunRev 2.7.4, I declare on preopenstack ... ... global var1 var2 var3 var4 ... ... put my variable into var1 end preopenstack Now, in another card, I would like to use var1, but var1 is empty. Does someone know why? where is my fold? best regards and Thanks in advance Horst ___ 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: Forgotten variables
when declaring global variable, it should be declared as global in every handler or function it is used like this: on doThis global var1 put 1 into var1 end doThis on doThat global var1 # answer var1 end doThat otherwise handlers can not see var1 even if it is global in one of them, because the other assumes by default that it is local... Viktoras ---Original Message--- From: [EMAIL PROTECTED] Date: 12/06/06 13:54:53 To: use-revolution@lists.runrev.com Subject: Forgotten variables Hello everybody, Using RunRev 2.7.4, I declare on preopenstack ... ... global var1 var2 var3 var4 ... ... put my variable into var1 end preopenstack Now, in another card, I would like to use var1, but var1 is empty. Does someone know why? where is my fold? best regards and Thanks in advance Horst ___ 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: Forgotten variables
Hi Horst, To declare globals (or local) variables you may use: global gVar1 global gVar2 global gVar3 global gVar4 local tVar1 local tVar1 local tVar1 local tVar1 Declaring a variable per line. Or: global gVar1, gVar2, gVar3, gVar4 local tVar1, tVar2, tVar3, tVar4 Using a single line. Please note: When declaring multiple variables in a row, variables names appear always as a comma delimited list (space is up to you: it's not necessary) Variables names are prefixed to immediately notice in the code their status. Where to declare variables? 1. At the top of an object's script: locals will be script local variables, i.e. accessible by all handlers in the script and global will not need to be declared in any handler that use them in this script. 2. At the beginning of any handler: locals will be only accessible in this handler and globals will have to be declared in each handler that uses them. Hope this helps. Best Regards from Paris, Eric Chatonet Le 6 déc. 06 à 12:56, [EMAIL PROTECTED] a écrit : Hello everybody, Using RunRev 2.7.4, I declare on preopenstack ... ... global var1 var2 var3 var4 ... ... put my variable into var1 end preopenstack Now, in another card, I would like to use var1, but var1 is empty. Does someone know why? where is my fold? best regards and Thanks in advance Horst -- http://www.sosmartsoftware.com/[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
Forgotten Variables - problem is fixed
Hi Mark, Victoras, Eric Thank you for your answers/infos. The problem seems to be fixed It´s always a problem reading and UNDERSTANDING a handbook even if you don´t use your own language :-)) But it´s clear now. have a nice day Horst ___ 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
Loading urls from a protected website
Hi all, To update an application from the web that requires downloading many files, I have built without any problem a process using the non blocking load command allowing to display a progress bar. Now I have protected access to the website folders (usual login and password). So I can no longer use load: the command returns a 401 error (protected access). Normal. I must use ftp that allows to specify a username and a password but I am no longer able to display download progress :-( Your thinking will be welcome :-) Best Regards from Paris, Eric Chatonet -- http://www.sosmartsoftware.com/[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: Loading urls from a protected website
Eric Chatonet wrote: To update an application from the web that requires downloading many files, I have built without any problem a process using the non blocking load command allowing to display a progress bar. Now I have protected access to the website folders (usual login and password). So I can no longer use load: the command returns a 401 error (protected access). If it's protected with htaccess you should be able to embed the login in the URL as with FTP: http://user:password@www.mydomain.com -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.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: Loading urls from a protected website
Here is something I use that generates the *progress data* with ftp and password: on mouseup libURLSetLogField field 2 libURLSetStatusCallback setPercentage,(the long id of this card) --bunches of other stuff put trialStackForClient.rev into FName put url (ftp://user:[EMAIL PROTECTED]/web/ FName) into \ stkToRun go stack stkToRun end mouseup Jim Ault Las Vegas On 12/6/06 7:15 AM, Eric Chatonet [EMAIL PROTECTED] wrote: Hi all, To update an application from the web that requires downloading many files, I have built without any problem a process using the non blocking load command allowing to display a progress bar. Now I have protected access to the website folders (usual login and password). So I can no longer use load: the command returns a 401 error (protected access). Normal. I must use ftp that allows to specify a username and a password but I am no longer able to display download progress :-( Your thinking will be welcome :-) ___ 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: Loading urls from a protected website
Hello Richard and Jim, Thanks to both of you for your suggestions: Richard: trying to add the username and the password to an http url unfortunately does not work. Jim: I did not think of libURLSetLogField and libURLSetStatusCallback: good idea :-) Finally as I did not wanted to have too much code to modify... I ended by using load with a ftp form: put ftp://; tUserName colon tPassword @ tAddress into tUrl load url tUrl -- DisplayProgress tUrl -- And it works like a charm. Best Regards from Paris, Eric Chatonet Le 6 déc. 06 à 16:25, Richard Gaskin a écrit : If it's protected with htaccess you should be able to embed the login in the URL as with FTP: http://user:password@www.mydomain.com -- Richard Gaskin Managing Editor, revJournal Le 6 déc. 06 à 16:48, Jim Ault a écrit : Here is something I use that generates the *progress data* with ftp and password: on mouseup libURLSetLogField field 2 libURLSetStatusCallback setPercentage,(the long id of this card) --bunches of other stuff put trialStackForClient.rev into FName put url (ftp://user:[EMAIL PROTECTED]/web/ FName) into \ stkToRun go stack stkToRun end mouseup Jim Ault Las Vegas On 12/6/06 7:15 AM, Eric Chatonet [EMAIL PROTECTED] wrote: Hi all, To update an application from the web that requires downloading many files, I have built without any problem a process using the non blocking load command allowing to display a progress bar. Now I have protected access to the website folders (usual login and password). So I can no longer use load: the command returns a 401 error (protected access). Normal. I must use ftp that allows to specify a username and a password but I am no longer able to display download progress :-( Your thinking will be welcome :-) -- http://www.sosmartsoftware.com/[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: Back to button basics
On Dec 6, 2006, at 2:25 AM, Jan Sælid wrote: 6. desember 2006 06:30, you wrote If all the buttons do is signal a state change that will be acted on later, I would put the following script in the group: Fantistical, Not only did you help me out - you threw in some lessons too. I'm enlightened and my head is in order. What an absolutely tremendous reply. Big handshake, You're welcome! Normally I'm so slow on the uptake that by the time I type in a reply to anyone, there are already five responses on the list. Last night the speedy answer guys must have been busy (or asleep). After I sent off my reply, though, I thought of one more bit of info. You could avoid having the script in the group (set the hilite of the target to not the hilite of the target) by using checkbox buttons to start with, because checkboxes inherently toggle hilites. Therefore, set their icon properties and leave their autohilite true. You can deal with the button names by hiding them (set their showName to false) or working with their textAlign property and margins. Glad to help, t -- Tereza Snyder Califex Software, Inc. www.califexsoftware.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: Starting iTunes from a Rev button
Hi there, This works: on mouseUp open process /Applications/iTunes.app end mouseUp greetings, William de Smet 2006/12/6, Fredrick Maynor [EMAIL PROTECTED]: Hi, I just read your posting. http://lists.runrev.com/pipermail/use-revolution/2006-November/090776.html I am having a TERRIBLE time getting Revolution to launch an external application. I have no idea what I am doing wrong. You seem to be doing this successfully. Can you give me a quick couple of lines of code you used to do this? Thanks, Fredrick Maynor Managing Director x3009 == Clearlight Pictures Integrated Media for Marketing and Communications 11 Grumman Hill Road, Wilton, CT 06897 203-834-0538 == http://www.clearlightpictures.com -- ICT-coördinator Herman Broerenschool 2612 SP Delft 015-2141066 http://www.hermanbroerenschool-delft.nl ___ 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: Loading urls from a protected website
On 12/6/06 8:28 AM, Eric Chatonet [EMAIL PROTECTED] wrote: Hello Richard and Jim, Thanks to both of you for your suggestions: Richard: trying to add the username and the password to an http url unfortunately does not work. Jim: I did not think of libURLSetLogField and libURLSetStatusCallback: good idea :-) Finally as I did not wanted to have too much code to modify... I ended by using load with a ftp form: put ftp://; tUserName colon tPassword @ tAddress into tUrl load url tUrl -- DisplayProgress tUrl -- And it works like a charm. Glad you got your solution. My steps are meant to be blocking (code execution stops until complete download) since there is no reason to continue until the entire file is downloaded. In other cases, I use the same form so that the data gets put into a local variable that dies at the end of the handler, thus does not stay around in Rev memory. The 'load url someFileSomeWhere ' both continues to download in the background and builds the file in memory in order to cache it. Basically, it is a global that does not die until you quit Rev/the app, or unload url someFileSomeWhere I think of the file/web page cache as Rev downloading the data to memory and giving it a variable name of someFileSomeWhere Also, I think if you are accessing web pages, repeated 'load url' commands to the same url means Rev checks the cache first, and if something is there, it delivers that to your handler, rather than re-downloading. Therefore, the 'unload' is necessary before a 'load url' to be sure you are getting the updated version. Jim Ault Las Vegas Le 6 déc. 06 à 16:25, Richard Gaskin a écrit : If it's protected with htaccess you should be able to embed the login in the URL as with FTP: http://user:password@www.mydomain.com Le 6 déc. 06 à 16:48, Jim Ault a écrit : Here is something I use that generates the *progress data* with ftp and password: on mouseup libURLSetLogField field 2 libURLSetStatusCallback setPercentage,(the long id of this card) --bunches of other stuff put trialStackForClient.rev into FName put url (ftp://user:[EMAIL PROTECTED]/web/ FName) into \ stkToRun go stack stkToRun end mouseup On 12/6/06 7:15 AM, Eric Chatonet [EMAIL PROTECTED] wrote: Hi all, To update an application from the web that requires downloading many files, I have built without any problem a process using the non blocking load command allowing to display a progress bar. Now I have protected access to the website folders (usual login and password). So I can no longer use load: the command returns a 401 error (protected access). Normal. I must use ftp that allows to specify a username and a password but I am no longer able to display download progress :-( Your thinking will be welcome :-) -- http://www.sosmartsoftware.com/[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
Re: Loading urls from a protected website
Jim, Your are completely right: Rev checks the cachedUrls and delivers it from cache if it's there. Anyway, unloading an url you no longer need is not so bad for memory use ;-) Le 6 déc. 06 à 19:04, Jim Ault a écrit : Also, I think if you are accessing web pages, repeated 'load url' commands to the same url means Rev checks the cache first, and if something is there, it delivers that to your handler, rather than re-downloading. Therefore, the 'unload' is necessary before a 'load url' to be sure you are getting the updated version. Best Regards from Paris, Eric Chatonet -- http://www.sosmartsoftware.com/[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: v2.7 engine?
Robert Brenstein wrote: All the older distributions up through 2.6.1 are available at the ftp link Richard mentioned before: ftp://ftp.runrev.com/pub/revolution/downloads/engines/ The latest 2.7 distribution can be downloaded directly from the download web page at the RR site. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com It would be nice if not only the older engines but also current engines were available through ftp, so they are all in one place for download. And earlier 2.7.x distributions do not seem to be readily available. I have checked on this now. There is no restriction or privacy rules about posting the 2.7.x URLs, and RR will try to get all the 2.7 versions uploaded to the FTP site soon. The person who does this is on vacation right now (or as they say across the pond, on holiday) so it may be a week or two before it happens. In the mean time, the 2.7.x releases are freely available to anyone if you know the formula for constructing the correct URL. To do that, go to the downloads page on the web site. Navigate to the download page of the edition you want and copy the link to the posted edition (Media, Studio, or Enterprise.) Paste that into the location bar of your browser. Then all you need to do is change the version number in the link to the version you want to retrieve. For example, the current Studio link to the full download is: http://developer.runrev.com/components/revolution/studio/2.7.4-gm-1/RevStd274Full.dmg To get version 2.7.1, for example, just change all instances of 2.7.4 to 2.7.1, like this: http://developer.runrev.com/components/revolution/studio/2.7.1-gm-1/RevStd2711Full.dmg Note that the version change you need to make exists in two places, both in the directory and the actual file name. -- 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
preventing deletion of linefeds
can anybody suggest a simple method to prevent users deleting linefeeds in a text field when pressing backspace or delete keys. It should allow deletion of any other symbol which is not return and should not use table object at all. What should be added into the handler below? Chunk expression (word 2 of the selectedchunk) 1 does not work... on backspaceKey if ??? then pass backspaceKey end if end backspaceKey BW Viktoras ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: best downloading architecture - vote 1, 2, 3 or 4
Those interested in taking Josh up on his quest of producing a bittorrent external might check out the conspicuously named libtorrent from the guys at Rasterbar. I use their luabind library for all my lua external needs and it works great. http://www.rasterbar.com/products/libtorrent/ -- cb On 12/6/06, Josh Mellicker [EMAIL PROTECTED] wrote: Oops, I probably forgot to mention the app is delivered by download :-) So yes, the application will be installed with everything it needs to run, but it needs to download the stuff first. And with QT movies and separate files, I have a list of stuff to download, just trying to figure out the best way to structure it. Speaking of downloads, I probably posted this before, but I would like to offer a generous bounty for anyone who would like to either: 1. write a bittorrent client in Rev (or Rev external) 2. write or alter (license permitting) a faceless bittorrent client (in whatever language) that announces download status either in a text file or sockets On Dec 5, 2006, at 10:25 PM, Richard Gaskin wrote: Josh Mellicker asked: What is your vote? 1 2 3 4 5. none of the above 6: The application is installed with everything it needs to run. Updates can come in over the wire later, but once the installer has run it's ready to go, right then and there. You'd be surprised how many folks download installers and run them later, and later might be on a train or a plane or a spaceship to Mars. Why punish the affluent traveling customer when you could be catering to that desirable demographic instead, for the low cost of a convenient experience for everyone else. When updates are checked, all user interface elements are able to be updated. The splash screen is a user interface element, and as subject to change as anything else, so the only thing in the standalone is an error dialog which no one should ever see unless Something Very Bad happens during install, in which case the user won't be able to see anything other than the first card of the mainstack anyway -- might as well make it count. If boot goes well I can hide that and move on to load the rest of the components. No UI in the standalone means all UI can be updated. I guess if this needs a name we could call it Complete Install with Anchor Stack. I'm sure there's a 7, 8, 43, 1544, and more, but #6 is just what I do. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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: preventing deletion of linefeds
On 12/6/06 10:42 AM, Viktoras Didziulis [EMAIL PROTECTED] wrote: can anybody suggest a simple method to prevent users deleting linefeeds in a text field when pressing backspace or delete keys. It should allow deletion of any other symbol which is not return and should not use table object at all. What should be added into the handler below? Chunk expression (word 2 of the selectedchunk) 1 does not work... on backspaceKey if ??? then pass backspaceKey end if end backspaceKey Normally I think this is done using a combo box so that one line at a time is edited and the list is select-only (list behavior) If you do try to capture key strokes, you need to decide how would you stop multi-line user select, then a single delete... or multi-line user select, then pressing another key to replace 3 lines with one character. Then there is cut, copy, paste... 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: Access Plugins
Viktoras- Wednesday, December 6, 2006, 2:11:34 AM, you wrote: Although I have never tried creating new database or defining schema with this, but maybe it can be useful in this regard too... Rev studio has open IIRC the Access driver doesn't support the CREATE DATABASE sql command. -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Access Plugins
Well, a couple of things hre, 1) the plane-disaster only supports access97, so that's a bit of a problem. 2) Someone sent me a link to an application called xml-2-mdb, which solves the database creation problem. Now if I can just populate the tables I'm set, other than talking to the piece of hardware that I need to retrieve the data from... -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, This is good. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: preventing deletion of linefeds
Viktoras, here's a handler that will stop the backspace and delete keys working in a text field. I hope I understand you correctly, because I was struggling to think of a use for this! Like Jim says, you may want to handle the cutKey message, etc. This handler blocks multi line selecting and then a keypress if the selection contains a return character. on rawKeyDown pCode if pCode is not among the items of 65288,65535 then pass rawKeyDown put word 2 of the selectedChunk into tStart put word 4 of the selectedChunk into tEnd if tStart = tEnd then put char tStart to tEnd of me into tSelection if return is not among the chars of tSelection then pass rawKeyDown end if else if pCode = 65535 then put tStart into tPos else put tEnd into tPos end if if char tPos of me return then pass rawKeyDown end if end if end rawKeyDown JC Viktoras Didziulis wrote: can anybody suggest a simple method to prevent users deleting linefeeds in a text field when pressing backspace or delete keys. It should allow deletion of any other symbol which is not return and should not use table object at all. What should be added into the handler below? Chunk expression (word 2 of the selectedchunk) 1 does not work... on backspaceKey if ??? then pass backspaceKey end if end backspaceKey BW Viktoras ___ 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
Importing Cyrillic Text
One of my old chestnuts crops up again:- on mouseDown set the useUnicode to true answer file CHOOSE A FILE TO IMPORT if the result = cancel then exit mouseDown put it into NAMESTR open file NAMESTR for read read from file NAMESTR until EOF put it into the field fENTER end mouseDown open a Bulgarian .txt or .rtf file . . . and I get something (on Mac OS X and Win XP) that looks rather like ancient Egyptian heiroglyphs . . . so, obviously, I am going badly wrong help gratefully recieved, sincerely, Richmond Mathewson Its time to do Philosophy and stop worrying about what dead men said. Mathewson 2006 ___ All new Yahoo! Mail The new Interface is stunning in its simplicity and ease of use. - PC Magazine http://uk.docs.yahoo.com/nowyoucan.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: preventing deletion of linefeds
Thanks! The story is that once I had lots (around 200 pages) of lengthy tables on marine species printed in old reports to be fed into a database. Used fine reader to scan those tables and convert to a tab delimited text. As the quality of image to text conversion output is not 100%, the task is to fix these tables. Some records are descriptive and quite lengthy, so I split the table line into pieces with returns and put them into a separate long field where each record can be easily seen and edited or merged with the previous one. I needed to trap deleteKey or backspaceKey messages to prevent accidental deletions, but allow them if they are explicitly selected. Thanks for your help :-) and all the best! Viktoras ___ 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: Thank you for all of the help
Well, say what you want, but as a psychologist I am of two minds about schizophrenia. :-) On 6-Dec-06, at 11:00 AM, [EMAIL PROTECTED] wrote: Schizophrenia has ***nothing*** to do with multiple personality disorders. Forget Sybil it was a total joke and a lie. Think more A beautiful Mind which shows (one form) of schizophrenia - that of paranoid delusions. There are others - but multiple personality disorders do not in anyway portray symptoms of schizophrenia. -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -Dr. John R. Vokey ___ 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
Revolution and the Web, focus on IDE Add-ons
Hello folks, I've seen my little topic grew to the point of not being related to the thing I had in mind anymore. People here talking about morfik and about engine changes, I want again to try to focus on what can be done now by a group of volunteers by using nothing but revolution ide add-ons... no externals, no engine changes, no third party technologies (except maybe xsltproc which is standard on unix machines). Let us try to focus on a tool that picks a given stack, process it and exposes user selected methods as a RPC endpoint. The RPC system should be simple enough so that we can implement the other side of it in javascript. This alone will greatly help what we're doing. We're babies on web development, let us take baby steps. Objective of this first phase: * Create a Remote Procedure Call system that is able to expose revolution handlers or functions as something accesible by a networked client. Implement this as a selfcontained library, no magic stuff, just plain code. (possibly REST inspired) * Create a plugin thing to help with the RPC code, maybe allowing you to select methods on the topstack to be exposed and thus having the tool write the stubs for it. * Create the javascript library to access that RPC system. * Create a tool that writes glue code to match revolution exposed methods to javascript methods thus hiding the RPC side from the developer. I think those are reasonable objectives for a first experiment, what people here think? Cheers andre ___ 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: Importing Cyrillic Text
On Dec 6, 2006, at 1:20 PM, Richmond Mathewson wrote: One of my old chestnuts crops up again:- The useUnicode property is a common trap, because scripters tend to think that it is more powerful than it actually is. It should really be called the useTwoByteCharsWithCharToNumAndNumToChar property, because it only affects the charToNum and numToChar functions, by having them look at two byte characters instead of single byte characters. on mouseDown set the useUnicode to true answer file CHOOSE A FILE TO IMPORT if the result = cancel then exit mouseDown put it into NAMESTR open file NAMESTR for read read from file NAMESTR until EOF put it into the field fENTER end mouseDown open a Bulgarian .txt or .rtf file . . . Here's what you want to do. First, you have to know how the text file is encoded. If it's an RTF file you can try using the rtfText property: answer file Choose a RTF file. if it is empty then exit mouseUp set the RTFText of field Stuff to URL (file: it) Let's assume it's in UTF-16, the most common unicode format, you would do something like this: answer file Choose a unicode file to read in. if it is empty then exit mouseUp put binfile: it into urlName set the unicodeText of fld display to url urlName If the text is UTF-8, a common format on the Web, you would have to encode it to utf-16 upon reading it, like this: answer file Choose a UTF-8 file to read in. if it is empty then exit mouseUp put url (binfile: it) into tRaw set the unicodetext of fld display to \ uniencode(tRaw,UTF8) If it's in another encoding it get's dicier, but these techniques are reliable for unicode files. HTH Devin Devin Asay Humanities Technology and Research Support Center Brigham Young University ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: best downloading architecture - vote 1, 2, 3 or 4
On Dec 6, 2006, at 12:45 PM, chris bohnert wrote: Those interested in taking Josh up on his quest of producing a bittorrent external might check out the conspicuously named libtorrent from the guys at Rasterbar. I use their luabind library for all my lua external needs and it works great. Lua seems a very attractive language. What do you use it for? Any relation to your Rev work? I particularly appreciated the following (from http:// en.wikipedia.org/wiki/Lua_programming_language): Table as structure Tables are often used as structures (or objects) by using strings as keys. Because such use is very common, Lua features a special syntax for accessing such fields. Example: point = { x = 10, y = 20 } -- Create new table print( point[x] )-- Prints 10 print( point.x ) -- Has exactly the same meaning as line above Table as array By using a numerical key, the table resembles an array data type. A simple array of the strings: array = { a, b, c, d } -- Indexes are assigned automatically print( array[2] )-- Prints b An array of objects: function Point(x,y) -- Point object constructor return {x = x, y = y} -- Creates and returns a new object (table) end array = { Point(10,20), Point(30,40), Point(50,60) } -- Creates array of points print( array[2].y )-- Prints 40 t -- Tereza Snyder Califex Software, Inc. www.califexsoftware.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
private handlers in a public library
What are the best practices for hiding private handlers in a public library? I Googled 'private handler' site:lists.runrev.com and similar terms without finding the answer. If the topic's been covered and I missed it, please excuse me. Here's a technique that uses the executionContexts: on privateHandlerInPublicLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass privateHandlerInPublicLibrary end privateHandlerInPublicLibrary function privateFunctionInLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass privateFunctionInLibrary end privateFunctionInLibrary getprop uPrivatePropertyInLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass uPrivatePropertyInLibrary end uPrivatePropertyInLibrary setprop uPrivatePropertyInLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass uPrivatePropertyInLibrary end uPrivatePropertyInLibrary Object backScripts would make it simpler, but what's best now? -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: private handlers in a public library
Depending on what you need to achieve, you can put data in script locals in your library, write some setter and getter handlers (an interface, if you like), and then the data is private... Other than that, you might hide the handlers in objects in the library stack, and use a lot of sends. Seems like it would be a lot of trouble, your way seems better, but with the caveat that the execution contexts is 'unsupported' (private?) and might concievably change in the future, breaking your library. Of course, if you really want to hide things, you could password protect your library, and only tell it's users about the handlers you want them to know about. Best, Mark On 7 Dec 2006, at 01:24, Dick Kriesel wrote: What are the best practices for hiding private handlers in a public library? I Googled 'private handler' site:lists.runrev.com and similar terms without finding the answer. If the topic's been covered and I missed it, please excuse me. Here's a technique that uses the executionContexts: on privateHandlerInPublicLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass privateHandlerInPublicLibrary end privateHandlerInPublicLibrary function privateFunctionInLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass privateFunctionInLibrary end privateFunctionInLibrary getprop uPrivatePropertyInLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass uPrivatePropertyInLibrary end uPrivatePropertyInLibrary setprop uPrivatePropertyInLibrary if item 1 of line -2 of the executionContexts is long id of me then return the params the long time -- i.e., private stuff else pass uPrivatePropertyInLibrary end uPrivatePropertyInLibrary Object backScripts would make it simpler, but what's best now? -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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: Loading urls from a protected website
On Dec 6, 2006, at 7:15 AM, Eric Chatonet wrote: Now I have protected access to the website folders (usual login and password). So I can no longer use load: the command returns a 401 error (protected access). Normal. I must use ftp that allows to specify a username and a password but I am no longer able to display download progress :-( Your thinking will be welcome :-) Hi Eric, You should be able to use load with authorization callbacks. Look at Mark Waddingham's libAuth stack in RevOnline. The username is 36degrees. The stack script shows an example which hopefully will work for you. -- Trevor DeVore Blue Mango Learning Systems - www.bluemangolearning.com [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: private handlers in a public library
On Dec 6, 2006, at 6:24 PM, Dick Kriesel wrote: I Googled 'private handler' site:lists.runrev.com and similar terms without finding the answer. If the topic's been covered and I missed it, please excuse me. Some folks use a prefix for library command and function names and an extension of that for the private names. I think your checking method is pretty clever and can be handy. Though the cost of a couple lines and a few microseconds might be much for small handlers, this might work OK for larger handlers. You might be interested in feature request 1443 listed in Bugzilla. Dar Scott Revolution is just the beginning. -- Rose Wilder Lane ___ 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: private handlers in a public library
On 12/6/06 10:59 PM, Dar Scott [EMAIL PROTECTED] wrote: You might be interested in feature request 1443 listed in Bugzilla. Zarro Boogs found. I wonder why an old bug number's data would disappear. -- Dick ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Delay before sound starts playing
Recently, Fred Moyer wrote: I'm trying to create a stack where the user can play a solo instrument along with a sound file that plays an accompaniment. ... The problem is that if there's too long a delay with no input from the user, the computer's sound system seems to goes into some kind of hibernation mode so that when the user clicks the mouse, there is a delay before the music starts again. (I notice that there's even a delay in beep in Revolution if the computer has been silent for a while.) Has anyone else dealt with this issue? Any possible solutions? I've run into something like this a while ago. Is it possible that this is an older version of Mac OSX and/or an older version of Rev? In any event, I got sidetracked and never followed up on it, but I seem to recall thinking about trying to play silence sporadically to keep the audio busy -- maybe making a 1 second WAV file of silence to occupy the engine/system and playing it every so often. Silence might not be enough to keep the audio busy, but it's worth a try... Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.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-2: Importing Cyrillic Text
Hi Save any language text in UTF8: put uniDecode(unicodetext of field bibeltext,UTF8) into URL file:C:/test.txt Load any language text from a file encoded in UTF8 to a runrev field: set the unicodetext of field bibeltext to uniEncode(URL file:C:/test.txt,UTF8) Save any language text from a field to a html-page for viewing in a browser works even with hebrew and arabic texts runrev cannot display correct but encodes internally correctly. put htmltext of field bibeltext into URL file:C:/test.html This should function in most cases Regards, Mit freundlichen Grüßen Franz Böhmisch [EMAIL PROTECTED] http://www.animabit.de GF Animabit Multimedia Software GmbH Am Sonnenhang 22 D-94136 Thyrnau Tel +49 (0)8501-8538 Fax +49 (0)8501-8537___ 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