Reading External Process
Author |
Message |
OneTrick
|
Posted: Mon Jan 29, 2018 10:55 pm Post subject: Reading External Process |
|
|
What is it you are trying to achieve?
As a cool project, I would like to make a turing program which could tell if any process is running.
For example, if google chrome was open while i run the Turing program it should say "Google Chrome is open"
and if google chrome is not running when I run the Turing program, it should say "Google Chrome is not open"
What is the problem you are having?
I have no clue if this is even possible to do, and even if it is, I don't know where to start.
Please specify what version of Turing you are using
v4.1.1 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TokenHerbz
|
Posted: Tue Jan 30, 2018 12:25 am Post subject: RE:Reading External Process |
|
|
Im pretty sure thats NOT possible, I know you can launch outside process but turing seems to be blocked on the reading aspect of them, so to tell if your computer is running a game, steam or chrome etc I don't believe is possible... unless...
Someone might of implemented this in the OpenTuring project -> http://tristan.hume.ca/openturing/ -> i would have to read over the documentation to see what exact changes have happened over the 4.1 version, but I would suggest trying a different "Cool" project. |
|
|
|
|
|
ehhthing
|
Posted: Thu Feb 22, 2018 10:34 pm Post subject: RE:Reading External Process |
|
|
You could use the built in system function (http://compsci.ca/holtsoft/doc/system.html) and run the tasklist command (https://ss64.com/nt/tasklist.html).
If you run it like this:
code: | tasklist xxxxxxxxxxxx > file.txt |
and read file.txt, you would get the list of processes or a filtered version of the list. |
|
|
|
|
|
|
|