RE: Python and Rev

2005-04-02 Thread MisterX
> > Back in the early days when I was beginning to explore Rev > and was doing a good bit of Python work, I remember > experimenting with calling Python scripts from Rev using the > shell() command and having some success. I suspect that > approach has some real potential when we want to do th

Re: Python and Rev

2005-04-02 Thread Dan Shafer
Back in the early days when I was beginning to explore Rev and was doing a good bit of Python work, I remember experimenting with calling Python scripts from Rev using the shell() command and having some success. I suspect that approach has some real potential when we want to do things in Rev t

Re: Python and Rev

2005-04-02 Thread Judy Perry
I dunno, either, but as my husband is a Python geek, I'm keen to know as well! Judy On Sat, 2 Apr 2005, Thomas McCarthy wrote: > > Note I didn't say Python "versus" Rev. I'm not about to abandon the > enviroment that makes my life so easy if not darn pleasant ;-) > > I'm interested if Python an

Re: Problem solving methods in software development

2005-04-02 Thread Thomas McGrath III
I also put this in to announce a pocket: repeat with i = 0 to 9 put "ball" & i into tMoving repeat for each item tItem in tPocketList if within(grc tItem,the loc of button tMoving) then revspeak "You got one" -- --- right here On Apr 2, 2005, at 10:18 PM, Thomas McGrath I

Re: Problem solving methods in software development

2005-04-02 Thread Thomas McGrath III
I just added this line to sound/speak when a ball is hit: revspeak "OUCH" -- which could be replaced with a sound for sure right after this part and IT WORKS here if tDistList is not empty then put min(tDistList) into sMin put tCollArray[sMin] into j revspeak "OUCH" On Apr 2, 200

Re: Problem solving methods in software development

2005-04-02 Thread Scott Rossi
Recently, Alejandro Tejada wrote: > By the way, if someone think that syncronizing > sounds with balls movements in Jim Hurley's Nine Ball > stack could be a very straightforward task to do... > sorry to dissapoint... but actually is not. If you use player objects, it can be done. You could pro

My Revolution Game Released

2005-04-02 Thread Rick Wood
I posted an early alpha version late last year on the revolution list. Now Im proud to announce that the game has been completed and released on my website. Along with it is the source code (stack file) so people can look into the code if they wish! You will need to download either the windows or M

Bug reports in standalones

2005-04-02 Thread graham samuel
This looks like a great facility but I haven't found any instructions about how to use it. For example, can I get the text of the error to appear on the screen? How is the email feature implemented (I didn't seem to get any of the emails)? The 'save report to file' is working well, but I'd just

Re: Problem solving methods in software development

2005-04-02 Thread Alejandro Tejada
Hi David, David Vaughan wrote: > I think it is inappropriate for Rev > or indeed for any other language of creative > expression. Sure, we see the same question asked > again (and again) but that is often helpful > to newbies. And what happens when nobody offers an answer to common question.

Re: shell() not waiting - not hiding

2005-04-02 Thread Dar Scott
On Apr 2, 2005, at 9:23 AM, Derek Bump wrote: In the documentation the shell() function explains that if you use the "get shell()" or "put shell()" methods that it will wait for a result code back from the program before continuing. Right now I'm working with the InnoSetup console compiler, and

Re: Rev, sockets, IP Multicast Part II

2005-04-02 Thread Dar Scott
On Apr 2, 2005, at 12:17 PM, Alex Tweedly wrote: But how can we use IP Multicast when Rev doesn't support it ? I have a vague memory of the other Alex writing an external. I have made a mock multicast using UDP. Dar -- ** DSC (Dar Scott Consulting & D

Re: ANN Nine Ball with Spin (English)

2005-04-02 Thread Scott Rossi
Recently, Ken Norris wrote: >> go url "http://home.infostations.net/jhurley/NineBallWithSpin.rev"; > > I get lines of gobbeley gook and then what looks like a bunch of > handlers. It doesn't download a working stack, nor a built app, if > that's what's supposed to happen. Make sure you didn't j

Re: shell() not waiting - not hiding

