Open at Startup

2002-05-05 Thread sims

If I want to have an app open when I turn on a Mac I can
make an alias (shortcut) to the app and write it to the
Startup Items folder. When the Mac is turned on, the Rev
app then automatically opens.


  put specialFolderPath(System)  /Startup Items into prefsLocation

create alias prefsLocation  /newApp Shortcut to file tFile

How does (or can) one do this for Windows?

sims


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



Open at Startup - rephrased

2002-05-05 Thread sims

Maybe I should rephrase the question...

Can I do the following with Windows - if so, how?

WITH A MAC:

If I want to have an app open when I turn on a Mac I can
make an alias (shortcut) to the app and write it to the
Startup Items folder. When the Mac is turned on, the Rev
app then automatically opens.



example:
  put specialFolderPath(System)  /Startup Items into prefsLocation

create alias prefsLocation  /newApp Shortcut to file tFile


Can I do the above with Windows - if so, how?


sims

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



Array

2002-05-05 Thread yves COPPE
Title: Array


Hello,

A few weeks ago, I posted a message without answer. So I come
again :




I have a
custom Property Set which contains an array.
the name of
thz set is cName
the keys
content :
student,1
prof,1
Student,2
prof,2


each line gives a name :

example :
student,1 === John
prof,1 === Tom

I'd like to
add some data on the existing custom set
so I start
with a new handler
I have to call
the custom property, know how much lines are stored in the custom and
add one line
for example
:
Peter =
student,3

How to proceed
?

thanks.
-- 




Re: Open at Startup - rephrased

2002-05-05 Thread Ken Ray

Sims,

For windows, do this:

  put specialFolderPath(7) into prefsLocation

When you make your alias on Windows, make sure it has a .lnk extension, as
in:

  create alias prefsLocation  /newApp Shortcut.lnk to file tFile

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

- Original Message -
From: sims [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 05, 2002 7:27 AM
Subject: Open at Startup - rephrased


 Maybe I should rephrase the question...

 Can I do the following with Windows - if so, how?

 WITH A MAC:

 If I want to have an app open when I turn on a Mac I can
 make an alias (shortcut) to the app and write it to the
 Startup Items folder. When the Mac is turned on, the Rev
 app then automatically opens.



 example:
   put specialFolderPath(System)  /Startup Items into prefsLocation

 create alias prefsLocation  /newApp Shortcut to file tFile


 Can I do the above with Windows - if so, how?


 sims

 ___
 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



Re: Array

2002-05-05 Thread Ken Ray
Title: Array



Yves,

To know how many lines are stored in the custom propery you can reference 
the keys() function and get a line count, as in 

 put the number of lines of keys(cName) into numKeys
Assuming you have two keys per "index" (one is "student" and one is 
"prof"), you would divide 'numKeys' by 2, and then add 1 for the next index 
number:

 put (numKeys/2)+1 into nextIndexNum

Then, set your array to the next element:

 set the cName[student,nextIndexNum] of object to 
"Peter"

Note that variables can be used inside the array definition (nextIndexNum), 
but if you mistype it, it will use the string as part of the array. For 
example:

 put 2 into Fred
 set the cName[student,Fred] of this stack to "Ken"

'Fred' will be recognized as a variable and will be resolved to '2', which 
will set the cName[student,2] of this stack. However, if I do this:

 put 2 into Fred
 set the cName[student,Fredd] of this stack to "Ken" -- 
Mistyped 'Fred'

'Fredd' will not be recognized as a variable and will therefore not be 
resolved and will be used directly, setting the cName[student,Fredd] of this 
stack.

Hope this helps,

Ken RaySons of Thunder SoftwareEmail: [EMAIL PROTECTED]Web Site: http://www.sonsothunder.com/


- Original Message - 

  From: 
  yves COPPE 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Sunday, May 05, 2002 10:04 AM
  Subject: Array
  
  Hello,
  
  A few weeks ago, I posted a message without answer. So I come again 
  :
  
  
  I have a custom Property 
  Set which contains an array.
  the name of thz set is 
  "cName"
  the keys content 
  :
  student,1prof,1Student,2prof,2each line gives 
  a name :example :student,1 === 
  Johnprof,1 === Tom
  I'd like to add some data 
  on the existing custom set
  so I start with a new 
  handler
  I have to call the custom 
  property, know how much lines are stored in the custom and add one 
  line
  for example :
  Peter = 
  student,3
  How to proceed 
  ?
  thanks.-- 



Re: Array

2002-05-05 Thread yves COPPE

Yves,

Assuming you have two keys per index (one is student and one is 
prof), you would divide 'numKeys' by 2, and then add 1 for the 
next index number:

   put (numKeys/2)+1 into nextIndexNum

Then, set your array to the next element:

   set the cName[student,nextIndexNum] of object to Peter



This assumes the number of entries in student and prof are equal
If I have 4 entries for student and 1 for prof and I don't know how 
much entries because this is variable ?
How to proceed ?
-- 
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Open at Startup - rephrased

2002-05-05 Thread Klaus Major

Hi Sims,

 Maybe I should rephrase the question...

Oh, sorry for the delay ;-)

 Can I do the following with Windows - if so, how?

 WITH A MAC:

 If I want to have an app open when I turn on a Mac I can
 make an alias (shortcut) to the app and write it to the
 Startup Items folder. When the Mac is turned on, the Rev
 app then automatically opens.

 example:
  put specialFolderPath(System)  /Startup Items into prefsLocation

 create alias prefsLocation  /newApp Shortcut to file tFile

 Can I do the above with Windows - if so, how?

 sims

