You cannot control a GUI application with expect. You might need something like TWAPI or TCOM
how to write to a file with Expect and send [closed]
-
31-05-2022 - |
Question
How do you write to a file using expect, then open in with notepad? I receive results to my command line and I would like to print these results in notepad. Basically an automatic way to get the same result as typing "example.log" into the command line
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow