Turn on WinTask recording mode.
Perform the task you want to automate. WinTask automatically creates a macro file and records all your keystrokes and web actions such as web page navigations, clicks on links, image/file downloads, web form filling, …)
Turn off recording mode, name the macro, and save it.
Replay the macro to perform the task. WinTask will accomplish the task automatically.