Note that this is not just another AI for Starcraft: it actually plays the game like a human, by "looking at the screen", and issuing keyboard and mouse orders.
Getting the DirectX graphic calls and using them is probably a much easier approach than to just looking at the final screen.
The interesting thing about this approach is that it can be applied to automate almost any computer task, by intercepting graphic primitives.
When I first read your comment, I was actually thinking about something similar as Sikuli. Sikuli might actually work for some primitive scripting events in games.
http://www.networkautomation.com/
They're very impressive, not just mouse and keyboard "macros".
I've heard people use these to implement computer game "bots" (in particular Magic: the Gathering online trade bots)