there are 2 ways.

The first is to set an entry in the windows-registry, which will cause 
YourApp
to launch after windows is started. (Everytime !)

Advantage:
When you place an alias of your app in the windows-startup-item-folder 
(there is one, but i have
no PC at hand to tell you the exact name of that folder, which would be 
solution number 2 tehn ;-)
you can prevent the launching of your app by holding the shift-key while 
windows is starting.
(Yes, the same shortcut as on a mac, funny, isn't it ;-)

With this registry-entry you cannot prevent your app to launch, except 
by setting this reg-entry to empty :-)

The following script is ONLY tested on Win98, so no guarantees for other 
windows-versions !!!
But should work anyway...

on xxx
   ##put the path to YourApp.exe into the_app
  replace / with \ in the_app ### we have to speak windows
 get 
setregistry(HKEY_local_machine\Software\Microsoft\Windows\CurrentVersion\
Run\YourApp, the_app)
end xxx

To delete that entry again, set the entry to empty.

on xxx
 get 
setregistry(HKEY_local_machine\Software\Microsoft\Windows\CurrentVersion\
Run\YourApp, )
end xxx

YourApp is in this case the name of the registry-entry, which you can 
set to  (empty).
This way the entry will be deleted.

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



Re: Open at Startup - rephrased

2002-05-05 Thread sims

Thanks Klaus!

This makes me appreciate my mac even more..   ;-)

sims



on xxx
   ##put the path to YourApp.exe into the_app
  replace / with \ in the_app ### we have to speak windows
 get 
setregistry(HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
ion\
Run\YourApp, the_app)
end xxx

To delete that entry again, set the entry to empty.

on xxx
 get 
setregistry(HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
ion\
Run\YourApp, )
end xxx

YourApp is in this case the name of the registry-entry, which you 
can set to  (empty).
This way the entry will be deleted.

_

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



background behavior questions

2002-05-05 Thread JohnRule

I have some questions about background behavior:

Can I apply background behavior to anything (i.e. a field, a button, etc.)? 
This works very well on a group, but I could not seem to apply this to a text 
field or button.

If I delete a group (or object) that was 'common' to all cards, and then I 
want to put it back, is there a way to get it to 'sync' up with the other 
cards?


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



Re: Open at Startup - rephrased

2002-05-05 Thread Klaus Major