2005-04-02 Thread Derek Bump
> you can compare with > which is my NT GUI shell example stack. I downloaded and tried it, and as I expected, it works just fine. But I still have the same issue with the consoleWindow appearing, and the shell() function no

Re: ANN Nine Ball with Spin (English)

2005-04-02 Thread Ken Norris
Hi Jim. So I hope this works: go url "http://home.infostations.net/jhurley/NineBallWithSpin.rev"; I get lines of gobbeley gook and then what looks like a bunch of handlers. It doesn't download a working stack, nor a built app, if that's what's supposed to happen. All the best, Ken N. ___

Rev, sockets, IP Multicast Part II

2005-04-02 Thread Alex Tweedly
In part one, I briefly explained one reason why it would be native to have support for IP multicast in Rev - it provides very clean, easy solutions for certain types of problems. But how can we use IP Multicast when Rev doesn't support it ? [Remember - we can send multicast packets - it's only r

Re: iTunes to control Audio CDs

2005-04-02 Thread Scott Rossi
Recently, Thomas McCarthy wrote: > A while back I asked the list about shell scripts/externals that would allow > me to control Audio CD playback the way mciSendString can do on Windows. No > reply from the list. Also doing a web search of OSX shell scripts did not turn > up anything promising.

Re: shell() not waiting - not hiding

2005-04-02 Thread Kenji Kojima / $B>.Eg7r<#(B
On Apr 2, 2005, at 11:23 AM, Derek Bump wrote: In the documentation the shell() function explains that if you use the "get shell()" or "put shell()" methods that it will wait for a result code back from the program before continuing. Right now I'm working with the InnoSetup console compiler, and

RE: shell() not waiting - not hiding

2005-04-02 Thread MisterX
you can compare with which is my NT GUI shell example stack. It works fine here ;) cheers Xavier > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Derek Bump > Sent: Saturd

Re: ANN Nine Ball with Spin (English)

2005-04-02 Thread Alejandro Tejada
Hi Jim, Your have make better an already excellent stack! Greetings!!! :-) Like everyone, i have my wish list for your stack. ;-) This is my wish list for future versions of Nine Ball: 1- An undo command to place all the balls in their previous position after a shot. In real life this an imposs

shell() not waiting - not hiding

2005-04-02 Thread Derek Bump
In the documentation the shell() function explains that if you use the "get shell()" or "put shell()" methods that it will wait for a result code back from the program before continuing. Right now I'm working with the InnoSetup console compiler, and though it works great, my script is not waiti

Re: When is a menu not a menu?

2005-04-02 Thread Martin Baxter
>I know that menus are really buttons, but in the documentation there >is an example: > > disable menu "Text" > >which implies that you can use the term 'menu' as being more >descriptive. However, I found out that > > put exists(menu "myMenu" of grp "Main_Menu" of cd "Main" of stack >"Main_Disp

Re: When is a menu not a menu?

2005-04-02 Thread Rob Cozens
Hi Graham, I found out that put exists(menu "myMenu" of grp "Main_Menu" of cd "Main" of stack "Main_Display") results in 'false', whereas put exists(btn "myMenu" of grp "Main_Menu" of cd "Main" of stack "Main_Display") returns 'true' In what circumstances does RR allow me to use the term 'm

Re: Python and Rev

2005-04-02 Thread Alex Tweedly
Thomas McCarthy wrote: Note I didn't say Python "versus" Rev. I'm not about to abandon the enviroment that makes my life so easy if not darn pleasant ;-) I'm interested if Python and Rev can work together. Python seems good at some of the lower level stuff that Rev can't touch (like COM). Does a

Re: When is a menu not a menu?

2005-04-02 Thread Thomas McGrath III
WOW, don't look at the word menu too long. It starts to play with your head. I mean with a capitol M it is OK as in Menu. but as a lower case it is one of those words that becomes strange when you look at it too long. menu is the name for a menu but when you use a menu and put it in quotes as i

Re: Socket progamming Tutorial

