Most Efficient Timer?

2004-11-29 Thread Scott Rossi
I've been thinking about timers recently and thought I run this by the list
to see what other Rev experts thought.  I guess the way to set this is up
is: Can you script a more efficient timer?

--

The way I usually build asynchronous timers uses a send in structure like
the following: (simplified for example)

local tCurrTime
on runTimer
  if not the uAllowTimer of me then exit runTimer
  if (the millisecs  tCurrTime + 1000) then
put the millisecs into tCurrTime
put the long time into fld 1
  end if
  send runTimer to me in 100 millisecs
end runTimer

The above example checks the value of the milliseconds 10 times a second and
puts the result into a locked field after one second has elapsed.  But it
also generates 10 messages a second, and it occurred to me that another way
to do this is to use the wait x with messages construct which I'm guessing
evaluates time many more times a second, but at a lower level than send
in:

local tCurrTime
on runTimer
  repeat forever
if not the uAllowTimer of me then exit runTimer
wait until (the millisecs  tCurrTime + 1000) or \
(not the uAllowTimer of me) with messages
put the millisecs into tCurrTime
put the long time into fld 1
  end repeat
end runTimer

Both of the above routines provide the same output.  However, when viewing
the %CPU use on a Mac OSX system with the Activity Monitor, CPU usage is
clearly dependent on the frequency of the send in message: with 100
milliseconds frequency, the first handler runs at about 15% usage, and with
50 milliseconds frequency runs at about 30% usage (makes sense).

Amazingly, the wait x with messages handler runs at less than 1% usage.
And because with messages does not block other messages from being sent,
this seems a very efficient way to run a timer.

Obviously the above is useful only in situations requiring accuracy of 1
second or less, but at first glance I can't see any drawback to using this
method.  Can you?

Regards,

Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Richard Gaskin
Scott Rossi wrote:
I've been thinking about timers recently and thought I run this by the list
to see what other Rev experts thought.  I guess the way to set this is up
is: Can you script a more efficient timer?
--
The way I usually build asynchronous timers uses a send in structure like
the following: (simplified for example)
local tCurrTime
on runTimer
  if not the uAllowTimer of me then exit runTimer
  if (the millisecs  tCurrTime + 1000) then
put the millisecs into tCurrTime
put the long time into fld 1
  end if
  send runTimer to me in 100 millisecs
end runTimer
The above example checks the value of the milliseconds 10 times a second and
puts the result into a locked field after one second has elapsed.  But it
also generates 10 messages a second, and it occurred to me that another way
to do this is to use the wait x with messages construct which I'm guessing
evaluates time many more times a second, but at a lower level than send
in:
local tCurrTime
on runTimer
  repeat forever
if not the uAllowTimer of me then exit runTimer
wait until (the millisecs  tCurrTime + 1000) or \
(not the uAllowTimer of me) with messages
put the millisecs into tCurrTime
put the long time into fld 1
  end repeat
end runTimer
Both of the above routines provide the same output.  However, when viewing
the %CPU use on a Mac OSX system with the Activity Monitor, CPU usage is
clearly dependent on the frequency of the send in message: with 100
milliseconds frequency, the first handler runs at about 15% usage, and with
50 milliseconds frequency runs at about 30% usage (makes sense).
Amazingly, the wait x with messages handler runs at less than 1% usage.
And because with messages does not block other messages from being sent,
this seems a very efficient way to run a timer.
Obviously the above is useful only in situations requiring accuracy of 1
second or less, but at first glance I can't see any drawback to using this
method.  Can you?
None that I can see, but I managed to get myself confused on the issue: 
 if you only want a time sent once a second, why not just send it in 1 
second rather than polling several times a second?

--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Sliders on Mac, OK, on XP...beuh?

2004-11-29 Thread François Cuneo
Hello Everybody!
I'm using sliders on my applications. I'm working on Mac OSX.
When I create standalone for MacOSX or PPC, all is OK, but on Windows 
(XP), I see the slider, but only the line, not the button.
Is it a property that can do that?
Thank you for your answer!
Friendly
François
--
François Cuneo
Cuk.ch  http://www.cuk.ch
Site web dédié au Macintosh
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Sliders on Mac, OK, on XP...beuh?

2004-11-29 Thread xbury . cs
Hi Francois,

it's the darn hilitecolor incompatibility between the two os me thinks

bugzilla was already filed...
cheers
-=-
Xavier Bury





