AppleScript to repeat action in the next window I would like that if I press a certain keyboard shortcut (cmd + down arrow), the same will run on the next window in the same app.

Is an AppleScript the only want to get this functionality? I have never made an AppleScript before.
You can do this with the following Keyboard Maestro macro.