2005-04-02 Thread Alex Tweedly
Kevin J wrote: Are there any good tutorials on socket programming for revolution? There's one in the video tutorials - see "Internet chat" on http://support.runrev.com/tutorials/projects.php or in the "Samples" section of VideoTutorials in RevOnline. I have no idea how good or bad the video

Re: When is a menu not a menu?

2005-04-02 Thread Thomas McGrath III
I don't know all places but, the name of menu 1 -- evaluates to "button "File"" if "File" is your first menu doMenu "New Card" of menu "Object" disable menuItem 2 of menu "Styles" disable menu "Objects" disable menu 1 set the decorations of stack "Help" to "menu,maximize" set the enabled of menu

Re: iTunes to control Audio CDs

2005-04-02 Thread Thomas McGrath III
Also, check out the Apple website and download the itunes scripts at: Website: http://www.apple.com/applescript/itunes/index.html Download scripts: http://images.apple.com/applescript/itunes/itunes-scripts.OSX.sit And, Macscripter.net at: http://scriptbuilders.net/category.php?search=itunes Tom On

When is a menu not a menu?

2005-04-02 Thread graham samuel
I know that menus are really buttons, but in the documentation there is an example: disable menu "Text" which implies that you can use the term 'menu' as being more descriptive. However, I found out that put exists(menu "myMenu" of grp "Main_Menu" of cd "Main" of stack "Main_Display") res

Re: iTunes to control Audio CDs

2005-04-02 Thread Klaus Major
Hi Thomas, A while back I asked the list about shell scripts/externals that would allow me to control Audio CD playback the way mciSendString can do on Windows. No reply from the list. Also doing a web search of OSX shell scripts did not turn up anything promising. Then it ocurred to me that iT

Re: iTunes to control Audio CDs

2005-04-02 Thread Hannu Kokko
Itunes is Applescriptable. Take a look at http://www.dougscripts.com/itunes/index.php. There might be some examples for you among the numerous scripts in there --h On 2.4.2005 15:00, "Thomas McCarthy" <[EMAIL PROTECTED]> wrote: > > A while back I asked the list about shell scripts/externals th

iTunes to control Audio CDs

2005-04-02 Thread Thomas McCarthy
A while back I asked the list about shell scripts/externals that would allow me to control Audio CD playback the way mciSendString can do on Windows. No reply from the list. Also doing a web search of OSX shell scripts did not turn up anything promising. Then it ocurred to me that iTunes might

Python and Rev

2005-04-02 Thread Thomas McCarthy
Note I didn't say Python "versus" Rev. I'm not about to abandon the enviroment that makes my life so easy if not darn pleasant ;-) I'm interested if Python and Rev can work together. Python seems good at some of the lower level stuff that Rev can't touch (like COM). Does anyone have experienc

RE: ImageData broken for small images...

2005-04-02 Thread MisterX
i wonder if this is related to http://support.runrev.com/bugdatabase/show_bug.cgi?id=2353 ? Although I get no crashes... cheers Xavier > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Chipp Walters > Sent: Saturday, April 02, 2005 11:29 > To

Re: Multiple Line SQL for MySQL?

2005-04-02 Thread Peter Reid
I use an alternative trim function that operates faster and removes excess space between words as well as at the start & end: function trim pText put empty into tNew repeat for each word w in pText put w & space after tNew end repeat delete last char of tNew return tNew end trim Che

Re: ImageData broken for small images...

2005-04-02 Thread Brian Yennie
Sounds like 'Zilla material to me, but if you're desperate for a dirty workaround, you could try taking your 4x4 (or less) imageData and scaling it byte-by-byte to 8x8, and then scaling the target image object down again by 50%. You'd still have 8x8 imageData, but a 4x4 image... (like I said, d

ImageData broken for small images...

2005-04-02 Thread Chipp Walters
I've got a problem and maybe someone here can help. I think this is probably a bug in the engine. import snapshot from rect 0,0,3,3 crashes Rev in WinXP and makes an image with no imageData on MacOSX (or any rectangle with either width <5 or height <5) So, I wrote a nifty routine to grab the imag