Computer Science Canada

Can one display video files in turing

Author:  tlivingston [ Mon Oct 21, 2002 12:36 am ]
Post subject:  Can one display video files in turing

Can you???

If so, how.

Author:  Tony [ Mon Oct 21, 2002 7:13 pm ]
Post subject: 

You can use Sys.Exec to open up different programs. They are also executed in their default program. Such as webpage would be opened in IE and .avi would be in widows media player (unless set otherwise).

So just Sys.Exec("movename.avi") and you got yourself a movie (i might be wrong on sys syntax)

Author:  tlivingston [ Sun Nov 10, 2002 11:28 pm ]
Post subject: 

It says it is not aprocedure and hence cannot be called one.

Author:  Tony [ Mon Nov 11, 2002 1:39 am ]
Post subject: 

ya... you should look up help on it...

I think it has to be put into If statment to work, such as:
code:

If Sys.Exec ("movie.avi") then
put "movie is now playing"
else
put "file cannot be opened"
end if

Author:  Dan [ Mon Nov 11, 2002 5:11 am ]
Post subject:  turing :(

if you are using turing 3.1.1 you will have to make the avi in to an exe.

Author:  FizixMan [ Mon Nov 11, 2002 8:07 pm ]
Post subject: 

If he's using Turing 3.1.1 or whatever, he's probably going through the same thing as what I did a waaays back. The Sys.Exec returns an integer value. Like, if the command line is run properly, it will return a zero I think, otherwise, different errors would return like a 1 or a 2.

So you'd need something like:

var x:int
x:=Sys.Exec("TuringRules.avi")

then it should run fine.


: