Bypass a push button as a power supply

Yes that is exactly what I'm trying to do.
Just to make it clear to me, is it a voltage drop that is detected as a signal, or some current thing ? (I'm not very intuitive with current...) I was thinking of placing a 12v battery with potentiometer backward to the electric flow in order to test the signal limit. Will this do? Is there a more precise way?