Did you ever figured this out? I'm running into the same issue. I'm able to capture the screen during LoginWindow but CGEvents for mouse and keyboard aren't working.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: