Computer Science Canada

computer control with turing?

Author:  Tallguy [ 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)

Author:  apomb [ 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

Author:  BigBear [ 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


: