April
28
Linux: A simple script to start and application and send a keystroke using xdotool
Example:
I want to start Shotwell and then send the F5 key to it to start the Slideshow.
vim startshotwell
shotwell &
sleep 5
xdotool key F5
exit 0
Be sure to make the file executable