Keyboard macros for XCOM

I'm trying to set up a simple keyboard macro that will send tab and y to XCOM 6 times to put my troops into overwatch at the end of each turn. Does any have some tips on how to get this working? Thanks!

Nevermind, I think I've found the solution. This will use shift+z to send six overwatch commands:

SetKeyDelay, 10,4 ; not always necessary
Pause := 100 ; mS delay used in various places

+z::
Send {tab}y
Send {tab}y
Send {tab}y
Send {tab}y
Send {tab}y
Send {tab}y
Return

I had to fiddle around with SetKeyDelay and Pause to make it work. It's possible a shorter delay will also work.