I get the feeling it is the opposite case; he might have the discrete codes but wants to make one button to cycle through them. I think he doesn't have a source button, or the source button he has contains more inputs than he wishes to cycle through.
If I am right, your best bet is to use a system variable test (if you are controlling a driver) and flags if you are controlling a one-way device.
Vincent Bova RTI Dealer Experience Manager Remote Technologies Inc.