This snap-action switch is pre-wired. Works great as a window switch. It wasn't hard to figure out because I had already rewired a 6-pin switch from scratch for another window. With that, the 6-pin main wiring was done, so all you have to do is connect the power and ground wires, then connect the 2 blue wires to the electric motor. The last momentary switch I bought was unplugged. Last time I had to use my own cables and plugs and it took a while. I had to find a wiring diagram and hook it up myself. It was easy this time, and I think I paid the same amount for this pre-wired momentary switch as I did for the unwired one last time.