I've recently been trying to write a script that can be used to automate my c++ program in bash. If you know AutoIt, I can simply show you an example of what I am trying to do:
OK For those who do not speak AutoIt:
The first example sends a simulated "1" keystroke followed by an enter(CR)
The second example sends alt-a
I'm specifically trying to do this in bash. No other scripting language will do
Also, I would not prefer a spoonfeed. Please specify how to write it. No writing the script for me is allowed.