Re: Flashing numbers added to Number Picker stack.

2005-08-02 Thread Douglas Gilliland
Thanks for the script but I can't get it to work. I get the error:

TypeHandler: error in command
Object  Button
Lineon MakeList DerNumber
Hinton

I'm too new at this to figure it out. Any ideas?
Thanks,
Doug Gilliland
Sarasota, FL


On 7/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> sez [EMAIL PROTECTED]:
> >One more question - if it's not asking too much.
> >Sometimes I want a number, once it is selected, to be taken out of
> >circulation. Is there a short script to add that will do this? I have
> >searched all the resources but cannot find anything that explains how
> >to do this.
>Try something like this:
> 
> local WhatzLeft
> 
> on MakeList DerNumber
>   -- call this function when you want to generate a pool of numbers
>   --
>   -- it assumes DerNumber is a positive integer, so watch what you feed it
> 
>   put "" into Rezult
>   repeat with K1 = 1 to DerNumber
> put K1 into item K1 of Rezult
>   end repeat
>   put Rezult into WhatzLeft
> end MakeList
> 
> function PickOne
>   put the number of items in WhatzLeft into PoolSize
>   if PoolSize = 0 then
> return "Hey! Doofus! You ain't got nuttin' left!"
>   else
> put the random of PoolSize into Fred
> put item Fred of WhatzLeft into Rezult
> delete item Fred of WhatzLeft
> return Rezult
>   end if
> end PickOne
> 
>Hope this helps...
> ___
> 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: Flashing numbers added to Number Picker stack.

2005-07-31 Thread Cubist
sez [EMAIL PROTECTED]:
>One more question - if it's not asking too much.
>Sometimes I want a number, once it is selected, to be taken out of
>circulation. Is there a short script to add that will do this? I have
>searched all the resources but cannot find anything that explains how
>to do this.
   Try something like this:

local WhatzLeft

on MakeList DerNumber
  -- call this function when you want to generate a pool of numbers
  --
  -- it assumes DerNumber is a positive integer, so watch what you feed it

  put "" into Rezult
  repeat with K1 = 1 to DerNumber
put K1 into item K1 of Rezult
  end repeat
  put Rezult into WhatzLeft
end MakeList

function PickOne
  put the number of items in WhatzLeft into PoolSize
  if PoolSize = 0 then
return "Hey! Doofus! You ain't got nuttin' left!"
  else
put the random of PoolSize into Fred
put item Fred of WhatzLeft into Rezult
delete item Fred of WhatzLeft
return Rezult
  end if
end PickOne

   Hope this helps...
___
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: Flashing numbers added to Number Picker stack.

2005-07-31 Thread Douglas Gilliland
One more question - if it's not asking too much.
Sometimes I want a number, once it is selected, to be taken out of
circulation. Is there a short script to add that will do this? I have
searched all the resources but cannot find anything that explains how
to do this.
Thanks.
Doug Gilliland
Sarasota, FL

On 7/27/05, Douglas Gilliland <[EMAIL PROTECTED]> wrote:
> Jan,
> It works even better than I thought it would.
> Thanks for the quick script - it is greatly appreciated.
> Doug Gilliland
> Sarasota, FL
> 
> 
> On 7/27/05, Jan Schenkel <[EMAIL PROTECTED]> wrote:
> > --- Douglas Gilliland <[EMAIL PROTECTED]> wrote:
> > > I just finished a small stack to select my 9th grade
> > > chemistry
> > > students (sitting at numbered lab tables) at random.
> > > I have 25
> > > students and used the following script to select one
> > > at random, then
> > > speak that number:
> > >
> > > on mouseUp
> > >   put random (25) into field "field1"
> > >  revsetspeechvoice "ralph"
> > >   revspeak field "field1"
> > >   wait 4 sec
> > >   put empty into field "field1"
> > > end mouseUp
> > >
> > > To add a little flair, I would like numbers to
> > > quickly flash on the
> > > screen for one or two seconds before it stops at the
> > > random number.
> > > Looked through the documentation but found nothing.
> > > Any suggestions? I don't need it if it is too
> > > difficult but thought I
> > > would ask. I'm too new to Revolution to know how
> > > much it involves.
> > > Doug Gilliland
> > >
> >
> > Hi Doug,
> >
> > Here's a quick idea:
> > --
> > on mouseUp
> >   ## show some numbers during 2 seconds
> >   repeat 10 times
> > put random (25) into field "field1"
> > wait 200 milliseconds
> >   end repeat
> >   ## now the code you already had
> >   put random (25) into field "field1"
> >   revsetspeechvoice "ralph"
> >   revspeak field "field1"
> >   wait 4 sec
> >   put empty into field "field1"
> > end mouseUp
> > --
> >
> > Hope this helped,
> >
> > Jan Schenkel.
> >
> > Quartam - Tools for Revolution
> > 
> >
> > =
> > "As we grow older, we grow both wiser and more foolish at the same time."  
> > (La Rochefoucauld)
> >
> >
> >
> > 
> > Start your day with Yahoo! - make it your home page
> > http://www.yahoo.com/r/hs
> >
> >
>
___
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: Flashing numbers added to Number Picker stack.