Hi Sims,

 Thanks Klaus!

 This makes me appreciate my mac even more..   ;-)

 sims

 on xxx
   ##put the path to YourApp.exe into the_app
  replace / with \ in the_app ### we have to speak windows
 get 
 setregistry(HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
 ion\
 Run\YourApp, the_app)
 end xxx

 To delete that entry again, set the entry to empty.

 on xxx
 get 
 setregistry(HKEY_local_machine\Software\Microsoft\Windows\CurrentVers 
 ion\
 Run\YourApp, )
 end xxx

 YourApp is in this case the name of the registry-entry, which you 
 can set to  (empty).
 This way the entry will be deleted.


Yeah, that's ugly, isn't it ;-)


Best

Klaus

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



Re: background behavior questions

2002-05-05 Thread Klaus Major

Hi John,

 I have some questions about background behavior:

 Can I apply background behavior to anything (i.e. a field, a button, 
 etc.)?
 This works very well on a group, but I could not seem to apply this to 
 a text
 field or button.

No, sorry, just groups.

BUT, you can group single objects, if you like :-)

 If I delete a group (or object) that was 'common' to all cards, and 
 then I
 want to put it back, is there a way to get it to 'sync' up with the 
 other
 cards?

Attention, if you delete a group, then it is gone forever.

Better use this syntax to place and remove groups

...
   place bg name here onto card name of card here
...

or

...
   remove bg name here from card cardname here
...

But sorry, i don't understand what you mean by
'sync' up with the other cards?

Anyway, hope this helps...


Regards


Klaus Major
[EMAIL PROTECTED]

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



Re: setprops, which property?

2002-05-05 Thread Almesjö

If I set the customPropertySet to an array, then it seems like setProps
only works with the name of this set (not the keyname but the name of the
array).. so how do you know which property that was set?


Message: 10
Date: Sat, 4 May 2002 20:06:17 -0700
To: [EMAIL PROTECTED]
From: Jeanne A. E. DeVoto [EMAIL PROTECTED]
Subject: Re: setprops, which property?
Reply-To: [EMAIL PROTECTED]

At 1:28 PM -0700 5/4/2002, Niklas Almesj– wrote:
Just started looking into customproperties, so I'd appreciate a hand.. 
The
setprops message seems interesting, but I don't get how you see which
property that has changed.

It's the name of the handler:

  setprop myCustomProperty
beep
  end myCustomProperty

The above beeps when you try to set myCustomProperty to a new value.

--
Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



option-command pref not sticking

2002-05-05 Thread Kurt Kaufman

I noticed that the option-command shortcut for editing an object's script 
was suddenly no longer functioning, so I checked the Revolution preferences. 
  This shortcut was enabled, but apparently was not sticking, so I reset 
all the prefs to the default, and it is working again.  Anyone else notice 
this behavior?

-KK

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

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



Re: Problems With Grouped Buttons

2002-05-05 Thread Rob Cozens

I have a simple stack with seven buttons, each set to arm on 
mouseEnter.  With seven ungrouped buttons, everything works fine; 
however in a second copy of the stack where I have grouped the same 
seven buttons the behavior is much different

I have done some further testing, and report the following:

1. If the button's 3D property is not checked, a border is drawn 
around the button on mouseLeave.  That border remains until another 
button in the group receives mouseEnter.

2. If a button's Show Border box is checked, the button will not arm on enter.

3. Without this handler in the group script:

on mouseLeave
   if button is not word 1 of the target then exit mouseLeave
   set the arm of the target to false
end mouseLeave

An armed button remains armed until another button in the group 
receives mouseEnter.
-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee.

from The Triple Foole by John Donne (1572-1631)
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Array

2002-05-05 Thread Ken Ray

Yves,

I was assuming that you were having an equal number based on the example you
submitted.

If there are going to be unequal divisions, I would recommend storing your
index value in another custom property (like 'cName[index]') and then
increment that with each record. So instead of this:

  put the number of lines of keys(cName) into numKeys
  put (numKeys/2)+1 into nextIndexNum
  set the cName[student,nextIndexNum] of object to Peter

