Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Can one display video files in turing
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
tlivingston




PostPosted: Mon Oct 21, 2002 12:36 am   Post subject: Can one display video files in turing

Can you???

If so, how.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: 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)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
tlivingston




PostPosted: Sun Nov 10, 2002 11:28 pm   Post subject: (No subject)

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




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Dan




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: