Re: Quintessential XCMDs

2002-12-25 Thread J. Landman Gay
On 12/25/02 6:02 AM, Geoff Canyon wrote:


Alas, I don't know the available XCMDs well enough to know what each of 
the ones on the list does. I'm curious, though -- what were the seven 
and what do they do?

I just knew somebody was going to ask me that. ;) I had to go back and 
re-read the list, and ended up making some adjustments the second time 
through. Now I only see five that MetaCard can't do one way or another:

XFCN,MoveToTrash -- we can do this on Macs with an AppleScript, but I 
don't think there is an easy way to move a file to the trash on other 
platforms. Renaming the file to change its location may work on OS X and 
the Unixes, but I haven't tried it.

XFCN,SetVisible -- this sets the visibility of a file on disk.

XFCN,stripGarbage -- This is one whose function I don't know, so I left 
it in the list. If it just removes the extra junk padding at the end of 
a stack file, we wouldn't need it because MetaCard doesn't accumulate 
junk the way HyperCard files do. But maybe it does something different.

XCMD,PrintDoc -- if this one just prints stack-generated files, then we 
can do it. But I think it prints other types of files.

There are three others we can do in MetaCard, but only by writing more 
complex handlers that loop through files counting things. The following 
three XFCNs would be a quicker way to get the job done:

XCMD,CopyFolder -- we'd have to loop through the files, reading and 
rewriting each one; this does it in a single call.

XFCN,FolderSize -- we'd have to loop through the files, adding up their 
sizes. On a Mac you can get this info directly with an AppleScript, but 
I don't think you can do it on other platforms.

XFCN,countNulls -- we'd have to read in a file, loop through the 
contents, and count the null characters. Though, to be honest, I can't 
imagine why one would need to do this.

Don't take my word as authoritative though, I probably missed something. 
It was a long list.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

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


[ANN] RevNet launched

2002-12-25 Thread Richard Gaskin

Announcing RevNet - a new service for Revolution and MetaCard developers

This free plugin downloads and opens RevNet, an AOL-like online journal and
resource index specifically for Revolution and MetaCard Developers.

RevNet's index of downloadable stacks provides a form so you can add your
own stacks to its list, making them instantly available to all RevNet users.

Also contains a convenient index to the Sons of Thunder Revolution Tips
archive, links to Web pages devoted to Revolution and MetaCard, and more.

Get the free Go RevNet plugin at the 4W Revolution Embassy page:


Feel free to mirror the Go RevNet stack at your own sites if you like.


Merry Christmas. :)

-- 
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Re: Quintessential XCMDs

2002-12-25 Thread Richard Gaskin
J. Landman Gay wrote:

> I thought this was interesting: Today on the HyperCard mailing list a
> member posted a list of 66 XCMDs/XFCNs that he considered
> "quintessential" -- externals that a serious developer simply could not
> do without. I was familiar with almost all of them, having used most of
> them myself. Scanning the list, I found only seven that MetaCard could
> not do natively, and one of those seven I left in the list because I
> wasn't sure exactly what its purpose was.

The list is here if aqnyone wants to take a gander:


It might be fun if someone has time on their hands to rewrite them as native
Transcript handlers.  Most of them are fairly trivial.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

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



Re: Visual Basic and video

2002-12-25 Thread Vikram Singh
Klaus Major wrote:

>The grabimage command grabs the current frame, and copies it to the
>specified variable (videoimagedata) as imagedata (rgb, rgb). You can then
>set the imagedata of an image.to display the frame. Useful if you want to
>take a photograph.

>Sounds promising, doesn't it ?! :-)

Got my adrenaline flowing! Many thanks Klaus, for telling the list. I just saw 
their site; they have made a mention of Video recording being supported. Hope 
we get to test this feature in the Beta(due apparently mid-Jan).

Considering the millions of hours of video digitized daily, this will turn out 
to be a key attraction for developers.

All the best Kevin and the team!

Rgds
Vikram

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



RE: Player and Field

2002-12-25 Thread Vikram Singh
J. Landman Gay" <[EMAIL PROTECTED]> wrote:

