AW: AW: Runrev using Perl
Hello Bob, Linux in germany is not that wide spread at standard users. It is very popular in university sceens and computer freaks. I tried your picture chooser from your old site. Though I didn't get it to run yet - XP, 2.8.1(after including a path into the ini, the program just hangs and does nothing) I got an idea how to communicate. Your exe just outputs a txt file, which you read into runrev - quite easy! Thank you, Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Bob Warren Gesendet: Dienstag, 5. Juni 2007 06:19 An: use-revolution@lists.runrev.com Betreff: Re: AW: Runrev using Perl Tiemo wrote: Servus Franz, nice to meet you again. Interesting things you're doing there :) I am not familiar with shell commands yet, nor perl, but how do you get a result from the shell execution back into a runrev field feedback? Tiemo -- Hi Tiemo, I do something similar with Rebol scripts or standalones. The easy way to get results back is to delete any existing relevant output file on the HD from Perl first, and after calling your Perl module to do its job, poll the existence of its output file on the HD until it appears, and when it does, put it into the RunRev field. For an example of simple shell calls and this kind of polling, see my Linux chooser widgets at http://www.howsoft.com/runrev/stacks.htm . The demo pack you can download there is a standalone program, but there is a button you can click on to see the coding for the shell calls and polling. Or if you are using Windows, you can visit the old page (see the link at the top of the page mentioned above) and see the coding in the Choose File and Choose Picture buttons of the demo stack. For an example of the hybrid use of Rev+Rebol, you might be interested in downloading my Spam Gobbler program at http://www.howsoft.com/linux/ and http://www.howsoft.com/linux/spamgobbler/ . But that's Linux again, which I believe is quite popular in Germany, isn't it? Bob ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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
AW: AW: Runrev using Perl
Bob, roll back, I got it to run. Just did the wrong download at the right of the page, version 4.8. With 5.8 it works perfect! Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Tiemo Hollmann TB Gesendet: Dienstag, 5. Juni 2007 09:53 An: 'How to use Revolution' Betreff: AW: AW: Runrev using Perl Hello Bob, Linux in germany is not that wide spread at standard users. It is very popular in university sceens and computer freaks. I tried your picture chooser from your old site. Though I didn't get it to run yet - XP, 2.8.1(after including a path into the ini, the program just hangs and does nothing) I got an idea how to communicate. Your exe just outputs a txt file, which you read into runrev - quite easy! Thank you, Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Bob Warren Gesendet: Dienstag, 5. Juni 2007 06:19 An: use-revolution@lists.runrev.com Betreff: Re: AW: Runrev using Perl Tiemo wrote: Servus Franz, nice to meet you again. Interesting things you're doing there :) I am not familiar with shell commands yet, nor perl, but how do you get a result from the shell execution back into a runrev field feedback? Tiemo -- Hi Tiemo, I do something similar with Rebol scripts or standalones. The easy way to get results back is to delete any existing relevant output file on the HD from Perl first, and after calling your Perl module to do its job, poll the existence of its output file on the HD until it appears, and when it does, put it into the RunRev field. For an example of simple shell calls and this kind of polling, see my Linux chooser widgets at http://www.howsoft.com/runrev/stacks.htm . The demo pack you can download there is a standalone program, but there is a button you can click on to see the coding for the shell calls and polling. Or if you are using Windows, you can visit the old page (see the link at the top of the page mentioned above) and see the coding in the Choose File and Choose Picture buttons of the demo stack. For an example of the hybrid use of Rev+Rebol, you might be interested in downloading my Spam Gobbler program at http://www.howsoft.com/linux/ and http://www.howsoft.com/linux/spamgobbler/ . But that's Linux again, which I believe is quite popular in Germany, isn't it? Bob ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ 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
Runrev using Perl
Hi, Last week I needed some functions runrev doesn't supply but Perl does. I am working on win and have ActivePerl or Sieperl installed on the PCs. Therefore I wrote a script, which dynamically runs a perl script from runrev. Create a field perl, put the perl prog in it, remove all comments = text in a line after # (or write the script for doing this). Create a field feedback. Make a button with the script: on mouseUp put field perl into perlprog replace cr with empty in perlprog put perl -e quote perlprog quote into cmdstring set the hideconsolewindows to true put shell(cmdstring) into field feedback end mouseUp I tested it with some normal scripts (the result of the script will be expressed in field feedback). This allows using Perl modules as extensions of runrev. You can of course run any perl script from runrev in a file (the normal way) with shell(perl fileloc) Second I tested (on win) some GUI-Skripts in Perl using PerlTk: use Tk; my $meinFenster = MainWindow-new; $meinFenster-Label( -text=Servus )-pack; $meinFenster-Button(-text = Schluss, -command = [$meinFenster = 'destroy'] )-pack; MainLoop; On Win and Linux this creates a small GUI window. On Mac there normally is no PerlTk implementation - you have to install it on your own if you need. Tk allows to offer an interface for configuration of parameters of the perl script during runtime. I will put this info on my (still rudimentary) runrev web pages at http://animabit.de/runrev Regards, Franz 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 To: use-revolution@lists.runrev.com Cc: [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
AW: Runrev using Perl
Servus Franz, nice to meet you again. Interesting things you're doing there :) I am not familiar with shell commands yet, nor perl, but how do you get a result from the shell execution back into a runrev field feedback? Tiemo -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Montag, 4. Juni 2007 09:40 An: use-revolution@lists.runrev.com Cc: [EMAIL PROTECTED] Betreff: Runrev using Perl Hi, Last week I needed some functions runrev doesn't supply but Perl does. I am working on win and have ActivePerl or Sieperl installed on the PCs. Therefore I wrote a script, which dynamically runs a perl script from runrev. Create a field perl, put the perl prog in it, remove all comments = text in a line after # (or write the script for doing this). Create a field feedback. Make a button with the script: on mouseUp put field perl into perlprog replace cr with empty in perlprog put perl -e quote perlprog quote into cmdstring set the hideconsolewindows to true put shell(cmdstring) into field feedback end mouseUp I tested it with some normal scripts (the result of the script will be expressed in field feedback). This allows using Perl modules as extensions of runrev. You can of course run any perl script from runrev in a file (the normal way) with shell(perl fileloc) Second I tested (on win) some GUI-Skripts in Perl using PerlTk: use Tk; my $meinFenster = MainWindow-new; $meinFenster-Label( -text=Servus )-pack; $meinFenster-Button(-text = Schluss, -command = [$meinFenster = 'destroy'] )-pack; MainLoop; On Win and Linux this creates a small GUI window. On Mac there normally is no PerlTk implementation - you have to install it on your own if you need. Tk allows to offer an interface for configuration of parameters of the perl script during runtime. I will put this info on my (still rudimentary) runrev web pages at http://animabit.de/runrev Regards, Franz 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 To: use-revolution@lists.runrev.com Cc: [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: AW: Runrev using Perl
Tiemo wrote: Servus Franz, nice to meet you again. Interesting things you're doing there :) I am not familiar with shell commands yet, nor perl, but how do you get a result from the shell execution back into a runrev field feedback? Tiemo -- Hi Tiemo, I do something similar with Rebol scripts or standalones. The easy way to get results back is to delete any existing relevant output file on the HD from Perl first, and after calling your Perl module to do its job, poll the existence of its output file on the HD until it appears, and when it does, put it into the RunRev field. For an example of simple shell calls and this kind of polling, see my Linux chooser widgets at http://www.howsoft.com/runrev/stacks.htm . The demo pack you can download there is a standalone program, but there is a button you can click on to see the coding for the shell calls and polling. Or if you are using Windows, you can visit the old page (see the link at the top of the page mentioned above) and see the coding in the Choose File and Choose Picture buttons of the demo stack. For an example of the hybrid use of Rev+Rebol, you might be interested in downloading my Spam Gobbler program at http://www.howsoft.com/linux/ and http://www.howsoft.com/linux/spamgobbler/ . But that's Linux again, which I believe is quite popular in Germany, isn't it? Bob ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution