If your RC-799M is physically broken (cracked board or missing battery door), look for universal remotes specifically labeled "Replacement for Onkyo RC-799M" or buy a used OEM unit from eBay.
This erases everything, including macro sequences and programmed device codes. onkyo rc-799m remote manual