'this program does not contain a recognized action'
debugging is a number one skill every programmer should have. Simply reading that tells you that you didn't tell the program to do anything. Like others have come to the conclusion after a pitiful 3 posts you need to give it an action. Return it to avoid the error but I'm unsure in how you're using the alt codes. If you're trying to put it in a string then I think AHK has a different method of doing that.