You'd do this:

  put the cName[index] of object +1 into nextIndexNum
  set the sName[student,nextIndexNum] of object to Peter
  set the cName[index] of object to nextIndexNum

Just my $0.02,

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


- Original Message -
From: yves COPPE [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 05, 2002 11:34 AM
Subject: Re: Array


 Yves,
 
 Assuming you have two keys per index (one is student and one is
 prof), you would divide 'numKeys' by 2, and then add 1 for the
 next index number:
 
put (numKeys/2)+1 into nextIndexNum
 
 Then, set your array to the next element:
 
set the cName[student,nextIndexNum] of object to Peter
 


 This assumes the number of entries in student and prof are equal
 If I have 4 entries for student and 1 for prof and I don't know how
 much entries because this is variable ?
 How to proceed ?
 --
 ___
 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



Re: setprops, which property?

2002-05-05 Thread Ken Ray

Niklas,

I don't think there is currently a way to do that. If you have:

setProp myArray theValue
  -- stuff here
  pass myArray
end myArray

... and you execute set the myArray[10] of this stack to 100, you will
trigger the setProp handler, and 'theValue' will contain '100', but you
won't be able to retrieve the '10' key.

Am I wrong? I'd love it if I were...

Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/

- Original Message -
From: Niklas Almesjö [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 05, 2002 1:02 PM
Subject: Re: setprops, which property?


 If I set the customPropertySet to an array, then it seems like setProps
 only works with the name of this set (not the keyname but the name of the
 array).. so how do you know which property that was set?


 Message: 10
 Date: Sat, 4 May 2002 20:06:17 -0700
 To: [EMAIL PROTECTED]
 From: Jeanne A. E. DeVoto [EMAIL PROTECTED]
 Subject: Re: setprops, which property?
 Reply-To: [EMAIL PROTECTED]

 At 1:28 PM -0700 5/4/2002, Niklas Almesj- wrote:
 Just started looking into customproperties, so I'd appreciate a hand..
 The
 setprops message seems interesting, but I don't get how you see which
 property that has changed.

 It's the name of the handler:

   setprop myCustomProperty
 beep
   end myCustomProperty

 The above beeps when you try to set myCustomProperty to a new value.

 --
 Jeanne A. E. DeVoto ~ [EMAIL PROTECTED]
 Runtime Revolution Limited - The Solution for Software Development
 http://www.runrev.com/

 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.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



Hooking into Scripteditor

2002-05-05 Thread Björnke von Gierke

I was asking myself of how one could replace the scripteditor, and what 
messages one would have to send/recieve for it to function.
now bevore I look myself into the Rev-development stacks, I would like 
to know if someone did that already (maybe with another stack in the 
development enviroment).
I would also like to know if that would be easier to make with a plugin.

Or any other related hint/comment

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



Re: Display an image, bun without import it ?

2002-05-05 Thread Richard Gaskin

 In the Transcript Dictionary we could read this :
 
 Use the import command to place a sound, movie, or image in a stack,
 instead of creating a referenced control that uses an external file.
 
 I want create a referenced control that uses an external file. But how ?

Use the create command to create a new player object, then set the player's
filename property to the desired path.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 1.9: Publish any Database on Any Site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Re: Message Watcher

2002-05-05 Thread Richard Gaskin

David Vaughan writes:

 I would like to make a message watcher, like HyperCard had.  Does
 anyone
 have any ideas of how I could do this?
 
 Scott Slaugh

 You do it with frontscripts to catch and pass the messages.
 
 Umbrellaman probably already does what you want, and it was provided to
 me by um... um...
 
 Richard Gaskin of FourthWorld Media if I recall aright.
 
 Anyway, I can send a copy or the original excellent author will
 identify himself shortly.

Thanks for the generous words.

UmbrellaMan can be downloaded via anonymous FTP at:

ftp://ftp.fourthworld.com/MetaCard/

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 1.9: Publish any Database on Any Site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Re: Array

2002-05-05 Thread David Vaughan


On Monday, May 6, 2002, at 06:51 , Ken Ray wrote:

 Yves,

 I was assuming that you were having an equal number based on the 
 example you
 submitted.

 If there are going to be unequal divisions, I would recommend storing 
 your
 index value in another custom property (like 'cName[index]') and then
 increment that with each record. So instead of this:

   put the number of lines of keys(cName) into numKeys
   put (numKeys/2)+1 into nextIndexNum
   set the cName[student,nextIndexNum] of object to Peter

 You'd do this:

   put the cName[index] of object +1 into nextIndexNum
   set the sName[student,nextIndexNum] of object to Peter
   set the cName[index] of object to nextIndexNum

Yves

I do not know enough about your application to be sure this will work 
for you but have you considered reversing the index and content? 
Provided the names were unique, you could enter
set the cname[Peter] of object to student
That is, you address by name rather than by Prof/student with the 
content being their title.

This way you do not need to know which is the next index for an entry 
but you are still able to recover the title for any student or in a loop 
the list or count of Professors or students.

I thought this was one of the features of content-addressable arrays.

regards
David

 Just my $0.02,

 Ken Ray
 Sons of Thunder Software
 Email: [EMAIL PROTECTED]
 Web Site: http://www.sonsothunder.com/


 - Original Message -
 From: yves COPPE [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, May 05, 2002 11:34 AM
 Subject: Re: Array


 Yves,

 Assuming you have two keys per index (one is student and one is
 prof), you would divide 'numKeys' by 2, and then add 1 for the
 next index number:

   put (numKeys/2)+1 into nextIndexNum

 Then, set your array to the next element:

   set the cName[student,nextIndexNum] of object to Peter



 This assumes the number of entries in student and prof are equal
 If I have 4 entries for student and 1 for prof and I don't know how
 much entries because this is variable ?
 How to proceed ?
 --
 ___
 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


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



Re: Is there a faster way...

2002-05-05 Thread Ben Rubinstein

on 3/5/02 5:03 PM, Bill Vlahos at [EMAIL PROTECTED] wrote:

 repeat with i = 1 to the number of lines in field Directory
if item 1 of line i of field Directory item 2 of line i of
 field Directory  vName then
  put item 1 of line i of field Directory item 2 of line i
 of field Directory into tName
  put tName  return after button names -- populate a popup button
 for navigation later
  put tName into vName -- new Group/Task name
end if
put i into field Records -- show progress
 end repeat
 
 I'm eventually going to have a hugh number of lines to process. This way
 will be too slow even though it only needs to go through the repeat loop
 once as the Group and Task names will already be sorted.
 
 Is there a faster way?

In the loop, you have the expression (line i of field Directory) four
times.  Each time, Rev must retrieve the text of the field (much slower than
retrieving contents of a variable), and walk through it counting line breaks
until it finds the i'th line.  So in the days of HyperCard, you would have
found a considerable speedup by doing this:

   put empty into button names
   put empty into vName
   put field Directory into theData -- only retrieve this once
   repeat with i = 1 to the number of lines in theData
 put line i of theData into oneLine -- find the line once
 if item 1 of oneLine item 2 of oneLine  vName then
   put item 1 of oneLine item 2 of oneLine into tName
   put tName  return after button names
   put tName into vName
 end if
 put i into field Records
   end repeat

Actually you don't even need to access the line four times, as you calculate
the same expression twice:

   put empty into button names
   put empty into vName
   put field Directory into theData
   repeat with i = 1 to the number of lines in theData
 put line i of theData into oneLine
 put item 1 of oneLine item 2 of oneLine into tName
 if tName  vName then
   put tName  return after button names
   put tName into vName
 end if
 put i into field Records
   end repeat

(that would have made a considerable difference, but now that the expression
is only parsing the single line, it probably doesn't do much.)

Because putting data into a button or field is even slower than getting it
out, depending on whether you expect to find a lot of unique names, it may
also be worth assembling this in a variable in the loop, so that it only
gets assigned to the button once:

   put empty into allNames
   put empty into vName
   put field Directory into theData
   repeat with i = 1 to the number of lines in theData
 put line i of theData into oneLine
 put item 1 of oneLine item 2 of oneLine into tName
 if tName  vName then
   put tName  return after allNames -- accumulate
   put tName into vName
 end if
 put i into field Records
   end repeat
   put allNames into button names
 
Finally, Rev has a brilliant speed-up available: replace the counting loop
which requires Rev to locate the i'th line each time with a for each
loop, which allows Rev to just move a couple of pointers through the data:

   put empty into allNames
   put empty into vName
   put field Directory into theData
   put 1 into i -- now have to maintain progress counter explicitly
   repeat for each line oneLine in theData
 put item 1 of oneLine item 2 of oneLine into tName
 if tName  vName then
   put tName  return after allNames
   put tName into vName
 end if
 put i into field Records
 add 1 to i -- now have to maintain progress counter explicitly
   end repeat
   put allNames into button names

My guess is that by the time you've done all that, you'll be down to a
second or so.  If not - then remove the probably redundant progress
indicator (remember that putting text into fields is quite slow) and it will
be.
 
  Ben Rubinstein   |  Email: [EMAIL PROTECTED]
  Cognitive Applications Ltd   |  Phone: +44 (0)1273-821600
  http://www.cogapp.com|  Fax  : +44 (0)1273-728866


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



Re: Message Watcher (David Vaughan)

2002-05-05 Thread Jerry J

I looked at the fourthworld web site and didn't see anything about
umbrellaman. I am also interested in a message-watcher type setup.

Cheer,
Jerry

 From: David Vaughan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 
 On Sunday, May 5, 2002, at 06:39 , David Vaughan wrote:
 
  Scott
 
  You do it with frontscripts to catch and pass the messages.
 
  Umbrellaman probably already does what you want, and it was provided to
  me by um... um...
 
 Richard Gaskin of FourthWorld Media if I recall aright.
 
  Anyway, I can send a copy or the original excellent author will
  identify himself shortly.
 
  regards
  David
 
  On Sunday, May 5, 2002, at 12:26 , Scott Slaugh wrote:
 
  I would like to make a message watcher, like HyperCard had.  Does
  anyone
  have any ideas of how I could do this?
 
  Scott Slaugh

-- 

Cheer,
Jerry J
http://www.jhj.com/pbooks/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Two questions ...

2002-05-05 Thread lifepaintandpassion

Jeanne,

I didn't follow you instructions for adding HTML and email links to
textwithin a field.

There are a number of these links in a single field. I can make a certain
word/etc a link using the style pallete but how do you code that specific
link to work? How do you specify that those words link to a web site when
you can't script individual words just the field? Does this make sense?

And does this apply to links of the mailto:[EMAIL PROTECTED] as well?

All...

I have a button that will need to save the content of six single line fields
to a text file called saved_prefs in the same directory as the app. When
the user later opens that card again the openCard script will need to read
that info back in to those six fields if a text file named saved_prefs
exists. Help please. Is this possible using the starter edition (e.g., the
10 line limit -- I'd but the full version but I've been out of work since
November 9th with a family to support so food is more important right now
than software :)).

David

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



Re: Message Watcher (David Vaughan)

2002-05-05 Thread David Vaughan
Jerry

Richard has posted the correct address of the stack and I quote him here:

UmbrellaMan can be downloaded via anonymous FTP at:

ftp://ftp.fourthworld.com/MetaCard/>

-- 
Richard Gaskin 
Fourth World Media Corporation
Custom Software and Web Development for All Major Platforms
Developer of WebMerge 1.9: Publish any Database on Any Site

regards
David


On Monday, May 6, 2002, at 10:24 , Jerry J wrote:

I looked at the fourthworld web site and didn't see anything about
umbrellaman. I am also interested in a message-watcher type setup.

Cheer,
Jerry

From: David Vaughan [EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]

On Sunday, May 5, 2002, at 06:39 , David Vaughan wrote:

Scott

You do it with frontscripts to catch and pass the messages.

Umbrellaman probably already does what you want, and it was provided to
me by um... um...

Richard Gaskin of FourthWorld Media if I recall aright.

Anyway, I can send a copy or the original excellent author will
identify himself shortly.

regards
David

On Sunday, May 5, 2002, at 12:26 , Scott Slaugh wrote:

I would like to make a message watcher, like HyperCard had.  Does
anyone
have any ideas of how I could do this?

Scott Slaugh

-- 

Cheer,
Jerry J
http://www.jhj.com/pbooks/
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Two questions ...

2002-05-05 Thread David Vaughan


On Monday, May 6, 2002, at 10:21 , lifepaintandpassion wrote:

 All...

 I have a button that will need to save the content of six single line 
 fields
 to a text file called saved_prefs in the same directory as the app. 
 When
 the user later opens that card again the openCard script will need to 
 read
 that info back in to those six fields if a text file named saved_prefs
 exists. Help please. Is this possible using the starter edition (e.g., 
 the
 10 line limit -- I'd but the full version but I've been out of work 
 since
 November 9th with a family to support so food is more important right 
 now
 than software :)).

David

I do not use the limited version so my ideas are untested against a ten 
line limit. A couple of ways you can limit your script lines and 
accomplish the task are:

You know where the data is so no dialog is required (just a warning if 
the get fails, if it fits)
Read in the data with get url rather than open, read and close.
Code the six field IDs as a literal item string (1001,1007...etc) and 
then use a repeat loop to put the data lines into the corresponding 
fields.

See how that goes.

regards
Another David


 David

 ___
 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



Playing players in sequence

2002-05-05 Thread Greg Wills

Hi All
This should not be difficult, but I can't just get it to work.

I want to play a series of sound files (xxx.aiff) one after another. 
I am using Quicktime player objects (as I may need to use MP3's later 
on). The problem is I can't get them to play one after the other. 
They all want to play at once. I have tried wait until the sound is 
done, but this has no effect. I have found playstopped, but cannot 
see if and how this could assist.

Any help will be greatly appreciated.

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



Re: Playing players in sequence

2002-05-05 Thread Richard Harrison

on 5/5/2002 11:48 PM, Greg Wills at [EMAIL PROTECTED] wrote:

 Hi All
 This should not be difficult, but I can't just get it to work.
 
 I want to play a series of sound files (xxx.aiff) one after another.
 I am using Quicktime player objects (as I may need to use MP3's later
 on). The problem is I can't get them to play one after the other.
 They all want to play at once. I have tried wait until the sound is
 done, but this has no effect. I have found playstopped, but cannot
 see if and how this could assist.
 
 Any help will be greatly appreciated.
 
 regards
 Greg
 ___
 use-revolution mailing list
 [EMAIL PROTECTED]
 http://lists.runrev.com/mailman/listinfo/use-revolution

Greg,

There may be a better way than this, but it should work.

Time how many seconds each movie is.  Use the seconds function
as a timer to figure out when to stop each movie and when to
start the next.

Good Luck!

Rick Harrison

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



Screen resolution on startup?

2002-05-05 Thread lifepaintandpassion

Can you actually on openStack find out the users screen resolution
(screenRect?) and if it's less than 1024x768 not open the stack (or give a
warning them close it)?

Thanks.

david

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



Re: Screen resolution on startup?

2002-05-05 Thread David Vaughan


On Monday, May 6, 2002, at 02:12 , lifepaintandpassion wrote:

 Can you actually on openStack find out the users screen resolution
 (screenRect?)
Yes... you can use the screenRect() function...

 and if it's less than 1024x768
which returns the screen width as item 3 and height as item 4 (e.g. 
0,0,1024,768)

  not open the stack (or give a
 warning them close it)?
after which you can scale the window to suit or, if you prefer, prevent 
its use.

I discovered this information by entering screenRect in the Transcript 
Dictionary, as one does :-)

cheers
David

 Thanks.

 david

 ___
 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