Re: sockets - opening and closing
Did you try in adding the line below to your preopenstack script : set the socketTimeoutInterval to 10 thanks for the tip, i'll give it a try in the next revision of my project ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: sockets - opening and closing
Hi Although not directly relevant to the problems discussed, it's probably a good idea to check the result after an open socket statement. It seems that if the connection fails to open due to a name resolution problem, the error is found in the result, not a socketError message. Cheers Dave Cragg ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: custom prop
I don't really understand this yet, but apparently there is a unique relationship between custom properties and arrays. It seems that I can't, then, store an array in a custom property. Here's what I tried, but it causes a runtime error: on mouseUp put A into myArray[1] put B into myArray[2] set the testAry of this card to myArray answer myArray has been created. end mouseUp I'm not trying to switch between different property sets. I just want to store in a custom property an array like any other variable. Is this possible? On 1/29/02 3:56 PM, Kevin Miller [EMAIL PROTECTED] wrote: On 29/1/02 3:46 pm, Devin Asay [EMAIL PROTECTED] wrote: This is great stuff, the first time I've understood what custom property sets are for. But how do you make one set or the other active? put the myArrayName[myKeyName] of btn 1 Or: put the customProperties[myArrayName] of btn 1 into tMyArray Or: set the customPropertySet of btn 1 to myArrayName -- further references will refer to properties in a particular set: put the myKeyName of btn 1 --from set myArrayName Kind regards, Kevin Kevin Miller [EMAIL PROTECTED] http://www.runrev.com/ Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Playing players in sequence
I want to play a series of sound files (xxx.aiff) one after another. I am using Quicktime player objects (as I may need to use MP3's later on). The problem is I can't get them to play one after the other. They all want to play at once. I have tried wait until the sound is done, but this has no effect. I have found playstopped, but cannot see if and how this could assist. initial script: play videoclip sound1 (Use the following handler in sound1 player's script) on playstopped play videoclip sound2 end playstopped (Use the following handler in sound2 player's script) on playstopped play videoclip sound3 end playstopped etc. Note that I have sounds linked to QT players here, and call videoclips. Maybe there's a better way to write this so that you could use a single script, but I'm not sure of the syntax. HTH, Kurt ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: custom prop
At 7:34 am -0400 6/5/02, Ivers, Doug E wrote: I don't really understand this yet, but apparently there is a unique relationship between custom properties and arrays. It seems that I can't, then, store an array in a custom property. Here's what I tried, but it causes a runtime error: on mouseUp put A into myArray[1] put B into myArray[2] set the testAry of this card to myArray answer myArray has been created. end mouseUp I'm not trying to switch between different property sets. I just want to store in a custom property an array like any other variable. Is this possible? Try this: on mouseUp put A into myArray[1] put B into myArray[2] set the customProperties[testAry] of this card to myArray answer myArray has been created. end mouseUp Cheers Dave Cragg ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Playing players in sequence
Hi Kurt and Greg, I want to play a series of sound files (xxx.aiff) one after another. I am using Quicktime player objects (as I may need to use MP3's later on). The problem is I can't get them to play one after the other. They all want to play at once. I have tried wait until the sound is done, but this has no effect. I have found playstopped, but cannot see if and how this could assist. initial script: play videoclip sound1 i am not sure, if this will work. As i remember well, the play command will create a temporary player to play the audio/video and that player will be deleted after the audio/video is finished. So maybe it should read: start player sound1 If your players are on one card, then you could put something like this in the card-script. on playstopped the_player ##the short name of the player that has stopped is an argument to this function switch the_player case sound1 start player sound2 break case sound2 start player sound3 break ... end switch end playstopped Not tested, but should work ;-) Hope this helps. Regards Klaus Major [EMAIL PROTECTED] ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Replacing stacks in the development environment
I was asking myself of how one could replace the script editor, especially what messages one would have to send/ receive for it to function. now before I look into the Rev-development stacks, I would like to know if someone did that already (maybe with another stack ?). I would also like to know if that would be easier to make with a plugin. (as I just don't understand how they work) Any other related hint/comment would be greatly appreciated! ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Please Help
Hello, I have posted this question three times, and have yet to get a response, I am starting to get a complex. Either this is an extremely stupid question, or no one understands it, or just that I am very much disliked. If it is just that no one has an answer, then maybe someone from Rev can help. Here it goes again: I am trying to set the shortcut keys of a button: First, I went into the properties setting of the button and checked the :control key with key h as the shortcut keys. This would not work; it did not execute the button's mouseUp when the keys were pressed. Then I tried scripting in on preopenCard, the set accelMods and accelKey commands that did not work either. I even made sure that the insertion point was not in a field, and even tried turning off the Rev UI, but nothing works. Any help is always appreciated. Thanks Steve __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Please Help
Steve, I just tried this in Rev 1.1 on Windows 2000: 1) Create a button 2) Set its script to on mouseUp;answer Hello;end mouseUp 3) In the properties palette I checked off Control (^) and the with key is h (lower case). 4) Chose the browse tool 5) Typed Control-H ... and the answer box came up just fine. What version of Rev are you using? Are you trying to run this inside Rev's development environment or as a standalone? If in Rev's environment, don't forget that you have to choose the browse tool, otherwise the script won't be executed. I'm assuming this is PC, right? Or is this Mac? Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Steve L [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 06, 2002 11:24 AM Subject: Please Help Hello, I have posted this question three times, and have yet to get a response, I am starting to get a complex. Either this is an extremely stupid question, or no one understands it, or just that I am very much disliked. If it is just that no one has an answer, then maybe someone from Rev can help. Here it goes again: I am trying to set the shortcut keys of a button: First, I went into the properties setting of the button and checked the :control key with key h as the shortcut keys. This would not work; it did not execute the button's mouseUp when the keys were pressed. Then I tried scripting in on preopenCard, the set accelMods and accelKey commands that did not work either. I even made sure that the insertion point was not in a field, and even tried turning off the Rev UI, but nothing works. Any help is always appreciated. Thanks Steve __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Please Help
I am trying to set the shortcut keys of a button: Try this: 1. make a button 2. in the script of the button place: on mouseUp put Help end mouseUp 3. try the button and see if Help pops up. 4. click on a checkbox for the keyboard shortcut input a letter (I just tried command y here on my Mac) 5. try the key combo and see if Help pops up. Does that help you? atb sims ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Where do you put your scripts?
On 5/3/02 11:12 AM, Rob Cozens [EMAIL PROTECTED] wrote: If you have multiple stacks and routines that they all need, put the scripts in the mainStack. Hi Dar, Steve Sarah covered the subject very well, except for one option alluded to above: If you have handlers that are referenced by multiple stacks and multiple applications, place them in the stack script of a library stack and start using stack 'myLibrary' when you open or preopen the stacks that call the handlers. One can create and start using multiple libraries and reorder the libraries in the message hierarchy during runtime. One can also send users updated libraries that will be referenced at runtime without recompiling or linking your application. Based on this advice, I want to set up a stack that centralizes all my most useful functions. What's the best way to include these in the standalone when I'm ready to build it? Is there an easy way to include only the functions that the stand-alone will need? -- D ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Please Help
Hello, I added the on mouseUp--answer hello script to my existing button, works fine when clicked but when the ctrl and h key are pressed it does nothing. So, I created a new button and set it up the exact same way and it works fine when the ctrl and h keys a re pressed. I compared the two buttons and all settings are exactly the same; figure that one out. It works fine now, so thanks for the help. Steve __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: setprops, which property?
Thanks Ken, That is my experience aswell.. Which makes me wonder how I can use setProps with a custompropertyset (since I can't get setprops to work with the name of the either, once a custompropertyset has been assigned)? cheers, /Niklas From: Ken Ray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: setprops, which property? Date: Sun, 5 May 2002 15:57:14 -0500 Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Niklas, I don't think there is currently a way to do that. If you have: setProp myArray theValue -- stuff here pass myArray end myArray ... and you execute set the myArray[10] of this stack to 100, you will trigger the setProp handler, and 'theValue' will contain '100', but you won't be able to retrieve the '10' key. Am I wrong? I'd love it if I were... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Niklas Almesjö [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 1:02 PM Subject: Re: setprops, which property? If I set the customPropertySet to an array, then it seems like setProps only works with the name of this set (not the keyname but the name of the array).. so how do you know which property that was set? Message: 10 Date: Sat, 4 May 2002 20:06:17 -0700 To: [EMAIL PROTECTED] From: Jeanne A. E. DeVoto [EMAIL PROTECTED] Subject: Re: setprops, which property? Reply-To: [EMAIL PROTECTED] At 1:28 PM -0700 5/4/2002, Niklas Almesj- wrote: Just started looking into customproperties, so I'd appreciate a hand.. The setprops message seems interesting, but I don't get how you see which property that has changed. It's the name of the handler: setprop myCustomProperty beep end myCustomProperty The above beeps when you try to set myCustomProperty to a new value. __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
token delimiter
put token 1 of 12:37:03 PM 12 put token 2 of 12:37:03 PM :37:03 Colon is supposedly not a token delimiter yet the first command returns 12 as if it were. Why? jim lambert ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: setprops, which property?
At 1:05 pm -0700 6/5/02, Niklas Almesj wrote: Thanks Ken, That is my experience aswell.. Which makes me wonder how I can use setProps with a custompropertyset (since I can't get setprops to work with the name of the either, once a custompropertyset has been assigned)? cheers, /Niklas From: Ken Ray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: setprops, which property? Date: Sun, 5 May 2002 15:57:14 -0500 Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Niklas, I don't think there is currently a way to do that. If you have: setProp myArray theValue -- stuff here pass myArray end myArray ... and you execute set the myArray[10] of this stack to 100, you will trigger the setProp handler, and 'theValue' will contain '100', but you won't be able to retrieve the '10' key. Am I wrong? I'd love it if I were... Sorry. I missed the beginning of this. Is this what you need? on mouseUp set the myArray[age] of me to very old end mouseUp setprop myArray[whichKey] pValue switch whichKey case name answer Your name is pValue break case age answer You are pValue break end switch end myArray Cheers Dave Cragg ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Where do you put your scripts?
I want to set up a stack that centralizes all my most useful functions. What's the best way to include these in the standalone when I'm ready to build it? Is there an easy way to include only the functions that the stand-alone will need? Hi Doug, A. You can distribute the library as a separate stack, which allows you to update the library in the future without having to build a new distribution, or B. You can include the library as a substack within the stand-alone, which means the library can't get separated from the rest of the app or be viewed by the user. If it's a general-purpose library of Transcript handlers, I wouldn't worry about optimizing a different library for each application. OTOH, if it's a library of .jpeg images, sounds, or other memory hogs, I would consider creating an optimized library sans unnecessary objects. You may also work the other direction: create a clone of your general library and add to it resources specific to each standalone you create. -- Rob Cozens CCW, Serendipity Software Company http://www.oenolog.com/who.htm And I, which was two fooles, do so grow three; Who are a little wise, the best fooles bee. from The Triple Foole by John Donne (1572-1631) ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
RFC/Setting Permissions via Rev or Metacard
Aloha all from beautiful Kauai (where it is raining hard today, helping us keep our reputation for the most rainfall in the world)... Here's the simple question: === Is there a way to read permissions and set permissions of a remote text file over a LAN to files served from volumes on a MACOSX server, from within Metacard or Revolution. The goal, is obviously, to implement some kind of RFC, revision file control. === THE CONTEXT/PROJECT: To create an interface where people who are listening to audio or watching a video file can also collaboratively contribute to cataloging, transcribing, adding key words to some kind of record that is tied (by file name) to the media being screened/studied. I already have the interface for the user to listen to files with facile directory/navigation tools, and controls for moving back and forth easily as well as timers etc. to transcribe into a field below the controls...all of which is complete...actually it started in Supercard and we have been using it for about 5 years for all kinds of things.. and I just ported it to Metacard/Revolution recently (would this be useful to anyone else?). Now we would like to expand this for multi-user collaboration as follows: a) have the user open an audio-video file (usually a lecture, or discourse of some kind, an interview sent from one of our magazine correspondents in another country, raw video footage etc.) then at the same time b) the interface transparently loads a record from the remote server (actually a MAC OSX server on our LAN, but, in the future a SPARC SOLARIS in Honolulu which will allow for international collaboration on such projects) This record is presently conceived of very simply as a simple text file with delimiters (|) for fields, one file per audio. When the user opens the audio the text file is loaded into the fields giving the appearance of a dbase record. c) as they listen to the file they can make notes, pause the audio, transcribe, add keywords, enter a new topic, the interface can record the time on the tape where references are made to a newly entered topic, then later, others can access this topic instantly by clicking on the topic and it will take them to that point in the sound file. d) The only problem is two people listening to the same file at the same time --then ones needs to be able to set a lock on the text file that represents that the record is in use, And dim the edit buttons, but allow for read only. And, ideally, poll the file so that when it was unlocked the buttons would go undimmed... doable with a send in 1 second with msg . So, back to the original question...how can you read and set permissions? I could do this with a raw FTP socket and use standard RFC FTP controls, but, was hoping for a simpler method if one existed... especially for local files on a Mac OSX network, with some clients running MAC OS9.2.2... Applescript? But that won' be portable to team players in India or Malaysia were PC rule. Ideas? Am also open to other strategies... ideally one could have a multi-user stack/server on the server... but at this point I don't think MC allows for that Hinduism Today Sivakatirswami Editor's Assistant/Production Manager [EMAIL PROTECTED] www.HinduismToday.com, www.HimalayanAcademy.com, www.Gurudeva.org, www.hindu.org Read The Master Course Lesson of the Day at http://www.gurudeva.org/lesson.shtml ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Please Help
I have been coding using authoring systems for 10 years and have seen this. An invisible character gets into the code and is their causing the error but it can't be seen. - Original Message - From: Steve L [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 06, 2002 12:05 PM Subject: Please Help Hello, I added the on mouseUp--answer hello script to my existing button, works fine when clicked but when the ctrl and h key are pressed it does nothing. So, I created a new button and set it up the exact same way and it works fine when the ctrl and h keys a re pressed. I compared the two buttons and all settings are exactly the same; figure that one out. It works fine now, so thanks for the help. Steve __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: setprops, which property?
Dave, This is wonderful! Great catch on this... just goes to show you can learn something new every day. ;-) Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Dave Cragg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 06, 2002 4:16 PM Subject: Re: setprops, which property? At 1:05 pm -0700 6/5/02, Niklas Almesj- wrote: Thanks Ken, That is my experience aswell.. Which makes me wonder how I can use setProps with a custompropertyset (since I can't get setprops to work with the name of the either, once a custompropertyset has been assigned)? cheers, /Niklas From: Ken Ray [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: setprops, which property? Date: Sun, 5 May 2002 15:57:14 -0500 Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Niklas, I don't think there is currently a way to do that. If you have: setProp myArray theValue -- stuff here pass myArray end myArray ... and you execute set the myArray[10] of this stack to 100, you will trigger the setProp handler, and 'theValue' will contain '100', but you won't be able to retrieve the '10' key. Am I wrong? I'd love it if I were... Sorry. I missed the beginning of this. Is this what you need? on mouseUp set the myArray[age] of me to very old end mouseUp setprop myArray[whichKey] pValue switch whichKey case name answer Your name is pValue break case age answer You are pValue break end switch end myArray Cheers Dave Cragg ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
How to make standalone smaller
I have a very simple standalone. the stack has 6 fields and 1 button. Total of around 100 lines of code. Very small screen size. I am building this for mac. I checked PPC. The only other stuff checked is Answer dialog remove UI The smallest is 1.9 MB. What is the smallest a standalone can be. Thank you John Cuccio ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Structuring an Application
What's the best way to structure an Application in Rev? Should the main stack be the about window? Since it's first to display. Should the main stack be hidden so you can control the rest of your substacks as windows? Should the main stack be the most used window in the app? I'm not quite sure how to proceed. Many Thanks. -- Dave Retiarius Enterprises ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution