Write a short script, bind it to a hotkey, and let your keyboard and mouse do the rest.
MacroStudio is a Windows desktop app with its own scripting language for automating keyboard and mouse input. You write short scripts in plain text, bind them to a hotkey, and they run with exact timing — the same keystrokes, the same clicks, the same intervals, every time you press it.