Problem when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret
Hi, After hours of unsuccessfull trials to understand where I am making a mistake I make up my mind to ask for help If I summarize my script : I have two stacks : stackOne and stackTwo In the script of a button in stackOne I put a text of several lines in a variable, say, thisText then the

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread Malte Brill
Andre, have you declared the global in the script of stack2? global thisText put thisText into line 1 of fld myField All the best, malte ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread Malte Brill
Sorry, seems I misread your post. :-) does put thisText into line 1 of fld “thisField” of stack stackTwo work instead of going there? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Base64 conversion

2007-07-10 Thread Mark Smith
Here it is - an RC4 implementation in for Revolution: function rc4 pText, pKey -- initialize repeat with i = 0 to 255 put i into S1[i] end repeat put 0 into i repeat with n = 0 to 255 add 1 to i if i length(pkey) then put 1 into i put charToNum(char i of pKey) into

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread Eric Chatonet
Bonjour André, I tried the following: on mouseUp local ThisText - put a,b,c into ThisText replace comma with cr in ThisText go to stack StackTwo put ThisText into line 1 of fld ThisField end mouseUp And it worked as expected. The only thing I notice in your script is that you

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread Jim Ault
try using the following at the point you are thinking you are in stack stackTwo: put the short name of this stack into msg I think you will find you are not navigating as you think you should go to stackTwo -- should not work go to stack stackTwo should work. There is an exception to my

SpecialFolderPath(26) on Vista

2007-07-10 Thread Signe Marie Sanne
Has anybody any experience with writing files to this folder on Vista? Will it still be open, or do I have to write the files to another folder? What about c:/temp? Signe Marie Sanne ___ use-revolution mailing list use-revolution@lists.runrev.com

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret
Thanks to Malte, Éric and Jim for their answers. To Malte : does put thisText into line 1 of fld “thisField” of stack stackTwo work instead of going there? No, this works not better. To Éric and Jim : Sorry, my message was not enough precise : In my script, actually, I have the correct

Re: OT - shell script to kill a process

2007-07-10 Thread Chris Sheffield
Excellent. Thanks, Chris. On Jul 9, 2007, at 4:06 PM, chris bohnert wrote: killall ProcessName should do what you want -- cb On 7/9/07, Chris Sheffield [EMAIL PROTECTED] wrote: My Unix scripting knowledge leaves a bit to be desired, so I thought I'd ask here for some help. I have a Vise

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread Ralf Bitter
André, did a test with two stacks as in your description and it worked as expected, line 1 was not empty. Mac OS 10.4.10, Rev 2.8.1 471 Ralf Bitter On 10. Jul 2007, at 11:56, André.Bisseret wrote: Hi, After hours of unsuccessfull trials to understand where I am making a mistake I make up

Re: SpecialFolderPath(26) on Vista

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 13:39:52 +0200, Signe Marie Sanne wrote: Has anybody any experience with writing files to this folder on Vista? Will it still be open, or do I have to write the files to another folder? What about c:/temp? SpecialFolderPath(26) is perfectly fine to write to on Vista -

Regular Expression Question

2007-07-10 Thread Len Morgan
I need to find the last matching character offset of a string withing another string. The offset function only gives me the first one. Is there a function I'm missing (like offset from end of string) or a one or two liner I can use? Example: approved_by_code - I'm looking for the offset to

Re: SpecialFolderPath(26) on Vista

2007-07-10 Thread Signe . Sanne
Thank you, Ken Signe Marie SpecialFolderPath(26) is perfectly fine to write to on Vista - This is the user-specific Application Data folder, so since it's user-specific, it is completely writeable. I've used this already on a Vista project with both Admin and non-admin users, as well as