>This is one of the built-in behaviors of QuickTime. There are a lot of
>other keys that activate various behaviors too, which allow a player
>object to be controlled from the keyboard. In one of my stacks, this was
>a big advantage and I appreciated the flexibility it gave my users.
>
>It only works, though, if the focus is on the player. If you change the
>focus to some other object, keystrokes are directed to that object
>instead and the keyboard should behave normally. You can use the "focus"
>command to switch focus to something else.
>

It still does, if I try typing in an unlocked field (whereby the focus changes 
to the field). However, the arrow keys (which would have advanced the player 
framewise, for example) behave normally in the field, not passing the message 
to the player. But the Spacebar's pressing is picked up by the player somehow 
:-) And it starts playing. And if there are multiple players, they all pick up 
the message. This is on the latest Beta (Build 3)

Rgds
Vikram

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



Re: Player and Field

2002-12-25 Thread J. Landman Gay
On 12/25/02 7:36 AM, Vikram Singh wrote:

I try typing a sentence in a field; the card also has a player. On pressing 
the Space Bar the player starts/stops. Is there a way to avoid this.

This is one of the built-in behaviors of QuickTime. There are a lot of 
other keys that activate various behaviors too, which allow a player 
object to be controlled from the keyboard. In one of my stacks, this was 
a big advantage and I appreciated the flexibility it gave my users.

It only works, though, if the focus is on the player. If you change the 
focus to some other object, keystrokes are directed to that object 
instead and the keyboard should behave normally. You can use the "focus" 
command to switch focus to something else.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

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


Re: Visual Basic and video

2002-12-25 Thread Klaus Major
Hi Jack,


I don't know about details (i do not have any video device yet,
although it is christmas :-(,   but on a Mac you can do it with
Quicktime
and on windoze you have the choice of QT of "Video for windoze"


Wow!  This sounds very cool!  Now - I hate to keep bugging here - but 
I am
actually a Metacard programmer - haven't dabbled much on the RR side.  
If
it is going to be a part of RR should I expect it to be a part of 
Metacard
too?

I hope you are not too disappointed, but these externals are of course
compatible with MC, but they are only sold with a copy of RR :-(
Just like the "mysql" and other database-connecting externals...

I think they will offer some crossgrade from MC.

That's marketing...


This is GREAT!

Thanks for everything!

Jack Rarick
Braintree Athletic Systems


Regards

Klaus Major
[EMAIL PROTECTED]

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



Re: Visual Basic and video

2002-12-25 Thread Braintree Athletics
>
>
> I don't know about details (i do not have any video device yet,
> although it is christmas :-(,   but on a Mac you can do it with
> Quicktime
> and on windoze you have the choice of QT of "Video for windoze"

Wow!  This sounds very cool!  Now - I hate to keep bugging here - but I am
actually a Metacard programmer - haven't dabbled much on the RR side.  If
it is going to be a part of RR should I expect it to be a part of Metacard
too?

This is GREAT!

Thanks for everything!

Jack Rarick
Braintree Athletic Systems

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



Re: Visual Basic and video

2002-12-25 Thread Klaus Major
Hi Jack,


Klaus Major wrote:


revVideoGrabber ,optionalparameters  :-)

How do you like this line ;-)
All this and more in the next version of RR.
And crossplatform, of course...

 
Okay Klaus - I'll bite! 


Ouch ! ;-)


Do you really think that "videoGrab" is a part of Rev 2.0? 


I don't think so, i know !


Do you think it would be able to import both digital (Firewire)
and analog (some kind of USB deviee or PCI card?) 


I don't know about details (i do not have any video device yet,
although it is christmas :-(,   but on a Mac you can do it with 
Quicktime
and on windoze you have the choice of QT of "Video for windoze"

Man - this could be very cool.

Thanks - even if you are teasing -


No trick, no bluff, no fooling and no shit ;-)


and have a tremendous holiday season!


Thank you and to you , too :-)


Jack Rarick
Braintree Athletic Systems


Regards

Klaus Major
[EMAIL PROTECTED]

P.S.
This is the "videograbbercommands.txt" file from the last alpha-build 
of RR.

I don't think this is topsecret, so i will add it here in the PS...
(Please don't shoot me if it is...)

##

revVideoGrabber ,optionalparameters

Video grabber command:
a) Open - opens the video grabber using quicktime or video for windows.
Specify the name of the stack, and rect of the video grabber window.

