This is a novice's basic setup of the MX-950 remote. There are a few comments I would like to add regarding my design philosophy. I am fortunate in that my components all offered discrete on/off codes, enabling me to avoid variable statements for the various power statuses of the devices. The main program design issue I had was the main up/down/left/right "joystick" button in the middle of the remote. While it normally operates the codes for the Motorola STB, I had to design a situation in which it controls the TV menu system if that is accessed (hence assigning the joystick buttons to the Pioneer). I managed to do this by writing identical pages under both TV and STB devices; the default page is the STB device, where the toggle operates STB commands. When "menu" is pressed however, it opens the identical page under TV, wherein the toggle operates Pioneer commands. The MENU button itself toggles between the pages so that exiting the TV menu brings the remote back to STB-appropriate commands. Menu paging is seemless, with only the page title changing. I used variables to define the status of the AVR device selector (eg. TV, DVD, etc.), since changing from TV to TV or DVD to DVD... (more)