RC4 implementation (was Re: Base64 conversion)

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 11:06:48 +0100, Mark Smith wrote: Here it is - an RC4 implementation in for Revolution: Thanks, Mark! But I ran your code using the test vectors at the Wikipedia site (http://en.wikipedia.org/wiki/RC4) and I don't get the same results that they identify you should get - I

Re: Open mail on Windows

2007-07-10 Thread Ken Ray
On Mon, 09 Jul 2007 14:44:03 +0200, Signe Marie Sanne wrote: On Windows NT, with latest engines and MetaCard 2.8.1, the following script does not work any more. Suggestions? Yes, try this (it's a stripped down version of my stsGoURL function): on OpenMail pMailToURL switch (the platform)

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 14:05:41 +0200, André.Bisseret wrote: and I know that it goes there ; the fleld of stack stackTwo is actually filled, but infortunately without line 1 of the text I put in the variable. Do you have a field of the same name on the stack you're starting from? If so, is it

Re: Regular Expression Question

2007-07-10 Thread Gordon Tillman
Len try this in the message box: put approved_by_code into tFind get matchText(tFind, ^(.*?)[^_]*$, p1) put len(p1) that outputs 12. And with a string that contains no _ it outputs 0 --gordy On Jul 10, 2007, at 09:55, Len Morgan wrote: I need to find the last matching character offset of a

Re: RC4 implementation (was Re: Base64 conversion)

2007-07-10 Thread Mark Smith
Yes, the output is just a string of bytes (chars). In use, one would probaly want to base64Encode it for transmission over the net, or show the hex numbers. I did test using the test vectors at http://www.mozilla.org/projects/security/pki/nss/draft-kaukonen- cipher-arcfour-03.txt and

Re: Regular Expression Question

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 09:55:18 -0500, Len Morgan wrote: I need to find the last matching character offset of a string withing another string. The offset function only gives me the first one. Is there a function I'm missing (like offset from end of string) or a one or two liner I can use?

Re: OT - shell script to kill a process

2007-07-10 Thread Chris Sheffield
Well, Ken. It turns out I think I need to go with your method. The 'killall' command is definitely more concise, but it turns out that I am going to have to do a partial search on the path to the process exe just to make sure I get the right one, and killall doesn't seem to allow that.

Re: Differences in handling german Umlaute of Runrev

2007-07-10 Thread Ken Ray
On Mon, 9 Jul 2007 13:35:23 +0200, Tiemo Hollmann TB wrote: There are so many differences, that I don't want to describe them all here. I created a test stack to show the differences and put it under my name Tiemo on revonline. So if anyone is interested and wants to give me a feedback of

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret
Ken, Actually it was a dummy mistake I made as I explain in my precedent post (I was rewriting twice the same thing in line 1). I did not see it for a long time as I was too much polarized on other trails ! I am very sorry, please excuse me. Thanks a lot for you answer Best regards from

Correction - Re: Regular Expression Question

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 10:20:10 -0500, Ken Ray wrote: You'd get 9,9 in the message box - the first hit. So you need to reverse the greediness of the match using the (?U) directive. This one works to find the last occurrence: on mouseUp if matchChunk((?U)approved_by_code,(_),tStart,tEnd)

AW: Differences in handling german Umlaute of Runrev

2007-07-10 Thread Tiemo Hollmann TB
Wow, great work Ken! So the result is, that there are not only differences between the umlaute, the method of comparison, the platform, but also the country version of windows. On my german XP Windows, where I created the rev and the standalone and played the standalone all twelve comparisons

Re: OT - shell script to kill a process

2007-07-10 Thread Chris Sheffield
Okay, I think I figured out the problem. The pid as returned from ps has a different number of leading spaces depending on the number of digits in the pid. So using a set value for the -f option doesn't seem to work. For example, if the pid has four digits, using 2 works since the pid has

Re: OT - shell script to kill a process

2007-07-10 Thread chris bohnert
Chris, Try this: ps -awx | awk '{print $2}' if that prints you a list of pid's you should be good to replace the cut pipe with the awk command. By the way, what version of os X are you running..mine doesn't seem to behave as you describe. -- cb On 7/10/07, Chris Sheffield [EMAIL PROTECTED]

Re: OT - shell script to kill a process

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 09:28:01 -0600, Chris Sheffield wrote: I've got another question for you though. It concerns the 'cut -d\ -f2' part of this. This doesn't seem to be working correctly. Can you explain more what's supposed to happen here? Yes, the cut basically extracts a delimited

confirming the insert cursor bug

2007-07-10 Thread Charles Silverman
The insert cursor bug seems to happen only on intel macs running rev 2.8.1. cheers, -Charles ___ Charles Silverman, M.Ed. SNOW Coordinator - http://snow.utoronto.ca Adaptive Technology Resource Centre Faculty of Information, University of Toronto phone: 416.946.8301 or

Re: OT - shell script to kill a process

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 10:55:14 -0600, chris bohnert wrote: Chris, Try this: ps -awx | awk '{print $2}' if that prints you a list of pid's you should be good to replace the cut pipe with the awk command. By the way, what version of os X are you running..mine doesn't seem to behave as

Re: OT - shell script to kill a process

2007-07-10 Thread Chris Sheffield
Excellent. That seems to work just fine. Although I had to change the 2 to 1, since the pid is the first column returned. I'm running 10.4.10. What's different on yours? On Jul 10, 2007, at 10:55 AM, chris bohnert wrote: Chris, Try this: ps -awx | awk '{print $2}' if that prints you a

Re: AW: Differences in handling german Umlaute of Runrev

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 18:00:48 +0200, Tiemo Hollmann TB wrote: Wow, great work Ken! So the result is, that there are not only differences between the umlaute, the method of comparison, the platform, but also the country version of windows. On my german XP Windows, where I created the rev and

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret
Malte, Éric, Jim, and Ralf, I found my mistake (too diffiicult to explain and not interesting ; by and large, I was simpy writing twice the same text into line 1, and as I emptied the var meanwhile, line 1 was empty while line 2, 3 etc. were remaining) I am feeling ridiculous :-(( I am

Re: OT - shell script to kill a process

2007-07-10 Thread Chris Sheffield
Tried this. All parts seem to work except now I'm getting an operation not permitted error from the kill command. I'm running it with sudo, so I don't understand why this would happen. But I did verify that the correct pid is now getting returned. In fact, the entire error message reads,

Re: What I did with Rev last night

2007-07-10 Thread Mark Talluto
On Wed, 4 Jul 2007, J. Landman Gay wrote: It is so satisfying to be able to write whatever I need. Anyone else done little personal stacks with Rev lately? I just wrote an app that I have needed for some time. It keeps my external hard drives from going to sleep. I may be working them

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread Jim Ault
On 7/10/07 8:22 AM, André.Bisseret [EMAIL PROTECTED] wrote: Nevertheless, I did not waste my time completely : when searching my error, I tried by chance to put my var in line 0 of the field and I discovered that actually, a field has a line 0 In fact, it seems to be quasi synonymous of

launch app from browser

2007-07-10 Thread Lars Brehmer
Quick, easy question; I need to launch a standalone from within a web browser, but I know absolutely zero html etc. This would be an html file either installed on a user's hard drive or being read from a CD-rom with Firefox, Explorer, Safari, etc. The standalone is already installed on

Re: launch app from browser

2007-07-10 Thread Stephen Barncard
Quick, easy question; I need to launch a standalone from within a web browser, Why? but I know absolutely zero html etc. well it's simple... play around with the OS cross-platform NVU and switch back and forth between compose and HTML. you'll learn quickly and can hack it right there.

localizing software

2007-07-10 Thread Mark Talluto
I need to localize one of my apps for different languages. I remember talking with Trevor about this at a SoCalRev Meeting a while back. I just don't remember the details. How are you guys handling multi-lang versions of your software? I remember him storing it in a custom property.

Re: use-revolution Digest, Vol 46, Issue 17

2007-07-10 Thread James Hurley
Wilhelm Sanke wrote: Hello Jim, your inventive script for the pencil tools proves once more that there are more than one or two approaches to achieve specific effects in x-talk languages. This is what most of us appreciate very much, and it surely challenges the creativeness of x-talk

Re: Starting at square one with image processing

2007-07-10 Thread James Hurley
(Damn, I forgot to include the subject in my post, so here it is again.) Wilhelm Sanke wrote: Hello Jim, your inventive script for the pencil tools proves once more that there are more than one or two approaches to achieve specific effects in x-talk languages. This is what most of us

Re: localizing software

2007-07-10 Thread SimPLsol
Mark, One thing often overlooked when preparing a stack for localization is to have extra-wide label fields. English is a relative compact language and if you have not created wide enough label fields you'll soon find that translated labels don't fit. As to the question: Custom properties would

Re: Can't open my Norton Ghost backup

2007-07-10 Thread Derek Bump
Bill, Well, after attempting to import the files, Norton Ghost went through all of them and then presents me with an error message... and crashes. I think we're on the right track though, so I'm going to attempt to restore the backup on another system to see if it's a program incompatibility or

Re: What I did with Rev last night

2007-07-10 Thread Timothy Miller
I missed most of this thread, but I'm getting it by context, I think. So, here's my bit. I'm thinking about writing another book, and remembering all the difficulty I had with the last one. So, I'm cobbling together a stack that will help me write more comfortably and efficiently this time.

Re: localizing software

2007-07-10 Thread Ken Ray
On Tue, 10 Jul 2007 11:27:23 -0700, Mark Talluto wrote: I need to localize one of my apps for different languages. I remember talking with Trevor about this at a SoCalRev Meeting a while back. I just don't remember the details. How are you guys handling multi-lang versions of your

revCopyFolder

2007-07-10 Thread Stephen Barncard
I'm trying to use revCopyFolder - getting an 'execution error' I'm trying to use a URL for the source but no examples are shown in the docs. Does this even work with a net URL? thanks, sqb --- code snippet put returnQTMoviesFolder() into destinationFolder put kRootRemoteDir into

Re: revCopyFolder

2007-07-10 Thread Jim Ault
issue 1: does the destination folder exist? you may have to delete it using the revDeleteFolder command, esp if there are any files inside. Just delete folder will not work. issue 2: try using if there is a folder sorce then answer found it cr sorce if there is a folder dest then answer found

Re: for anyone curious about Linux byond Ubuntu...

2007-07-10 Thread Mark Wieder
OK - I tried it out. Can't say I much care for it. Maybe that's why he wanted me to pay before looking... g I'm in favor of rethinking HIGs, but this is pretty extreme: I've somehow gotten used to labels and/or tooltips instead of eye-candy icons to tell what's what. The dock at the bottom

Re: revCopyFolder

2007-07-10 Thread J. Landman Gay
Stephen Barncard wrote: I'm trying to use revCopyFolder - getting an 'execution error' I'm trying to use a URL for the source but no examples are shown in the docs. Does this even work with a net URL? Don't think so. On Macs, revCopyFolder uses AppleScript to copy the folder and on Windows

Re: Problem when filling first line of a field with a text variable

2007-07-10 Thread André.Bisseret
Thanks Jim, Okaay ! I better understand now Something I did not know (among a lot of things). I thought I had made a revolutionary discovery ;-))) André Le 10 juil. 07 à 19:25, Jim Ault a écrit : On 7/10/07 8:22 AM, André.Bisseret [EMAIL PROTECTED] wrote: Nevertheless, I did not waste my

Re: the pencil

2007-07-10 Thread Jonathan Cooper
I'm from Sydney (well, I live in Gosford, but I work in Sydney). And I'd be interested in meeting other Rev users/developers. Regards, Jonathan On 7/4/07, Alex Shaw [EMAIL PROTECTED] wrote: hello from brisbane ;) regards alex [EMAIL PROTECTED] wrote: Hi Scott, Yes it would be good to

FTP and HTTP resume?

2007-07-10 Thread David Bovill
Dave if you are out there - what would it take to add the ability to resume ftp and http downloads the way that browsers and ftp clients are able to? I can do pretty well everything in Rev - the only thing missing is the ability to recover from a problem or to quit and continue downloading the