Can one display video files in turing
Author |
Message |
tlivingston
|
Posted: Mon Oct 21, 2002 12:36 am Post subject: Can one display video files in turing |
|
|
Can you???
If so, how. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Mon Oct 21, 2002 7:13 pm Post subject: (No 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) |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
tlivingston
|
Posted: Sun Nov 10, 2002 11:28 pm Post subject: (No subject) |
|
|
It says it is not aprocedure and hence cannot be called one. |
|
|
|
|
|
Tony
|
Posted: Mon Nov 11, 2002 1:39 am Post subject: (No 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
|
|
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Dan
|
Posted: 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. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
FizixMan
|
Posted: Mon Nov 11, 2002 8:07 pm Post subject: (No 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. |
|
|
|
|
|
|
|