examples 1 - open video grabber at rect of image 1 with video for 
windows
revvideograbber "open",short name of this stack,"qt",rect of field 2
example 2 - open video grabber at rect of field 2 with quicktime

Quicktime is supported on Mac and Windows

b) Show - starts previewing/displaying video (but does *not save the 
video
data to disk*). For quicktime you need to call revvideograbber idle to 
give
QT sufficient processing time..this is not needed when using video for
Windows. Stops recording if recording was in progress

example -
revvideograbber "show"
repeat while recordvideo is true
  revvideograbber "idle" # give qt processing time
  wait for 1 millisecond with messages # handles any events
  end repeat

c) Idle - Gives Quicktime processing time to display video input source
(required to update display when previewing and recording). Does nothing
when using VFW, as Windows internally opens a seperate thread to do 
this.

d) Hide - Stops previewing/displaying video

e) StartRecording - Starts recording and displaying the video and saves 
to
specified filename on disk.

example -
revvideograbber "startrecording",

As stated above you need to give QT sufficent processing time while
recording using revvideograbber "idle"

f) StopRecording - stop recording video.

g) Dialog - displays the standard video recording dialogs for Quicktime 
or
Video for Windows.
The types of dialogs you can specify are compression, format, display, 
and
source. Neither QT or VFW supports all dialog types.

example - revvideograbber "dialog","compression"
revvideograbber "dialog","format"
revvideograbber "dialog","display"
revvideograbber "dialog","source"

h) Close - closes the video grabber. This stop recording..if recording 
was
in progress.  Should call on closestack to release memory used by video
grabber.

i) revvideograbber "grabimage",width of image 1, height of image
1,"videoimagedata"
set the imagedata of image "videoimage" to videoimagedata

The grabimage command grabs the current frame, and copies it to the
specified variable (videoimagedata) as imagedata (rgb, rgb). You can 
then
set the imagedata of an image.to display the frame. Useful if you want 
to
take a photograph.

##

Sounds promising, doesn't it ?! :-)
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Visual Basic and video

2002-12-25 Thread Braintree Athletics


 
Klaus Major wrote:
 
revVideoGrabber ,optionalparameters  :-)
How do you like this line ;-)
All this and more in the next version of RR.
And crossplatform, of course...
 
Okay Klaus - I'll bite!  Do you really think that "videoGrab" is a
part of Rev 2.0?  Do you think it would be able to import both digital
(Firewire) and analog (some kind of USB deviee or PCI card?)  Man
- this could be very cool.
Thanks - even if you are teasing - and have a tremendous holiday season!
Jack Rarick
Braintree Athletic Systems
 


Player and Field

2002-12-25 Thread Vikram Singh
I try typing a sentence in a field; the card also has a player. On pressing 
the Space Bar the player starts/stops. Is there a way to avoid this.

Your help will be appreciated.

Rgds
Vikram

PS (The platform is Windows)

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



Re: Quintessential XCMDs

2002-12-25 Thread Geoff Canyon
For anyone who's interested, the list in question is at:

http://groups.yahoo.com/group/HyperCard/messages

Alas, I don't know the available XCMDs well enough to know what each of 
the ones on the list does. I'm curious, though -- what were the seven 
and what do they do?

On Tuesday, December 24, 2002, at 08:45 AM, J. Landman Gay wrote:

I thought this was interesting: Today on the HyperCard mailing list a 
member posted a list of 66 XCMDs/XFCNs that he considered 
"quintessential" -- externals that a serious developer simply could 
not do without. I was familiar with almost all of them, having used 
most of them myself. Scanning the list, I found only seven that 
MetaCard could not do natively, and one of those seven I left in the 
list because I wasn't sure exactly what its purpose was.

regards,

Geoff Canyon
[EMAIL PROTECTED]

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



Re: Web-Dedicated Metacard

2002-12-25 Thread Geoff Canyon
Sorry that I come late to the party, but just as a historical note, 
type this in the message box and press return:

go stack url "http://www.inspiredlogic.com/mcbrowser/simple.mc";

Of course, that's if you trust me ;-)

That stack has been up since August 1999. If anyone cares to put up 
some others, I'll link it to you. (From humble beginnings...)


regards,

Geoff Canyon
[EMAIL PROTECTED]

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