2012-02-14, 02:40
Hey Angelscry. I've been busy with doing a generic AutoIt script for game emulators that can take into account auto-load/save (to provide the resuming functionality). So far it is great, but I am trying to make it read the settings from a text file to make it easier to use it with any other emulator instead of having to recompile it for each emulator (I made it so flexible that you change some vars, and you can use it with another emulator). Also I unified the parameters (-f fullscreen, -l autoload, -s saveonexit, -as TIME autosize,...). I will make sure to share it once I do that.
After doing this I got another idea that complement my script, so I want to ask you about your plugin. I noticed that you use "subprocess_hack.Popen" to run the emulators with their params. Having looked at the method I realized that it can take stdin, stdout,... etc. My question is: would it be possible for example to run something and get the output from it, check it for some info (if there are output) and then do something else. I am thinking about getting the output from the executed program to make further operation from your plugin side. Can you please help me on how to do this if such thing is possible?
After doing this I got another idea that complement my script, so I want to ask you about your plugin. I noticed that you use "subprocess_hack.Popen" to run the emulators with their params. Having looked at the method I realized that it can take stdin, stdout,... etc. My question is: would it be possible for example to run something and get the output from it, check it for some info (if there are output) and then do something else. I am thinking about getting the output from the executed program to make further operation from your plugin side. Can you please help me on how to do this if such thing is possible?