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

Username:   Password: 
 RegisterRegister   
 computer control with turing?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tallguy




PostPosted: Fri May 29, 2009 8:17 am   Post subject: computer control with turing?

just curious is it possible to access your computer functions with turing such as
-open/close cd tray
-open certain applications (itunes etc)
Sponsor
Sponsor
Sponsor
sponsor
apomb




PostPosted: Fri May 29, 2009 10:01 am   Post subject: RE:computer control with turing?

you dont have access to kernel functions, but there is a command i believe Sys.Exec(<DOS command>) will open applications, but its limited.

Edit: Found the command
BigBear




PostPosted: Fri May 29, 2009 2:51 pm   Post subject: RE:computer control with turing?

To shutdown the computer

Turing:
var ret : int
system ("shutdown -s -c message-here", ret)


To eject the disc you will need to run a vb or java script

I couldn't get the java file to do anything but the vb method works fine

http://compsci.ca/v3/viewtopic.php?t=18279&highlight=eject

To run an .exe you can use the system command show above
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  [ 3 Posts ]
Jump to:   


Style:  
Search: