I used TV Remote Controler back in 2003 on my old Toshiba PDA:
http://www.pdawin.com/tvremote.html
I guess it still works....
It can "learn" from a remote and reproduce the "learned" signal. It's a fantastic app...
I did use it in class back in 2003
Give it a try...