So this is building on your previous "Periodic". Certainly the easiest way (without rehashing all the logic behind that!) would be to unlock the screen when required, using the Keychain-based macro above. But you could also "Pause" Macro 1 until the screen is unlocked manually (see the SCREENSAVER() Function) manually, then do the window moves etc.
I'd start by reviewing my security stance. Why is the screen being locked (and, from other comments, after such a short period of inactivity)?
Security digression
The "proper" way to secure your computer is to manually lock it as you make to leave your machine unattended for even the shortest period -- the time-based lock is a back-stop for when you forget, not a replacement for doing it yourself.
Asking because if this is a compliance requirement then your CompSec people will have something to say about your computer auto-magically unlocking itself when you're not around...
If it's a personal decision rather than a requirement then you'll also know if it is OK to have your machine unlock itself unattended -- you could even get cute and use the %NetworkLocation% Token to decide where you are, auto-unlocking only at home or work and pausing for a manual unlock anywhere else.
Another way to do this sort of thing is using the "Set Macro or Group Enable" Action. You requirements (in part, at least) could be:
Run a particular macro at time n run or at the first, and only the first, unlock event after n
So you'd set the "particular macro" up like so (beeps and pause standing in for "real" Actions):
Note that it is disabled but has an "unlock" trigger and, importantly, its final Action is to disable itself.
Your "controller" macro would then include something like:
Have a play with your own versions of the above and see for yourself how (and why!) it works. The "controller" need be nothing more complicated than a 10 second "Pause" followed by the above "If" Action -- run it manually, make sure the beeps "beep"; then run it again and immediately lock your screen, wait 30 seconds, then unlock it.