Click "Record" to start recording your mouse position. Press "Play Replay" to start the replay. Click the flag at least 4 times. Every time you record, click the flag at least 4 times.
Please don't be disappointed with this project (it's just a small project, took me 8 mins to make).