If you're using a different foot pedal, you may need to change the #'s in the RegisterHIDDevice line, though I really don't know what those #'s are. First, though, I would try a different version of AHK. Personally, I'm using the 32-bit version 1.0.48.05.