I have tried the autogate setting, it is even easier than I thought. Just parallel to them, then I can use my DVR to control autogate. I connect in this way, since the Remote PTZ receiver needs DC input, I parallel the DC that connect to the board to my receiver, and I parallel the other two to the push button wires. It's work! I can control my gate through DVR app in Iphone now.
Haha, dominated my gate.
For the ceiling lamp, I am not pretty sure, it's seem quite dangerous to do the wiring, can provide me some advise before I do it, to reduce the possibility of AC shocking.