2005-07-27 Thread Douglas Gilliland
Jan,
It works even better than I thought it would.
Thanks for the quick script - it is greatly appreciated. 
Doug Gilliland
Sarasota, FL


On 7/27/05, Jan Schenkel <[EMAIL PROTECTED]> wrote:
> --- Douglas Gilliland <[EMAIL PROTECTED]> wrote:
> > I just finished a small stack to select my 9th grade
> > chemistry
> > students (sitting at numbered lab tables) at random.
> > I have 25
> > students and used the following script to select one
> > at random, then
> > speak that number:
> >
> > on mouseUp
> >   put random (25) into field "field1"
> >  revsetspeechvoice "ralph"
> >   revspeak field "field1"
> >   wait 4 sec
> >   put empty into field "field1"
> > end mouseUp
> >
> > To add a little flair, I would like numbers to
> > quickly flash on the
> > screen for one or two seconds before it stops at the
> > random number.
> > Looked through the documentation but found nothing.
> > Any suggestions? I don't need it if it is too
> > difficult but thought I
> > would ask. I'm too new to Revolution to know how
> > much it involves.
> > Doug Gilliland
> >
> 
> Hi Doug,
> 
> Here's a quick idea:
> --
> on mouseUp
>   ## show some numbers during 2 seconds
>   repeat 10 times
> put random (25) into field "field1"
> wait 200 milliseconds
>   end repeat
>   ## now the code you already had
>   put random (25) into field "field1"
>   revsetspeechvoice "ralph"
>   revspeak field "field1"
>   wait 4 sec
>   put empty into field "field1"
> end mouseUp
> --
> 
> Hope this helped,
> 
> Jan Schenkel.
> 
> Quartam - Tools for Revolution
> 
> 
> =
> "As we grow older, we grow both wiser and more foolish at the same time."  
> (La Rochefoucauld)
> 
> 
> 
> 
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
> 
>
___
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: Flashing numbers added to Number Picker stack.

2005-07-27 Thread Jan Schenkel
--- Douglas Gilliland <[EMAIL PROTECTED]> wrote:
> I just finished a small stack to select my 9th grade
> chemistry
> students (sitting at numbered lab tables) at random.
> I have 25
> students and used the following script to select one
> at random, then
> speak that number:
> 
> on mouseUp
>   put random (25) into field "field1"
>  revsetspeechvoice "ralph"
>   revspeak field "field1"
>   wait 4 sec
>   put empty into field "field1"
> end mouseUp
> 
> To add a little flair, I would like numbers to
> quickly flash on the
> screen for one or two seconds before it stops at the
> random number.
> Looked through the documentation but found nothing.
> Any suggestions? I don't need it if it is too
> difficult but thought I
> would ask. I'm too new to Revolution to know how
> much it involves.
> Doug Gilliland
> 

Hi Doug,

Here's a quick idea:
--
on mouseUp
  ## show some numbers during 2 seconds
  repeat 10 times
put random (25) into field "field1"
wait 200 milliseconds
  end repeat
  ## now the code you already had
  put random (25) into field "field1"
  revsetspeechvoice "ralph"
  revspeak field "field1"
  wait 4 sec
  put empty into field "field1"
end mouseUp
--

Hope this helped,

Jan Schenkel.

Quartam - Tools for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
___
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