CurrentKey Stats 3.0 brought AppleScript support, which means CurrentKey now responds to 14 commands, like going to a specific Room, getting total time spent across all apps (today or yesterday), and many more!
It also added Room change alerts, which offer AppleScript support in the opposite direction (your script will get called with the new Room name).