François Cuneo [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
29.11.2004 12:16
Please respond to How to use Revolution

 
To: How to use Revolution [EMAIL PROTECTED]
cc: (bcc: Xavier Bury/CLEARSTREAM/GDB)
Subject:Sliders on Mac, OK, on XP...beuh?

..

Hello Everybody!
I'm using sliders on my applications. I'm working on Mac OSX.
When I create standalone for MacOSX or PPC, all is OK, but on Windows 
(XP), I see the slider, but only the line, not the button.
Is it a property that can do that?
Thank you for your answer!
Friendly
François
--
François Cuneo
Cuk.ch  http://www.cuk.ch
Site web dédié au Macintosh
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution




-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Dave Cragg
On 29 Nov 2004, at 09:11, Richard Gaskin wrote:
Scott Rossi wrote:

Both of the above routines provide the same output.  However, when 
viewing
the %CPU use on a Mac OSX system with the Activity Monitor, CPU usage 
is
clearly dependent on the frequency of the send in message: with 100
milliseconds frequency, the first handler runs at about 15% usage, 
and with
50 milliseconds frequency runs at about 30% usage (makes sense).
Amazingly, the wait x with messages handler runs at less than 1% 
usage.
And because with messages does not block other messages from being 
sent,
this seems a very efficient way to run a timer.
Obviously the above is useful only in situations requiring accuracy 
of 1
second or less, but at first glance I can't see any drawback to using 
this
method.  Can you?
None that I can see, but I managed to get myself confused on the 
issue:  if you only want a time sent once a second, why not just send 
it in 1 second rather than polling several times a second?

I guess Scott was concerned about the smoothness of the time display 
ticking over. If you send every 1 second, and there is something 
holding up message processing, the timer may be late to update. 
Increasing the frequency increases the chance of getting it right (but 
doesn't guarantee it).

One uncertainty about the wait condition with messages is that it 
isn't documented how frequently the condition is evaluated. I was told 
once that wait ... with messages was inefficient because it was 
constantly evaluating the condition. However, this doesn't seem to be 
the case. From some simple testing (calling a function in the 
condition), I find that the time between evaluations varies, ranging 
from about 5 to 256 milliseconds (when no other activity is taking 
place).

So for 1-second accuracy, I don't see any drawbacks.
Cheers
Dave
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Richard Gaskin
Dave Cragg wrote:
On 29 Nov 2004, at 09:11, Richard Gaskin wrote:
Scott Rossi wrote:

Both of the above routines provide the same output.  However, when 
viewing
the %CPU use on a Mac OSX system with the Activity Monitor, CPU usage is
clearly dependent on the frequency of the send in message: with 100
milliseconds frequency, the first handler runs at about 15% usage, 
and with
50 milliseconds frequency runs at about 30% usage (makes sense).
Amazingly, the wait x with messages handler runs at less than 1% 
usage.
And because with messages does not block other messages from being 
sent,
this seems a very efficient way to run a timer.
Obviously the above is useful only in situations requiring accuracy of 1
second or less, but at first glance I can't see any drawback to using 
this
method.  Can you?

None that I can see, but I managed to get myself confused on the 
issue:  if you only want a time sent once a second, why not just send 
it in 1 second rather than polling several times a second?

I guess Scott was concerned about the smoothness of the time display 
ticking over. If you send every 1 second, and there is something holding 
up message processing, the timer may be late to update. Increasing the 
frequency increases the chance of getting it right (but doesn't 
guarantee it).
Wouldn't any issues that would delay the firing of a one-second timer 
also delay a 1/10th second timer as well?

--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Sliders on Mac, OK, on XP...beuh? WAT?

2004-11-29 Thread François Cuneo
Hello Xavier!
Thank you for your answer.
What?
It's a bug? And it's in the 2.5 release from the beginning?
If it's right it's really incredible that runrev didn't correct that 
quickly!
It's a big bug I Think!
is it a workaround for that?
Thank you
François
Le 29 nov. 04, à 12:26, [EMAIL PROTECTED] a écrit :

Hi Francois,
it's the darn hilitecolor incompatibility between the two os me 
thinks

bugzilla was already filed...
cheers
-=-
Xavier Bury


François Cuneo [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
29.11.2004 12:16
Please respond to How to use Revolution
To: How to use Revolution [EMAIL PROTECTED]
cc: (bcc: Xavier Bury/CLEARSTREAM/GDB)
Subject:Sliders on Mac, OK, on XP...beuh?
..
Hello Everybody!
I'm using sliders on my applications. I'm working on Mac OSX.
When I create standalone for MacOSX or PPC, all is OK, but on Windows
(XP), I see the slider, but only the line, not the button.
Is it a property that can do that?
Thank you for your answer!
Friendly
François
--
François Cuneo
Cuk.ch  http://www.cuk.ch
Site web dédié au Macintosh
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and 
therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail 
is
confidential and may be legally privileged. It is intended solely for 
the
addressee. If you are not the intended recipient, any disclosure, 
copying,
distribution or any action taken or omitted to be taken in reliance on 
it,
is prohibited and may be unlawful. Any views expressed in this e-mail 
are
those of the individual sender, except where the sender specifically 
states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

--
François Cuneo
Cuk.ch  http://www.cuk.ch
Site web dédié au Macintosh
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Sliders on Mac, OK, on XP...beuh? WAT?

2004-11-29 Thread xbury . cs
It is and it is not a bug...

For mac you need the hilite color. For PCs you dont. 
The Rev team didn't consider this an error...

Just another feature to watch out ;)

BTW, the hilite color is named text hilite on windows...

Also look in the revdocs for 
Why don't buttons respect my color settings?

Cheers
-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 4656 43 6465
Fax: +352 4656 493 6465




François Cuneo [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
29.11.2004 13:05
Please respond to How to use Revolution

 
To: How to use Revolution [EMAIL PROTECTED]
cc: (bcc: Xavier Bury/CLEARSTREAM/GDB)
Subject:Re: Sliders on Mac, OK, on XP...beuh? WAT?

..

Hello Xavier!
Thank you for your answer.
What?
It's a bug? And it's in the 2.5 release from the beginning?
If it's right it's really incredible that runrev didn't correct that 
quickly!
It's a big bug I Think!
is it a workaround for that?
Thank you
François
Le 29 nov. 04, à 12:26, [EMAIL PROTECTED] a écrit :

 Hi Francois,

 it's the darn hilitecolor incompatibility between the two os me 
 thinks

 bugzilla was already filed...
 cheers
 -=-
 Xavier Bury





 François Cuneo [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
 29.11.2004 12:16
 Please respond to How to use Revolution


 To: How to use Revolution [EMAIL PROTECTED]
 cc: (bcc: Xavier Bury/CLEARSTREAM/GDB)
 Subject:Sliders on Mac, OK, on XP...beuh?

 ..

 Hello Everybody!
 I'm using sliders on my applications. I'm working on Mac OSX.
 When I create standalone for MacOSX or PPC, all is OK, but on Windows
 (XP), I see the slider, but only the line, not the button.
 Is it a property that can do that?
 Thank you for your answer!
 Friendly
 François
 --
 François Cuneo
 Cuk.ch  http://www.cuk.ch
 Site web dédié au Macintosh
 [EMAIL PROTECTED]

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution




 -
 Visit us at http://www.clearstream.com
 IMPORTANT MESSAGEInternet communications are not secure and 
 therefore
 Clearstream International does not accept legal responsibility for the
 contents of this message.The information contained in this e-mail 
 is
 confidential and may be legally privileged. It is intended solely for 
 the
 addressee. If you are not the intended recipient, any disclosure, 
 copying,
 distribution or any action taken or omitted to be taken in reliance on 
 it,
 is prohibited and may be unlawful. Any views expressed in this e-mail 
 are
 those of the individual sender, except where the sender specifically 
 states
 them to be the views of Clearstream International or of any of its
 affiliates or subsidiaries.END OF DISCLAIMER

 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution



--
François Cuneo
Cuk.ch  http://www.cuk.ch
Site web dédié au Macintosh
[EMAIL PROTECTED]

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution




-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Urgent... Windows Problem. Is it me or a virus... (rundll32)

2004-11-29 Thread Frank D. Engel, Jr.
Is Windows a Virus?
 No, Windows is not a virus. Here's what viruses do:
 They replicate quickly - okay, Windows does that.
	 	 Viruses use up valuable system resources, slowing down the system 
as they do so - okay, Windows does that.

	 	 Viruses will, from time to time, trash your hard disk - okay, 
Windows does that too.

	 	 Viruses are usually carried, unknown to the user, along with 
valuable programs and systems. Sigh... Windows does that, too.

	 	 Viruses will occasionally make the user suspect their system is 
too slow (see 2) and the user will buy new hardware. Yup, that's with 
Windows, too.

 Until now it seems Windows is a virus but there are fundamental 
differences:Viruses are well supported by their authors, are running on 
most systems, their program code is fast, compact and efficient and 
they tend to become more sophisticated as they mature.

 So Windows is not a virus.
 It's a bug.
On Nov 28, 2004, at 10:16 PM, Ken Ray wrote:
On 11/28/04 3:59 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED]
wrote:

Hi Ken,
no calls to external dlls (As far as I know)
Strangely the old version of the game now suffers from the same
problem. It doesnt respond to mouseclicks anymore and everything
slowed down dramatically. When I open the Taskmanager with the old 
game
version it doesnt show up that task. (Only the modified version does
and when I force quit the app the tasks are gone...) So I think the 
old
version *should* work. I played it on the same machine and all was
fine. The only thing I changed with the machine was connecting another
monitor and updateing the virus killer. (Antivir personal) I guess 
this
shouldnt cause any problems.

Now Im stuck. :-(
You might want to remove any adware/spyware that may be on your 
machine as
well, along with the virus sweep. I use SpySweeper (www.webroot.com), 
and
it's been wonderful at getting rid of the garbage that is automatically
downloaded from some web sites.

HTH,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


How to set Tab key in Tab panel

2004-11-29 Thread N. Dayakar

Hi All,

Could anybody please help me how to select the tabs in a Tab Panel with
tab key/arrow key.

I am using Revolution 2.5 in Mac OS 10.3.4.

-- 
With kind regards,

N Dayakar

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing defaultStack

2004-11-29 Thread Thomas McGrath III
DITTO for me
On Nov 29, 2004, at 1:03 AM, Troy Rollins wrote:
I chased similar things around and around in some of my projects. In 
the end, I decided that I would *never* trust it, and explicitly refer 
to stacks, or set the defaultStack in any handler which uses it. The 
safest thing to do, is at the top of any handler which uses this, is 
to first tell it EXACTLY what this is.

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Urgent... Windows Problem. Is it me or a virus... (rundll32)

2004-11-29 Thread Thomas McGrath III
LOL
still LOL
Your very bad.. Frank
still LOL
...
On Nov 29, 2004, at 7:28 AM, Frank D. Engel, Jr. wrote:
Is Windows a Virus?
 No, Windows is not a virus. Here's what viruses do:
 They replicate quickly - okay, Windows does that.
	 	 Viruses use up valuable system resources, slowing down the system 
as they do so - okay, Windows does that.

	 	 Viruses will, from time to time, trash your hard disk - okay, 
Windows does that too.

	 	 Viruses are usually carried, unknown to the user, along with 
valuable programs and systems. Sigh... Windows does that, too.

	 	 Viruses will occasionally make the user suspect their system is 
too slow (see 2) and the user will buy new hardware. Yup, that's with 
Windows, too.

 Until now it seems Windows is a virus but there are fundamental 
differences:Viruses are well supported by their authors, are running 
on most systems, their program code is fast, compact and efficient and 
they tend to become more sophisticated as they mature.

 So Windows is not a virus.
 It's a bug.
On Nov 28, 2004, at 10:16 PM, Ken Ray wrote:
On 11/28/04 3:59 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED]
wrote:

Hi Ken,
no calls to external dlls (As far as I know)
Strangely the old version of the game now suffers from the same
problem. It doesnt respond to mouseclicks anymore and everything
slowed down dramatically. When I open the Taskmanager with the old 
game
version it doesnt show up that task. (Only the modified version does
and when I force quit the app the tasks are gone...) So I think the 
old
version *should* work. I played it on the same machine and all was
fine. The only thing I changed with the machine was connecting 
another
monitor and updateing the virus killer. (Antivir personal) I guess 
this
shouldnt cause any problems.

Now Im stuck. :-(
You might want to remove any adware/spyware that may be on your 
machine as
well, along with the virus sweep. I use SpySweeper (www.webroot.com), 
and
it's been wonderful at getting rid of the garbage that is 
automatically
downloaded from some web sites.

HTH,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing defaultStack

2004-11-29 Thread Richard Gaskin
On Nov 29, 2004, at 1:03 AM, Troy Rollins wrote:
I chased similar things around and around in some of my projects. In 
the end, I decided that I would *never* trust it, and explicitly refer 
to stacks, or set the defaultStack in any handler which uses it. The 
safest thing to do, is at the top of any handler which uses this, is 
to first tell it EXACTLY what this is.
I often do the same, setting the defaultStack before working on items 
with non-explicit references.

But I can't say I've seen cases where the default stack is necessarily 
wrong -- if you have a recipe please submit it to Bugzilla.

--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re:::How to set Tab key in Tab panel

2004-11-29 Thread xbury . cs
on rawkeyup k
  if k is (code for your control-key)
set the selectedline of btn MyTab to the next selectedline.


Bugzilla to use the regular windows platform tab navigation shortcuts 
already in...
If you care to vote for it

cheers
Xavier
-=-
Xavier Bury
Clearstream Services
TNS NT LAN Server
ext 36465
Voice: +352 4656 43 6465
Fax: +352 4656 493 6465




N. Dayakar [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
29.11.2004 13:46
Please respond to How to use Revolution

 
To: Revolution list [EMAIL PROTECTED]
cc: (bcc: Xavier Bury/CLEARSTREAM/GDB)
Subject:# POSSIBLY SPAM #::How to set Tab key in Tab panel

.


Hi All,

Could anybody please help me how to select the tabs in a Tab Panel with
tab key/arrow key.

I am using Revolution 2.5 in Mac OS 10.3.4.

-- 
With kind regards,

N Dayakar

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution




-
Visit us at http://www.clearstream.com
IMPORTANT MESSAGEInternet communications are not secure and therefore
Clearstream International does not accept legal responsibility for the
contents of this message.The information contained in this e-mail is
confidential and may be legally privileged. It is intended solely for the
addressee. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically states
them to be the views of Clearstream International or of any of its
affiliates or subsidiaries.END OF DISCLAIMER

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Geoff Canyon
On Nov 29, 2004, at 3:56 AM, Richard Gaskin wrote:
Dave Cragg wrote:
On 29 Nov 2004, at 09:11, Richard Gaskin wrote:
Scott Rossi wrote:
Both of the above routines provide the same output.  However, when 
viewing
the %CPU use on a Mac OSX system with the Activity Monitor, CPU 
usage is
clearly dependent on the frequency of the send in message: with 
100
milliseconds frequency, the first handler runs at about 15% usage, 
and with
50 milliseconds frequency runs at about 30% usage (makes sense).
Amazingly, the wait x with messages handler runs at less than 1% 
usage.
And because with messages does not block other messages from 
being sent,
this seems a very efficient way to run a timer.
Obviously the above is useful only in situations requiring accuracy 
of 1
second or less, but at first glance I can't see any drawback to 
using this
method.  Can you?

None that I can see, but I managed to get myself confused on the 
issue:  if you only want a time sent once a second, why not just 
send it in 1 second rather than polling several times a second?

I guess Scott was concerned about the smoothness of the time display 
ticking over. If you send every 1 second, and there is something 
holding up message processing, the timer may be late to update. 
Increasing the frequency increases the chance of getting it right 
(but doesn't guarantee it).
Wouldn't any issues that would delay the firing of a one-second timer 
also delay a 1/10th second timer as well?
Anything that's going to stop a 1 second message is also going to stop 
a 1/10 second message as well. It's possible I suppose for send...in to 
take slightly longer than a second, so when a visible display is 
ticking over I generally use something like 55 ticks, which should 
(virtually) guarantee that it will tick over.

wait...with messages is perfectly fine to use. The one that hogs the 
system is when you wait for a system condition to change: wait until 
the mouse is up, repeat while the mouse is down, that sort of thing. 
Even then it's okay if you're actually _doing_ something. The problem 
enters in when you have something like

repeat while the mouse is down
  set the loc of me to the mouseLoc
end repeat
The problem here is that as fast as the system is able you're setting 
the loc of the object to the exact same value (because most of the time 
the mouse isn't moving).

Specifically, there is nothing wrong with wait 55 ticks with messages.
Further, you will still see a responsive system with wait 0 ticks with 
messages. In that video game I programmed a year back, I have a delay 
loop to keep the game from running too fast on very fast systems. It 
keeps track of how long it needs to wait to update the screen. On 
slower systems, that value can decrease to 0, or even -1 or -3, so the 
code executed is

wait -3 ticks with messages
It still works.
regards,
Geoff Canyon
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing defaultStack

2004-11-29 Thread Troy Rollins
On Nov 29, 2004, at 2:53 AM, Paul Kocsis wrote:
By that do you mean that you set the defaultStack at the top of every
handler?  Were you having the problem of referring to an object like:
field AA   instead of...
field AA of stack XX
where the former would at times error out with Object: No such 
object??
Like Richard, I've never actually seen this behave like a bug... more 
like a very slippery reference which can change behind your back.

I usually use either full paths... object of card of stack foo
OR, I set the defaultStack to foo
--
Troy
RPSystems, Ltd.
http://www.rpsystems.net
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: barcode scanner

2004-11-29 Thread Michael D Mays
In many cases this is true. But think about the case where you are 
scanning identical items. It would nice to be able to type 10 and then 
scan the item instead of scanning each identical item. Suppose you want 
to route the item somewhere. You need to be able to enter the routing 
information. How about using a scanner to log in? You would probably 
want to type a password.

If you just want to scan an item and then go to the next item and scan 
it, then not being able to tell where the input is from is fine. But in 
all the other cases you probably just want the scanned information 
going to a specific field (container) and it would be nice not to have 
to force the focus to that field with an addition mouseclick or tab(s) 
etc.

Michael
On Nov 27, 2004, at 10:48 AM, Frank D. Engel, Jr. wrote:
This is not normally a problem.  One would typically want the ability 
to key in the same data being scanned in the instance that the scanner 
fails to read the barcode (as sometimes can happen with an 
inaccessible or poorly conditioned barcode), so this overlap would 
actually make life easier.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing defaultStack

2004-11-29 Thread Richard Gaskin
Troy Rollins wrote:
On Nov 29, 2004, at 2:53 AM, Paul Kocsis wrote:
By that do you mean that you set the defaultStack at the top of every
handler?  Were you having the problem of referring to an object like:
field AA   instead of...
field AA of stack XX
where the former would at times error out with Object: No such object??

Like Richard, I've never actually seen this behave like a bug... more 
like a very slippery reference which can change behind your back.
Here's a Transcript riddle:  I know of one circumstance in which the 
defaultStack will return empty -- what is it?

Though it sounds like a koan there's a real answer, and the logic makes 
a certain sense even if it seems initially counter-intuitive that 
defaultStack should ever be empty

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Dave Cragg
On 29 Nov 2004, at 14:47, Geoff Canyon wrote:
On Nov 29, 2004, at 3:56 AM, Richard Gaskin wrote:
Dave Cragg wrote:
On 29 Nov 2004, at 09:11, Richard Gaskin wrote:
Scott Rossi wrote:
Both of the above routines provide the same output.  However, when 
viewing
the %CPU use on a Mac OSX system with the Activity Monitor, CPU 
usage is
clearly dependent on the frequency of the send in message: with 
100
milliseconds frequency, the first handler runs at about 15% usage, 
and with
50 milliseconds frequency runs at about 30% usage (makes sense).
Amazingly, the wait x with messages handler runs at less than 1% 
usage.
And because with messages does not block other messages from 
being sent,
this seems a very efficient way to run a timer.
Obviously the above is useful only in situations requiring 
accuracy of 1
second or less, but at first glance I can't see any drawback to 
using this
method.  Can you?

None that I can see, but I managed to get myself confused on the 
issue:  if you only want a time sent once a second, why not just 
send it in 1 second rather than polling several times a second?

I guess Scott was concerned about the smoothness of the time display 
ticking over. If you send every 1 second, and there is something 
holding up message processing, the timer may be late to update. 
Increasing the frequency increases the chance of getting it right 
(but doesn't guarantee it).
Wouldn't any issues that would delay the firing of a one-second timer 
also delay a 1/10th second timer as well?
Anything that's going to stop a 1 second message is also going to stop 
a 1/10 second message as well. It's possible I suppose for send...in 
to take slightly longer than a second, so when a visible display is 
ticking over I generally use something like 55 ticks, which should 
(virtually) guarantee that it will tick over.
My brain's hurting thinking about this. But if you send in 55 ticks, 
there's a good chance you won't have hit the next second when the 
message is handled, and so the timer display won't update until the 
next time through. So you're likely to get a visibly uneven update.

If you send in 1 second, it's probably going a fraction more than I 
second between the send and the point where the display is updated. 
Eventually, you're going to see a 2 second jump in the display.

wait...with messages is perfectly fine to use. The one that hogs the 
system is when you wait for a system condition to change: wait until 
the mouse is up, repeat while the mouse is down, that sort of thing. 
Even then it's okay if you're actually _doing_ something. The problem 
enters in when you have something like

The repeat until the mouse is down problem I can understand. But I 
need more convincing about wait.

   wait until (x + y  1000) with messages -- assume x  y are script 
locals or globals
   wait until the mouse is up with messages
   wait until myFunction() with messages -- assume myFunction returns 
true or false

Won't the frequency at which the conditional is evaluated be the same?  
If it gets evaluated as soon as nothing else is happening, then you'd 
expect all three to be processor intensive. But it doesn't seem to 
happen that way. On the other hand, I can't see what determines the 
frequency either.

Cheers
Dave
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: barcode scanner

2004-11-29 Thread Frank D. Engel, Jr.
In that case it would likely depend on the scanner and on the interface 
between the scanner and the computer.  In some cases this might not be 
possible to distinguish, in others it may depend on the configuration 
of the scanner, and in others it might require an external for Rev.

Since the barcodes rarely use letters other than a possible 'X' (ISBN 
#s), one workaround might be to create a 'simulated' numeric keypad on 
the letter keys, then trap these and handle them specially for your 
purposes (with a keyDown handler); for example:

Y=7   U=8   I=9
H=4   J=5  K=6
N=1   M=2  ,=1
space=0
Not a very elegant solution, but it could be made to work, and would 
rarely if ever interfere with a barcode scanner.

On Nov 29, 2004, at 10:50 AM, Michael D Mays wrote:
In many cases this is true. But think about the case where you are 
scanning identical items. It would nice to be able to type 10 and then 
scan the item instead of scanning each identical item. Suppose you 
want to route the item somewhere. You need to be able to enter the 
routing information. How about using a scanner to log in? You would 
probably want to type a password.

If you just want to scan an item and then go to the next item and scan 
it, then not being able to tell where the input is from is fine. But 
in all the other cases you probably just want the scanned information 
going to a specific field (container) and it would be nice not to have 
to force the focus to that field with an addition mouseclick or tab(s) 
etc.

Michael
On Nov 27, 2004, at 10:48 AM, Frank D. Engel, Jr. wrote:
This is not normally a problem.  One would typically want the ability 
to key in the same data being scanned in the instance that the 
scanner fails to read the barcode (as sometimes can happen with an 
inaccessible or poorly conditioned barcode), so this overlap would 
actually make life easier.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$


___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag a Graphic Tool.

2004-11-29 Thread Jim Hurley

Message: 2
Date: Sun, 28 Nov 2004 10:00:19 -0800
From: Roger Guay [EMAIL PROTECTED]
Subject: Re: Drag a Graphic Tool.
To: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; format=flowed
Thanks very much Jan.  I thought of something like this but I was
hoping to slow the trace down somehow.  Setting the points of a
polygon is instantaneous for each line segment . . .  not the effect I
was hoping for.  So far, I have made progress dragging the brush  tool
as It gives me some choice of the line width.

Roger,
Actually you can set the linesize of the line or polygon tool; you 
can have both your arrow and line size.

What you need apparently is more intermediate points in order to 
control rate of drawing between end points. One way to do this would 
be with, you guessed it, Turtle Graphics. (You would want the version 
that does vector graphics, not bit map.) For example, you could 
control the motion between any two points A and B as follows:

on mouseUP
  put 0,0 into A
  put 300,300 into B
  startTurtle
  setXY A
  setheading direction(B)
  put distance(B) into d
  put 3 into s --Or whatever works for you
  repeat round(d/s) times
forward s
--Perhaps a wait here
  end repeat
  setxy B --Just to take care of the rounding error
end mouseUP
And you could iterate this to take you through a sequence of points.
Jim
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Scott Rossi
Recently, Richard Gaskin wrote:

 I guess Scott was concerned about the smoothness of the time display
 ticking over. If you send every 1 second, and there is something holding
 up message processing, the timer may be late to update. Increasing the
 frequency increases the chance of getting it right (but doesn't
 guarantee it).
 
 Wouldn't any issues that would delay the firing of a one-second timer
 also delay a 1/10th second timer as well?

It could, but if one is after one second accuracy, for example, the
one-second timer will be thrown off, whereas the 1/10-second timer has the
opportunity to correct itself (assuming whatever issues delay the timer
don't take 3 seconds to execute).

Regards,

Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Richard Gaskin
Scott Rossi wrote:
Recently, Richard Gaskin wrote:

I guess Scott was concerned about the smoothness of the time display
ticking over. If you send every 1 second, and there is something holding
up message processing, the timer may be late to update. Increasing the
frequency increases the chance of getting it right (but doesn't
guarantee it).
Wouldn't any issues that would delay the firing of a one-second timer
also delay a 1/10th second timer as well?

It could, but if one is after one second accuracy, for example, the
one-second timer will be thrown off, whereas the 1/10-second timer has the
opportunity to correct itself (assuming whatever issues delay the timer
don't take 3 seconds to execute).
If a message were completely removed from the queue that would be an 
issue.  But if the message is merely delayed until the next idle, 
wouldn't all messages that are due for firing get fired in their firing 
order, regardless of the wait period specified when they were queued?

--
 Richard Gaskin
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: No word from RunRev about new features?

2004-11-29 Thread Kevin Miller
On 28/11/04 6:09 pm, John Rule [EMAIL PROTECTED] wrote:

 Why have we heard nothing from RunRev about new features?

Unfortunately, we can't normally announce many of these in advance, unless
you are a pro user or you happened to come to the recent conference we had
in Malta.

Kind regards,

Kevin

Kevin Miller ~ [EMAIL PROTECTED] ~ http://www.runrev.com/
Runtime Revolution - User-Centric Development Tools

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Frank D. Engel, Jr.
This helps to avoid another problem as well.  If a one-second timer is 
started at, say, 1:31:32, then the minute will be about half-over by 
the time the display is updated, so that the time display is only 
accurate about half of the time.

Of course, the timer may drift somewhat if there is a delay in 
message-processing, depending on how it has been configured...

On Nov 29, 2004, at 11:58 AM, Scott Rossi wrote:
Recently, Richard Gaskin wrote:
I guess Scott was concerned about the smoothness of the time display
ticking over. If you send every 1 second, and there is something 
holding
up message processing, the timer may be late to update. Increasing 
the
frequency increases the chance of getting it right (but doesn't
guarantee it).
Wouldn't any issues that would delay the firing of a one-second timer
also delay a 1/10th second timer as well?
It could, but if one is after one second accuracy, for example, the
one-second timer will be thrown off, whereas the 1/10-second timer has 
the
opportunity to correct itself (assuming whatever issues delay the timer
don't take 3 seconds to execute).

Regards,
Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$


___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Encrypt Password - Decrypt same

2004-11-29 Thread Steve Bonham
Hi Revolutionaries,
I'm lost regarding the encrypt and decrypt commands.
I've created a Jeopardy-like game and saved it as a stand-alone application.
When the user closes the stack their preferences (number of daily 
doubles, row values, default game file, user password, etc) are 
written to an external text file.

When the user opens the stack the last used preferences are read and 
loaded into flds or variables to re-configure the game as it was last 
used.

AhHa! You see the problem already... Anyone can open the settings.txt 
file and see the password!

I'd like to encrypt the password on closestack and write that to the 
file. Then import and decrypt the password. But I don't understand 
the Rev documentation for encrypt  decrypt. The following makes NO 
sense to me at all...

encrypt source using cipher with [password|key] passorkey[and salt 
saltvalue] [and IV IVvalue] [at bit ]

Can someone provide some sample Transcript that will enlighten me?
Thx,
Steve
--
--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Mark Talluto
On Nov 29, 2004, at 10:57 AM, Steve Bonham wrote:
Hi Revolutionaries,
I'm lost regarding the encrypt and decrypt commands.
I've created a Jeopardy-like game and saved it as a stand-alone 
application.

When the user closes the stack their preferences (number of daily 
doubles, row values, default game file, user password, etc) are 
written to an external text file.

When the user opens the stack the last used preferences are read and 
loaded into flds or variables to re-configure the game as it was last 
used.

AhHa! You see the problem already... Anyone can open the settings.txt 
file and see the password!

I'd like to encrypt the password on closestack and write that to the 
file. Then import and decrypt the password. But I don't understand the 
Rev documentation for encrypt  decrypt. The following makes NO sense 
to me at all...

encrypt source using cipher with [password|key] passorkey[and salt 
saltvalue] [and IV IVvalue] [at bit ]

Can someone provide some sample Transcript that will enlighten me?
Hi Steve,
I am not too proficient with the new feature either.  But I have used 
the following:

put superSafe into lpassword
encrypt field myData using rc4 with password lpassword at 256
put it into someVariable
Hope this gets you started.
--
Best regards,
Mark Talluto
http://www.canelasoftware.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Alex Tweedly
At 13:33 29/11/2004 -0500, Frank D. Engel, Jr. wrote:
This helps to avoid another problem as well.  If a one-second timer is 
started at, say, 1:31:32, then the minute will be about half-over by the 
time the display is updated, so that the time display is only accurate 
about half of the time.

Of course, the timer may drift somewhat if there is a delay in 
message-processing, depending on how it has been configured...
You can solve both of those problems by doing something like
send myTimer to me in (1000 - (the millisecs mod 1000) ) millisecs
OK - it looks ugly, but it should line you up onto the second boundaries 
quite simply.

In fact, the following script (with the addition of the obvious scrolling 
field, and a Stop button) shows that there is some systematic drift of 
up to 8 milliseconds (on my very SLOW Win2000 laptop).

global gStop
on mouseUp
  put 0 into gStop
  put empty into field Field
  send myTimer
end mouseUp
on myTimer
  put (the millisecs mod 1000) into t
  put t  TAB  the secs  TAB  the millisecs  cr after field Field
  if gStop = 0 then
send myTimer to me in (999 - (the millisecs mod 1000) ) millisecs
  end if
end myTimer
-- Alex.

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 1:00 AM, Scott Rossi wrote:
Can you script a more efficient timer?
Here are some overhead times on my system:
Time to send in time: 10 ns
Time to use an empty custom command:34 ns
Time to process an _additional_ empty pending message:  21 ns
The last time applies if more than one message is ready.  I'm not sure 
about this one.  It seems to be nonlinear; adding a pending message 
might increase the time 0 ns or 100 ns.

It looks to me that using send in time is efficient.
One approach to making a timer more efficient is to minimize when the 
field is updated.  It takes about 1.5 ms to update a field.  It takes 
1.7 ms to update a field and then unlock the screen.  Here are some 
ideas:

 Only update a field if the new value is not the same as the 
previous.
 Calculate the delay each time to make the next scheduled time at 
100 ms after the second.
 Do not update if the number of pending messages is greater than 
some amount.

Even though it might take more time, you might want to experiment with 
unlocking the screen after an update.

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Scott Rossi
Recently, Richard Gaskin wrote:

 I guess Scott was concerned about the smoothness of the time display
 ticking over. If you send every 1 second, and there is something holding
 up message processing, the timer may be late to update. Increasing the
 frequency increases the chance of getting it right (but doesn't
 guarantee it).
 
 Wouldn't any issues that would delay the firing of a one-second timer
 also delay a 1/10th second timer as well?
 
 
 It could, but if one is after one second accuracy, for example, the
 one-second timer will be thrown off, whereas the 1/10-second timer has the
 opportunity to correct itself (assuming whatever issues delay the timer
 don't take 3 seconds to execute).
 
 If a message were completely removed from the queue that would be an
 issue.  But if the message is merely delayed until the next idle,
 wouldn't all messages that are due for firing get fired in their firing
 order, regardless of the wait period specified when they were queued?

I don't quite follow what you're asking here (like Dave, my brain is
starting to ache), but it prompted me to try something else:

on runTimer
  if not the uAllowTimer of me then exit runTimer
  send runTimer to me in 100 millisecs
  put the long time into fld 1
end runTimer

This handler immediately triggers itself again before doing anything, so in
theory, it should remain relatively consistent while being called only once
per second.  However, taking a look at the CPU usage shows this simple
routine runs around 14% to 15% or so processor usage.  The wait x with
messages apparently uses next to nothing.  So while efficient script-wise,
send in appears to require significant more engine power to run.  That's
my take on this anyway without knowing the details about Rev's inner
workings.

You may say what's the big deal about 15% CPU usage?  It may not be an
issue for many folks.  In my case, it is a big deal: moving images around a
card, swapping the icons of buttons, scrolling text in fields, all this
stuff adds up and places higher demands on the engine.  Anything I can do to
reduce these demands enhances the ability of my apps to play nice with
others.

FWIW, I've come across other things that contribute to CPU use.  From the
above, running a timer and updating the time in an unlocked field requires
about 4 to 5 times as much usage as when placing text in a locked field.
Locking the screen before updating a number on on-screen items can place
very high demands on CPU usage if done frequently.  You may recall the
jukebox project I posted some time ago -- I consistently ran into memory
problems when trying to move all those bubbles around the screen.  I tried
everything I could of the get the processor use down and on a whim tried
removing the lock screen instructions from my scripts.  Not only did
processor use become manageable but Rev was fast enough to update the 25 or
so images without major delay.  This may not work for all situations but
it's a good trick to keep in mind.

Regards,

Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Scott Rossi
Recently, Dar Scott wrote:

 Can you script a more efficient timer?
 
 Here are some overhead times on my system:
 
 Time to send in time: 10 ns
 Time to use an empty custom command:34 ns
 Time to process an _additional_ empty pending message:  21 ns
 
 The last time applies if more than one message is ready.  I'm not sure
 about this one.  It seems to be nonlinear; adding a pending message
 might increase the time 0 ns or 100 ns.
 
 It looks to me that using send in time is efficient.

Actually, I was referring to efficiency in terms of placing demands on the
system, not in the amount of time to process within Rev.  I agree that send
is is an efficient way to process stuff within Rev, but the surprise (for
me anyway) was that apparently using wait x with messages taxes the system
less than send in.  Or does it?  Anybody at RunRev want to chime in?

Regards,

Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 11:57 AM, Steve Bonham wrote:
I'd like to encrypt the password on closestack and write that to the 
file. Then import and decrypt the password. But I don't understand the 
Rev documentation for encrypt  decrypt. The following makes NO sense 
to me at all...

encrypt source using cipher with [password|key] passorkey[and salt 
saltvalue] [and IV IVvalue] [at bit ]

Can someone provide some sample Transcript that will enlighten me?
To get started, use this simplified syntax for the password method.  
(The key method is less suited to those new to this.)

   encrypt source using cipher with [ password ] pass_phrase [ at 
bits bit ]

where that in brackets is optional and the x symbols are expressions.
This can be simplified to this:
  encrypt source using cipher with pass_phrase
I plan to suggest a default cipher.  If that idea is adopted, then the 
command will simplify more.

If there is an error, 'result()' returns non-empty.  The encrypted 
value is in the variable 'it'.  It will be larger than source.

Use bf-cbc to start for the cipher value.  To find other ciphers to 
try, use cipherNames()--except on OS X for now.

A current weakness is that the default salt value is empty, which 
will make the encryption slightly weaker.  This will probably be fixed 
soon.  For most people, procedures in using encryption have greater 
weaknesses than this, so I wouldn't worry about it (for now).  (Here is 
how you crack a cipher with a Cray:  You call up the company and ask 
for the head engineer and offer him a Cray for the keys.)

The decryption is the same; replace 'encrypt' above with 'decrypt'.
Any value can be used for source or pass_phrase, but the 
pass_phrase should not be trivial.

So, an example:
   encrypt Locker 3117, Penn Station using bf-cbc with Danger, 
Will Robinson.

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Scott Rossi
Recently, Scott Rossi wrote:

 I don't quite follow what you're asking here (like Dave, my brain is
 starting to ache), but it prompted me to try something else:
 
 on runTimer
 if not the uAllowTimer of me then exit runTimer
 send runTimer to me in 100 millisecs
 put the long time into fld 1
 end runTimer

Sorry my mistake.  This should have been:

on runTimer
 if not the uAllowTimer of me then exit runTimer
 send runTimer to me in 1000 millisecs # --- 1 second
 put the long time into fld 1
end runTimer

...which runs lower in terms of processor use.  This is definitely a lot
less than sending 10 times a second, but the for me, the question remains:
is send in better to use than wait x with messages?

Regards,

Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Steve Bonham
Okay Dar  Mark,
Thx for the input.
Tell me if I'm closer to understanding-
Let's say the hidden field password is Jedi2004 (I'm requiring 
that passwords to be one word).

to write to the external text file I can script...
on closestack
open file settings.txt
encrypt fld password using bf-cbc with Danger, Will Robinson.
write it to file settings.txt
close file settings.txt
end closestack
This would result in some gibberish (encrypted data) being written to 
the text file and this string would not be recognized as a password 
if it were typed (or copied and pasted) into the ask password dialog.

Next time the standalone is opened, this script would work to 
unscramble the encoded piece...
on preopenstack
	open file settings.txt
	read from file settings.txt until EOF
	put it into EncryptedPasswordFromLastSession
	decrypt EncryptedPasswordFromLastSession using bf-cbc with 
Danger, Will Robinson.
	put it into field password
	close file settings.txt
end preopenstack

This would result in Jedi2004 appearing in fld password again?
-- and I can use any value for the pass_phrase so I could replace 
Danger, Will Robinson. with Luke, Trust the force! right?

Steve
--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
--
--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 12:36 PM, Scott Rossi wrote:
It looks to me that using send in time is efficient.
Actually, I was referring to efficiency in terms of placing demands 
on the
system, not in the amount of time to process within Rev.
Oh, I see what you mean.  I used Activity Monitor on OS X and got this:
Send cycle (.1 s period):16%
Default Button:  29%
Both:35%
Send cycle (.05 s period)35% (fluctuates a lot)
Send cycle (.01 s period)   101%
Send cycle (1 s period)   2%
I'm on OS X 10.3.6 using a dual 1.25 GHz G4.
Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Steve Bonham
h
I tried the scripts I just posted.
Doesn't seem to work.
The on closestack script created a settings.txt file. But it is empty.
and nothing was imported back into the password field on preopencard
--
--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Mark Talluto
On Nov 29, 2004, at 12:36 PM, Steve Bonham wrote:
Okay Dar  Mark,
Thx for the input.
Tell me if I'm closer to understanding-
...snip
This will work just fine.  I would need to know more about the purpose 
of this password.  If a user sent the .txt file to a friend with your 
app, it would work just fine on the friend's system as well.

Is the purpose to lock the software to a particular system?  or To 
store user data?

--
Best regards,
Mark Talluto
http://www.canelasoftware.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 1:36 PM, Steve Bonham wrote:
on closestack
open file settings.txt
encrypt fld password using bf-cbc with Danger, Will Robinson.
write it to file settings.txt
close file settings.txt
end closestack
Yeah, but the encrypted data is binary, so try this...
on closestack
   encrypt fld password using bf-cbc with Danger, Will Robinson.
   put it into URL binfile:settings.bin
end closestack
Or use base64encode() if you need to have a text file.
Now you need to make sure no one will see your secret phrase Danger, 
Will Robinson.

This would result in Jedi2004 appearing in fld password again?
Yes, once you resolve the binary issue.
-- and I can use any value for the pass_phrase so I could replace 
Danger, Will Robinson. with Luke, Trust the force! right?
Right.
This can be a confusing example to some folks, in that you are 
encrypting something you call a password.  This will work with any 
data.

Of course you have to address the problem of what to do when there is 
no settings file and what to do about folks copying settings files 
(which might be nothing).

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 1:48 PM, Steve Bonham wrote:
The on closestack script created a settings.txt file. But it is 
empty.
That should be at least 24 bytes long.  It should start out with the 
word Salted.

Add an error check:
on closestack
   encrypt fld password using bf-cbc with Danger, Will Robinson.
   put the result
   put it into URL binfile:settings.bin
end closestack
Does your version support encrypt/decrypt?  What product and version do 
you have?

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Steve Bonham
Mark/Dar,
The standalone is a game shell designed for use by teachers. They 
will create the subject content to be imported into the Questions and 
Answer fields.

You can see it at:
http://academics.georgiasouthern.edu/cet/SB/tw_jeop/
This web page contains some screen snapshots, movies of the game 
being played, and the executable (still beta) file. It works. But 
right now the teacher can import a new game file (that they create) 
and play the game. However once they quit and reopen the game all 
their settings are reset to mine when I saved the standalone. The 
settings.txt file will allow them to save their own preferences (game 
times, categories, Questions and Answers, # daily doubles, row 
values, password, etc.). Providing for encryption of this info 
(especially the password) will allow the teacher to control the 
default settings.

There are three cards;
1. a splash screen with an animation  some music
2. the Game Room where the game is played
3. the Control Room (access to which is password protected- every 
attempt to open that card generates a Please enter your password 
dialog box) where the game (via the settings.txt file) can be 
modified.

The text file would contain the encrypted password- but unless the 
un-encrypted password is provided as well the new user (distanced 
learning students in this instance) could not get into the Control 
Room to change the game. BUT when the student opens the game it will 
automatically be configured as the teacher wants it to be.

Steve

...snip
This will work just fine.  I would need to know more about the 
purpose of this password.  If a user sent the .txt file to a friend 
with your app, it would work just fine on the friend's system as 
well.

Is the purpose to lock the software to a particular system?  or To 
store user data?

--
Best regards,
Mark Talluto
http://www.canelasoftware.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

--
--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Steve Bonham
I'm using DreamCard 2.5.
Steve
On Nov 29, 2004, at 1:48 PM, Steve Bonham wrote:
The on closestack script created a settings.txt file. But it is empty.
That should be at least 24 bytes long.  It should start out with the 
word Salted.

Add an error check:
on closestack
   encrypt fld password using bf-cbc with Danger, Will Robinson.
   put the result
   put it into URL binfile:settings.bin
end closestack
Does your version support encrypt/decrypt?  What product and version 
do you have?

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

--
--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Tabs navigation Script for windows!

2004-11-29 Thread MisterX
Hi everyone,

Hope you had the great monday I had! So here's ma fonkee email for nofemba
2004!

Because Im in a great mood, I've restored all my links on Monsieurx and
here's my gracious contribution to help out the poor of us windoze boxes
users, work smooth and smooth as we usually like to...

If anyone can point me out to the mac and linux way of things, shortcut wise
regarding these keys, I'd really appreciate it for an improved tip...

And there's a Nitrous plugin coming to exploit this in all its variations
too! This weekend probably...

Why this script?

In moft windows, control-Tab (and control-Shift-tab) allow you to navigate
across different tabs in a tab pane in any application - except, you guessed
it, RunRev! Control-Tab hides the palettes while on the mac control-alt-tab
does - funny too, the tools menu hints at control-t which doesn't always
work! This is already is a bugzilla suggestion. Relax!

So pending N. Dayakar's email, and RunRev's network upgrade, my impatience
and fortuite skills, I told myself this should be trivial right?

well, it wasn't rawkeyup... it wasn't set the selectedline of btn thetabs ,
it wasn't set the hilitedline (or text) of btn thebats (for the trivia, it
wont work either, it's for fields only)... The right command was select line
2 of btn thetabs in a rawkeydown! Newbies, behold, even an expert tries it
all!

Scripting an english language like conversation with the computer would
imply a minimum of english language intelligence right? Go figure... Rant?
No, a long awaited XOS feature I want and getting closer each day!

But I go for the tabs right now... Here's your script N! You'll have to
adapt it to your button's name naturally... It was implemented as is and
tested into the new ControlsBrowser plugin soon available at MonsieurX.com
(some irrelevant parts of the script were removed to prevent confusion). 

Sweet scripting dreams 
Xavier
http://monsieurx.com
RunRev Nitrous Plugins
--

The following script should be inserted into a card script (first in the
line of events so that a card tabbed button will respond, If you have
multiple tabs, look at the focus functions in the revdocs to adapt it... 

This script will interfere with the control-tab and control-shift-tab
commands to hide the palettes in the RunRev IDE. (see the environment
function in the revdocs if that causes a brain hemoragy.)

on rawkeydown k
  -- if the environment is not development
  -- if the platform is win32
  if k is 65289 then
get Controls   
if the hilitedtext of fld it is empty then exit rawkeydown
get View
put the selectedtext of btn it into thisline
put btn it into views
put lineoffset(thisline,views) into thisline

if the shiftkey is down then
  if thisline = 1 then
get the number of lines in views
  else 
get thisline - 1
  end if
  
else
  
  if thisline = the number of lines in views then
get 1
  else 
get thisline + 1
  end if
   
end if

select line it of btn it 
 
  else
pass rawkeydown
  end if
end rawkeydown
 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Steve Bonham
okay- got an ssl library not found error when I tried:
on closestack
  open file binfile:settings.bin
  encrypt fld mypassword using bf-cbc with Danger, Will Robinson.
  --write it to file settings.txt
   put the result
   write it to file binfile:settings.bin
   --put it into URL binfile:settings.bin
   close file binfile:settings.bin
end closestack
I've also got Revolution 2.5. Do I have to make this an standalone 
(with the SSL library included) to test it?

Steve


The on closestack script created a settings.txt file. But it is empty.
That should be at least 24 bytes long.  It should start out with the 
word Salted.

Add an error check:
on closestack
   encrypt fld password using bf-cbc with Danger, Will Robinson.
   put the result
   put it into URL binfile:settings.bin
end closestack
Does your version support encrypt/decrypt?  What product and version 
do you have?

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

--
--
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Mark Talluto
On Nov 29, 2004, at 1:16 PM, Steve Bonham wrote:
The text file would contain the encrypted password- but unless the 
un-encrypted password is provided as well the new user (distanced 
learning students in this instance) could not get into the Control 
Room to change the game. BUT when the student opens the game it will 
automatically be configured as the teacher wants it to be.

Ok... your model will work just fine for this.  Looks like lots of fun. 
 Where were these tools when I went to school?  Oh well...

--
Best regards,
Mark Talluto
http://www.canelasoftware.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Jan Schenkel
--- Steve Bonham [EMAIL PROTECTED] wrote:
 I'm using DreamCard 2.5.
 
 Steve
 

On the runrev.com website you cn find the differences
between Dreamcard and the other Revolution editions :
http://www.runrev.com/section/platform.php

When I opened the documentation to find more
information for the 'encrypt' command, I noticed at
the bottom of the text that it is part of the SSL 
Encryption library

So it could be that 'encrypt' doesn't work inside
Dreamcard -- however, you can sue a simple 'compress'
/ 'decompress' pair as a subsitute codec :
--
put compress(field password) into \
URL binfile:password.bin
--
put decompress(URL binfile:password.bin) into \
field password
--

It's always a good idea to include an md5digest in
your  file to make sure nobody has tinkered it.

Hope this helped,

Jan Schenkel.

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



__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabs navigation Script for windows!

2004-11-29 Thread Jan Schenkel
--- MisterX [EMAIL PROTECTED] wrote:
 [snip]
 
 well, it wasn't rawkeyup... it wasn't set the
 selectedline of btn thetabs ,
 it wasn't set the hilitedline (or text) of btn
 thebats (for the trivia, it
 wont work either, it's for fields only)... The right
 command was select line
 2 of btn thetabs in a rawkeydown! Newbies, behold,
 even an expert tries it
 all!
 

How about using the 'menuHistory' property ?
--
set the menuHistory of btn theTabs to xxx
--

Hope this helped,

Jan Schenkel.

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing defaultStack

2004-11-29 Thread Jan Schenkel
--- Richard Gaskin [EMAIL PROTECTED] wrote:
 
 Here's a Transcript riddle:  I know of one
 circumstance in which the 
 defaultStack will return empty -- what is it?
 
 Though it sounds like a koan there's a real answer,
 and the logic makes 
 a certain sense even if it seems initially
 counter-intuitive that 
 defaultStack should ever be empty
 

I seem to recall that the topStack can be empty if
you're displaying a combobox menu ; so I'll make a
guess :
  while displaying a menuStack ?

Jan Schenkel.

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread jbv



 It's always a good idea to include an md5digest in
 your  file to make sure nobody has tinkered it.

it's also a good idea to include base64Encode / base64Decode
to avoid character sets differences between platforms...

JB

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Frank D. Engel, Jr.
With send times that short, I would not be too worried about most of 
those readings.  The 2% usage for a 1 second timing is a bit more 
meaningful, and even this is not too bad (though I suspect it could be 
better).

Bear in mind that if running these tests in the dev environment, some 
of that percentage will be due to added overhead of the development 
environment.  You should likely test this with standalone apps to get a 
more meaningful measurement.

On a 500MHz G4 (OS 10.3.6), I created a new mainstack with a single 
checkbox.  The checkbox script is:

on x
  send x to me in 1 second
  set the hilite of me to not the hilite of me
end x
And the mainstack script:
on openStack
  send x to button Check in 1 second
end openStack
I then saved this and saved it as a standalone.  Activity monitor 
(updating every 2 sec) reports:

The Rev IDE with the stack open (and no others):  keeps shifting 
between 0.5%, 1%, 1.9%, 2%...

The standalone app: about the same, except that it occasionally drops 
as low as 0.4%, and I did see *one* flash of 3%.

Now changing the update interval to 0.5 sec:
CPU usage actually flashes from *zero* to as high as nearly 5%.
Now changing the update interval to 5 sec:
CPU usage switches from zero to about 1.9 or 2 percent.
Hint:  most of the time (CPU perspective) the usage is zero.  When 
updating the checkbox, the usage can jump to as high as nearly 5% for a 
brief period of time.  My guess is that the activity monitor is biased 
toward giving the higher readings.

I used the command-line 'time' utility to measure the runtime of the 
standalone.  The results after a few seconds were:

real0m14.617s
user0m0.890s
sys 0m0.230s
Combining user with system CPU time of the process yields about 1.12 
seconds, out of 14.617 seconds that the process was running.  This 
would suggest about 7.7% CPU usage.  Bear in mind that this includes 
startup time, displaying the window, initializing the engine, etc.

Now after a somewhat longer run:
real1m6.203s
user0m1.200s
sys 0m0.350s
This suggests usage of 1.55 second over the course of 66.203 seconds, 
for about 2.34% CPU usage.  Notice that this is much lower, and this is 
likely due to the fact that much of the startup time, etc. from the 
runs is a one-time issue.

Next experiment:
I created a new mainstack and saved it, then saved it as a standalone 
(no objects or scripts).  Now I run the 'time' command on this 
standalone:

real0m47.594s
user0m0.530s
sys 0m0.250s
This would be 0.78 second over 47.594 seconds, or 1.64% CPU usage -- 
with *NO OBJECTS OR SCRIPTS*.

This time is likely taken up by the Rev engine, so it would seem that 
the actual CPU usage of my little checkbox mechanism is only about 2.34 
- 1.64 = 0.7% CPU usage.  Hmm

You can't always judge a book by its cover.
Do note that these percentages will likely decrease slightly with 
longer runtimes (flattening out because of startup time, 
initialization, etc.), but I have no reason to run the tests for that 
long, I think I made my point here.

On Nov 29, 2004, at 3:38 PM, Dar Scott wrote:
On Nov 29, 2004, at 12:36 PM, Scott Rossi wrote:
It looks to me that using send in time is efficient.
Actually, I was referring to efficiency in terms of placing demands 
on the
system, not in the amount of time to process within Rev.
Oh, I see what you mean.  I used Activity Monitor on OS X and got this:
Send cycle (.1 s period):16%
Default Button:  29%
Both:35%
Send cycle (.05 s period)35% (fluctuates a lot)
Send cycle (.01 s period)   101%
Send cycle (1 s period)   2%
I'm on OS X 10.3.6 using a dual 1.25 GHz G4.
Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: changing defaultStack

2004-11-29 Thread Richard Gaskin
Jan Schenkel wrote:
--- Richard Gaskin [EMAIL PROTECTED] wrote:
Here's a Transcript riddle:  I know of one
circumstance in which the 
defaultStack will return empty -- what is it?

Though it sounds like a koan there's a real answer,
and the logic makes 
a certain sense even if it seems initially
counter-intuitive that 
defaultStack should ever be empty


I seem to recall that the topStack can be empty if
you're displaying a combobox menu ; so I'll make a
guess :
  while displaying a menuStack ?
I'd forgotten about that one.  Okay, there are two. :)
The other circumstance is when you check the defaultStack from a 
preOpenStack handler in the destination stack when using:

   go stack MyStack in window of this stack
Becase the originating stack has been left defaultStack does not refer 
to it, and because the destination stack has not yet been rendered 
apparently the engine regards it as not fully there.  Opening in a 
separate window does not product this anomaly.

--
 Richard Gaskin
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Dar Scott
I'm using DreamCard 2.5.
On Nov 29, 2004, at 2:33 PM, Steve Bonham wrote:
okay- got an ssl library not found error when I tried:
I'm glad you brought this up.  I don't have DreamCard and I wondered 
what would happen.

I've also got Revolution 2.5. Do I have to make this an standalone 
(with the SSL library included) to test it?
I would think you could test the stack in Revolution 2.5.  Then when 
you make a standalone you might have to include the external, though I 
would guess that it would be added for you automatically.

For your usage, almost any kind of scrambling might work.  You can try 
compression with a prefix string.  Or ROT13.

(BTW, my oldest son now lives at Statesboro.)
Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Drag a Graphic Tool

2004-11-29 Thread Roger Guay
Great idea Jim, although, I did so want to make use of the dragSpeed 
thing to have precise control of the trace.  Turtle Graphics will 
provide a great compromise!

Thanks, Roger
On Nov 29, 2004, at 8:01 AM, [EMAIL PROTECTED] 
wrote:

Actually you can set the linesize of the line or polygon tool; you
can have both your arrow and line size.
What you need apparently is more intermediate points in order to
control rate of drawing between end points. One way to do this would
be with, you guessed it, Turtle Graphics. (You would want the version
that does vector graphics, not bit map.) For example, you could
control the motion between any two points A and B as follows:
on mouseUP
   put 0,0 into A
   put 300,300 into B
   startTurtle
   setXY A
   setheading direction(B)
   put distance(B) into d
   put 3 into s --Or whatever works for you
   repeat round(d/s) times
 forward s
 --Perhaps a wait here
   end repeat
   setxy B --Just to take care of the rounding error
end mouseUP
And you could iterate this to take you through a sequence of points.
Jim
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 12:53 PM, Dar Scott wrote:
To get started, use this simplified syntax for the password method.  
(The key method is less suited to those new to this.)

   encrypt source using cipher with [ password ] pass_phrase [ 
at bits bit ]
Whoops.  I think it is more like this:
encrypt source using cipher with [ password ] pass_phrase [ 
at bits [ bit ] ]

The word 'bit' seems to be optional.
Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Richard Gaskin
Dar Scott wrote:
I'm using DreamCard 2.5.

On Nov 29, 2004, at 2:33 PM, Steve Bonham wrote:
okay- got an ssl library not found error when I tried:
If all you need is lightweight encryption you might consider using the 
fwPack and fwUnpack functions:

http://www.revjournal.com/comments.php?id=P65_0_1_0
While not nearly as secure as Blowfish, for modest needs they're fast, 
easy to use, and are pure Transcript so no external parts are needed.

--
 Richard Gaskin
 Fourth World Media Corporation
 __
 Rev tools and more: http://www.fourthworld.com/rev
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Alex Tweedly
At 13:31 29/11/2004 -0800, Jan Schenkel wrote:
--- Steve Bonham [EMAIL PROTECTED] wrote:
 I'm using DreamCard 2.5.

 Steve

On the runrev.com website you cn find the differences
between Dreamcard and the other Revolution editions :
http://www.runrev.com/section/platform.php
When I opened the documentation to find more
information for the 'encrypt' command, I noticed at
the bottom of the text that it is part of the SSL 
Encryption library
So it could be that 'encrypt' doesn't work inside
Dreamcard --
Definitely the case - on http://revolution.runrev.com/section/whats_new.php 
it says
Industrial strength encryption
Encrypt and decrypt data for all commerce and secure applications using 
industrial strength encryption (Revolution only).
so it's pretty clear that it would not be supported in Dreamcard (and 
certainly it never returns any value for me, in Dreamcard).

however, you can sue a simple 'compress'
/ 'decompress' pair as a subsitute codec :
--
put compress(field password) into \
URL binfile:password.bin
--
put decompress(URL binfile:password.bin) into \
field password
Or, since you never need to retrieve the password, but merely ensure that 
it has been reproduced 

put binarydecode(H32, md5Digest(field password  my secret string), 
myVar)
put myVar into URL file:password.hex

and subsequently
put URL file:password.hex into correctValue
put binarydecode(H32, md5Digest(field password  my secret string), 
myVar)
if myVar  correctValue then
    password is wrong ...
end if


It's always a good idea to include an md5digest in
your  file to make sure nobody has tinkered it.
Yep. I'd go with that too, just to be extra sure no-one has tinkered with 
it improperly.

BTW - if you are using Dreamcard, do you plan to distribute the stack with 
the player ?
Dreamcard won't allow you to build standalones.  If you distribute the 
stack, you'll need to be careful about password protecting the stack - raw 
stacks can be easily read in any text editor which could make your 
password mechanism too clear to the enterprising student.

-- Alex.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Robert Brenstein
If there is an error, 'result()' returns non-empty.  The encrypted 
value is in the variable 'it'.  It will be larger than source.

I am curious why encrypt and decrypt are not functions (like 
compress, base64, etc) but return the value in 'it'?

Robert
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Testing stacks against Dreamcard

2004-11-29 Thread Dar Scott
I have Revolution.  Dreamcard came in when I blinked.
How do I know whether stacks I create work with Dreamcard?  The Rev 
docs say nothing about Dreamcard.

(I suspect this has a simple answer.)
Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Encrypt Password - Decrypt same

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 4:02 PM, Robert Brenstein wrote:
I am curious why encrypt and decrypt are not functions (like compress, 
base64, etc) but return the value in 'it'?
That's a good question.  I can give my opinion that might hold you 
until you get an authoritative answer.

1.
There are some optional portions.  In most cases they can be simply 
left empty, but in some cases you need a flat of some sort.  So you 
might have a seven arg function like this:

function encrypt source, cipher, usePassword, passOrkeyVal, useSalt, 
saltOrIV, bits

2.
The other reason is error handling.  The only option for a function is 
throwing an error.  (See try and throw in the Transcript Dictionary.)

The error in 'result()' and the data in 'it' are used other places, so 
for many these are not new concepts.

You can make your own function, of course, and you can even use the 
result to decide whether to throw an error.

Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Testing stacks against Dreamcard

2004-11-29 Thread Frank D. Engel, Jr.
For starters, you can download the Dreamcard Player for free from the 
Rev web site.  If it works in the player, it will probably work in 
Dreamcard.

Dreamcard is basically Rev minus the ability to create standalones. and 
without RevDB (and possibly some of the other externals?)

On Nov 29, 2004, at 6:16 PM, Dar Scott wrote:
I have Revolution.  Dreamcard came in when I blinked.
How do I know whether stacks I create work with Dreamcard?  The Rev 
docs say nothing about Dreamcard.

(I suspect this has a simple answer.)
Dar

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

---
Frank D. Engel, Jr.  [EMAIL PROTECTED]
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep John 3:16
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$


___
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to set Tab key in Tab panel

2004-11-29 Thread Sarah Reichelt
You can use an arrowKey handler to detect arrow keys being pressed and 
a tabKey handler to detect the tab key. Then set the menuHistory of the 
Tab button in response. Don't forget to pass the arrowKey message if 
you aren't handling it, just in case it is needed to do something else.

Cheers,
Sarah
[EMAIL PROTECTED]
http://www.troz.net/Rev/
On 29 Nov 2004, at 10:47 pm, N. Dayakar wrote:
Hi All,
Could anybody please help me how to select the tabs in a Tab Panel 
with
tab key/arrow key.

I am using Revolution 2.5 in Mac OS 10.3.4.
--
With kind regards,
N Dayakar
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabs navigation Script for windows!

2004-11-29 Thread Chipp Walters
X,
what does
get Controls
do?
-Chipp
MisterX wrote:

get Controls   

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.3 - Release Date: 11/26/2004
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Menu button problem

2004-11-29 Thread David Squance
I've been experimenting a bit with menu buttons.  I built a cascading 
menu button which works very nicely for choosing between several cards. 
 When I tried to do the same thing for a font selection the behaviour 
is very strange.  First, it activates on mouseover or mousewithin, 
neither of which commands are anywhere to be found in the stack.  And, 
after quitting and restarting RR, now the button contents are not 
displayed at all.  There's just a brief flash of the outline and it 
disappears again.
I'm using RR2.1.2 Mac OS10.3.6
Dave

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Mailing List?

2004-11-29 Thread Gordon
Did I get cut from the rev mailing list or is it down?
I suddenly stopped getting any email from it!

Best

Gordon


=
:: Gordon Webster ::
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Menu button problem

2004-11-29 Thread David Squance
I've been experimenting a bit with menu buttons.  I built a 
cascading menu button which works very nicely for choosing between 
several cards.  When I tried to do the same thing for a font 
selection the behaviour is very strange.  First, it activates on 
mouseover or mousewithin, neither of which commands are anywhere to 
be found in the stack.  And, after quitting and restarting RR, now 
the button contents are not displayed at all.  There's just a brief 
flash of the outline and it disappears again.
I'm using RR2.1.2 Mac OS10.3.6
Dave
I solved it by trashing the button and doing it over.  Weird, though.
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


QT-MP3?

2004-11-29 Thread Richard Gaskin
Anyone have an external to convert QT audio files to MP3?
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT-MP3?

2004-11-29 Thread Scott Rossi
Recently, Richard Gaskin  wrote:

 Anyone have an external to convert QT audio files to MP3?

Do you have to do this within Rev or are you looking to simply convert files
(thus something like iTunes)?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Most Efficient Timer?

2004-11-29 Thread Dar Scott
On Nov 29, 2004, at 2:53 PM, Frank D. Engel, Jr. wrote:
With send times that short, I would not be too worried about most of 
those readings.  The 2% usage for a 1 second timing is a bit more 
meaningful, and even this is not too bad (though I suspect it could be 
better).
Many types of communications apps would need much better than 1 second 
timing, of course.  Some games might, too.

Bear in mind that if running these tests in the dev environment, some 
of that percentage will be due to added overhead of the development 
environment.  You should likely test this with standalone apps to get 
a more meaningful measurement.
That's a good test.
However, I'm now getting 0% without the send cycle.  Also, I'm not sure 
what the dev environment would do but add maybe 20 ns each cycle as the 
message rattles down the front scripts before getting to the right 
script.

It might be all that overhead is in the event queue overhead, but I 
would be surprised if it was.

I created a new mainstack and saved it, then saved it as a standalone 
(no objects or scripts).  Now I run the 'time' command on this 
standalone:

real0m47.594s
user0m0.530s
sys 0m0.250s
This would be 0.78 second over 47.594 seconds, or 1.64% CPU usage -- 
with *NO OBJECTS OR SCRIPTS*.

This time is likely taken up by the Rev engine, so it would seem that 
the actual CPU usage of my little checkbox mechanism is only about 
2.34 - 1.64 = 0.7% CPU usage.  Hmm
.7% of 47.594 s is .333158 s
47.594 s / 5 s per cycle is 9 cycles
.333158 s / 9 cycles
That means an overhead of 37 ms per cycle.
That's the bad news.
The good news helps a little.  In applications with more than 25 
messages per second, several are done in a row, otherwise the message 
queue would grow indefinitely.

Even so, I think this is an awful overhead.  I want 1.1 ms or better.
I think I've made my point here.  ;-)
Do note that these percentages will likely decrease slightly with 
longer runtimes (flattening out because of startup time, 
initialization, etc.), but I have no reason to run the tests for that 
long, I think I made my point here.

Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services


Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT-MP3?

2004-11-29 Thread Richard Gaskin
Scott Rossi wrote:
Recently, Richard Gaskin  wrote:

Anyone have an external to convert QT audio files to MP3?

Do you have to do this within Rev or are you looking to simply convert files
(thus something like iTunes)?
Gotta be Rev.  It's for a client.
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Reusable code (again)

2004-11-29 Thread Gordon
Dear Revolutionaries

I am still a bit confused about creating reusable
code.

Suppose I have a stack file with some reusable
functions and constants in it - e.g. for doing math

How do I store the constants in my reusable stack and
then make them available to the rest of the app when I
load the stack?

If I have some functions, how do I do the same kind of
thing with them?

I am still not clear on the use of 'insert script' or
custom properties. If somebody could show me how this
works with the following constant and function, I
would be very grateful

e.g. my library stack contains ...

a constant called 'HalfCircle' with a value of 180.0

a function called 'degreestoradians' defined as

function degreestoradians degrees
   return (degrees/180.0) * 3.1415926
end function

How do I store these in my library stack?
How do make them available to the rest of my app when
the library stack is loaded?

Best

Gordon

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT-MP3?

2004-11-29 Thread Pierre Sahores
Hello Richard,
In beetwin possible others ways,
To test the procedure :
1.- Drag'n drop the movie (demux files only) over iTunes.
2.- Export the file as MP3 from the iTunes Advanced menu.
To drive it from within Rev :
3.- Build the automation process in driving it trought applescript or 
QuickKeysX from within Rev.

Best, Pierre
Le 30 nov. 04, à 03:58, Richard Gaskin a écrit :
Scott Rossi wrote:
Recently, Richard Gaskin  wrote:
Anyone have an external to convert QT audio files to MP3?
Do you have to do this within Rev or are you looking to simply 
convert files
(thus something like iTunes)?
Gotta be Rev.  It's for a client.
--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.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


AirTunes and REV

2004-11-29 Thread Thomas McGrath III
Has anyone figured out how to send to an Airport Express with AirTunes? 
I know that the music is wrapped in Apples new compression scheme and 
then decoded. Also, Dolby files are wrapped and then unwrapped and then 
decoded at the stereo.
SOOOo if REV could pass to the airport express and do the wrapping then 
this would be easy.

Anyone else looking at this?
Tom
Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Reusable code (again)

2004-11-29 Thread Sarah Reichelt
Suppose I have a stack file with some reusable
functions and constants in it - e.g. for doing math
How do I store the constants in my reusable stack and
then make them available to the rest of the app when I
load the stack?
If I have some functions, how do I do the same kind of
thing with them?
I am still not clear on the use of 'insert script' or
custom properties. If somebody could show me how this
works with the following constant and function, I
would be very grateful
e.g. my library stack contains ...
a constant called 'HalfCircle' with a value of 180.0
a function called 'degreestoradians' defined as
function degreestoradians degrees
   return (degrees/180.0) * 3.1415926
end function
How do I store these in my library stack?
How do make them available to the rest of my app when
the library stack is loaded?
You can't store re-usable constants :-(
Constants have to be declared in every script that uses them.
The easiest way to to make them functions rather than constants.
Make your stack with the stack script containing all your math 
functions e.g.
function halfCircle
  return 180
end halfCircle

function degreestoradians degrees
   return (degrees/180.0) * 3.1415926
end function
When you need to access these functions in another stack file, go to 
the Inspector for that client stack and set the Stack files to 
include your Math stack. This will make sure that the file containing 
your Math stack is included in any build. In the startup routines i.e. 
preOpenStack or openStack, include a line saying:
	start using stack Math

Now you can call your halfCircle or degreestoradians functions from 
anywhere in the client stack or it's sub-stacks.

There are other ways to achieve the same result, but this is the one I 
use most of the time.

Cheers,
Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: AirTunes and REV

2004-11-29 Thread Richard Gaskin
Thomas McGrath III wrote:
Has anyone figured out how to send to an Airport Express with AirTunes? 
I know that the music is wrapped in Apples new compression scheme and 
then decoded. Also, Dolby files are wrapped and then unwrapped and then 
decoded at the stereo.
SOOOo if REV could pass to the airport express and do the wrapping then 
this would be easy.
Streaming tunes through Airport Express with AirTunes is a snap.  It 
powered my gal's birthday party a couple months back. Good times.

But doing it from Rev may be less of a snap.  That is, unless Trevor has 
more goodies in store in his externals collection. :)

In the meantime, could you let iTunes be the engine and drive it with 
Rev via AppleScript?

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Reusable Code (again)

2004-11-29 Thread Gordon
Sorry, I meant to ask for a variable example, not a
constant. My question is this then ...

How do I have my reusable stack introduce a global
variable that can be passed around in an application
that uses the stack? Can I declare a global variable
in the stack script of the reusable stack and then use
the 'start using' construct that was described
earlier?

Does this avoid having to declare the same global
variable in the rest of my app?

Best

Gordon

 e.g. my library stack contains ...
 
 a constant called 'HalfCircle' with a value of 180.0
 
 a function called 'degreestoradians' defined as
 
 function degreestoradians degrees
   return (degrees/180.0) * 3.1415926
 end function
 
 How do I store these in my library stack?
 How do make them available to the rest of my app
when
 the library stack is loaded?
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: AirTunes and REV

2004-11-29 Thread Scott Rossi
Recently, Thomas McGrath III wrote:

 Has anyone figured out how to send to an Airport Express with AirTunes?
 I know that the music is wrapped in Apples new compression scheme and
 then decoded. Also, Dolby files are wrapped and then unwrapped and then
 decoded at the stereo.
 SOOOo if REV could pass to the airport express and do the wrapping then
 this would be easy.
 
 Anyone else looking at this?

Send me an Airport Express and I'll be happy to try it out. :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT-MP3?

2004-11-29 Thread Scott Rossi
Recently, Richard Gaskin wrote:

 Anyone have an external to convert QT audio files to MP3?
 
 
 Do you have to do this within Rev or are you looking to simply convert files
 (thus something like iTunes)?
 
 Gotta be Rev.  It's for a client.

Might be possible to do on OSX using AppleScript + iTunes + Rev.  Not sure
if this is acceptable to your client.

Regards,

Scott Rossi
Creative Director
Tactile Media, Development  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Reusable Code (again)

2004-11-29 Thread Sarah Reichelt
No, it doesn't really work with either globals or constants, although 
again, you can fake it with handlers.

Suppose you have a global in the Math stack called gVar.
You can set it from anywhere using a special handler in the Math stack 
script:
on setGlobal newSetting
  global gVar
  put newSetting into gVar
end setGlobal

And then retrive the value at any time:
function readGlobal
  global gVar
  return gVar
end readGlobal
Using the do command, you could make these general global setting  
reading handlers but for starters, it's easier to follow this way.

This is a way to get around having to declare the global in every 
script where you need it.

Sarah
On 30 Nov 2004, at 2:41 pm, Gordon wrote:
Sorry, I meant to ask for a variable example, not a
constant. My question is this then ...
How do I have my reusable stack introduce a global
variable that can be passed around in an application
that uses the stack? Can I declare a global variable
in the stack script of the reusable stack and then use
the 'start using' construct that was described
earlier?
Does this avoid having to declare the same global
variable in the rest of my app?
Best
Gordon
e.g. my library stack contains ...
a constant called 'HalfCircle' with a value of 180.0
a function called 'degreestoradians' defined as
function degreestoradians degrees
  return (degrees/180.0) * 3.1415926
end function
How do I store these in my library stack?
How do make them available to the rest of my app
when
the library stack is loaded?
___
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


stacks interacting over LAN? (newbie)

2004-11-29 Thread kweto
Hello All,
(B
(BWhat I have in mind is somehow "connecting" two stacks that are running on
(Bseparate computers over a small LAN so that they interact with each other in
(Breal time. For example, a student clicks on a button representing the letter
(B"A" on her computer's stack and, immediately, another student on a separate
(Bcomputer's stack sees that same letter appear as well as hears a
(Bcorresponding sound file.
(B
(BNow, rather than expecting an entire scripting solution (to which I of
(Bcourse would not say "no"!), I'd just like some pointers in the right
(Bdirection. Where in the documentation can I learn more? What sample stacks
(Bare there that I might tinker with? In the past I've (barely!) managed to
(Bincorporate SQL functions into separate stacks running on a LAN, but that
(Bwas "simply" to read/write data from/to a common text file. I have no idea,
(Bhowever, how to make one stack "aware" of and "reactive" to, for example,
(Bmouse-events or global variables that are initiated by another stack.
(BSockets? Pipes? Is this so complex that I'd better just give up now??
(B
(BThanks for listening.
(B
(BCheers,
(BNicolas Cueto
(Bniconiko language school (Japan)
(B___
(Buse-revolution mailing list
([EMAIL PROTECTED]
(Bhttp://lists.runrev.com/mailman/listinfo/use-revolution

Re: How to set Tab key in Tab panel

2004-11-29 Thread N. Dayakar

On Tue, November 30, 2004 5:21 am, Sarah Reichelt said:
 You can use an arrowKey handler to detect arrow keys being pressed and
 a tabKey handler to detect the tab key. Then set the menuHistory of the
 Tab button in response. Don't forget to pass the arrowKey message if
 you aren't handling it, just in case it is needed to do something else.


Hi Sarah,

Thank you very much for giving me the tip to set the tab key functioning
in the Tab Panel. :-)

Cheers,

Dayakar N

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Tabs navigation Script for windows!

2004-11-29 Thread N. Dayakar

On Tue, November 30, 2004 2:56 am, MisterX said:

[...]
 So pending N. Dayakar's email, and RunRev's network upgrade, my impatience
 and fortuite skills, I told myself this should be trivial right?

 well, it wasn't rawkeyup... it wasn't set the selectedline of btn thetabs
 ,
 it wasn't set the hilitedline (or text) of btn thebats (for the trivia, it
 wont work either, it's for fields only)... The right command was select
 line
 2 of btn thetabs in a rawkeydown! Newbies, behold, even an expert tries it
 all!
[...]

Hi Xavier,

Thank you very much for script you have provided. Delighted to get the
response from the experts.

Regards,

Dayakar N

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: QT-MP3?

2004-11-29 Thread Trevor DeVore
On Nov 29, 2004, at 6:58 PM, Richard Gaskin wrote:
Scott Rossi wrote:
Recently, Richard Gaskin  wrote:
Anyone have an external to convert QT audio files to MP3?
Do you have to do this within Rev or are you looking to simply 
convert files
(thus something like iTunes)?
Gotta be Rev.  It's for a client.
Well this might be a little too involved but one solution might be:
qt-WAV/AIFF-mp3
You could use the EnhancedQT external to convert to a temporary 
wave/aiff file.  Then send that file to something like the lame 
http://sourceforge.net/projects/lame/ mp3 encoder executable using 
the command line.  The lame executable isn't too big and could be 
hidden in the app bundle on OS X I think.

The EnhancedQT external currently only supports exporting using a 
dialog but adding an option to just export and audio track to a high 
quality WAV/AIFF without any additional options wouldn't be too 
difficult.

--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution