I believe you also want a space after Set (i.e. Set RegisteredKey = blah) so that the result of the RegisterHotkey method will be stored in the RegisteredKey variable as an object (since that's what RegisterHotkey returns -- a RegisteredKey object).
Yup, I missed that one.That's what happens when I don't actually run the code and look at the errors it produces.
