Creating a script that controls another program?


Hi!
I'm trying to write a script that would allow me to manipulate an image-to-text software. I basically want to have the script look for an image in a specific folder, pass it through the software and export specific words returned by the software.
Having taken a programming class, I already know how to code simple programs that do specific things in c+*, but I have no idea about how scripting works nor how to control other programs from a script.
I therefore ask you guys for some help, and, if possible, some links that could also teach me scripting.
Thanks in advance, I hope I wasn't too general!
Last edited on
You might want to check out Expect:
http://expect.sourceforge.net/

Find useful tutorials here:
http://wiki.tcl.tk/11584

I know it isn't C++, but it is designed to do exactly what you are looking for.

Hope this helps.
Topic archived. No new replies allowed.