My first thought is use a transistor in common emitter configuration. This will invert your 12V signal. Also, don't be so quick to throw out relay idea.
Think about power & switching speed requirements this will determine the actual physical size of both the transistor and relay solution. If the speed is relatively slow and low power, one can obtain small relays comparable in size to common transistor packages.
Tell us, how fast does it need to do this switching and what kind of currents are involved?
I'm not EXACTLY sure, but its operating a small solenoid/pump... so figure a high speed would be 30-50ms. I know a relay would work, I was just wondering it maybe there was a specific component for this or somthing,
Very small signal, a few mA. Just to make sure this thing is working or not.
Normal 30amp 12V relays cost $5 a pop, but I guess I could order in somthing smaller or maybe even solid state
You said in your first post that the signal goes to a computer. This should not be a high current load. You should be able to invert the signal with a 12 volt supply (battery or wall wart) and a CMOS Schmitt trigger (CD40106 or CD4093). Be sure to connect all unused input pins on the IC to GND. You could use a transistor instead, as Optikon suggested, but the CMOS inverter will not load your output.
A LM311 voltage comparator circuit could be used for this application, or an optocoupler circuit (4N37 for example). Both would also require a power supply, like Ron H's suggestion.
JB
I don't see any need for a relay. That's sorta like using a WWII tank to drive to the grocery store.
An optoisolator would be useful if you have a lot of electrical noise or separate ground references for the source and destination, but if it worked before, it seems like a simple inverter would work here.
You said in your first post that the signal goes to a computer. This should not be a high current load. You should be able to invert the signal with a 12 volt supply (battery or wall wart) and a CMOS Schmitt trigger (CD40106 or CD4093). Be sure to connect all unused input pins on the IC to GND. You could use a transistor instead, as Optikon suggested, but the CMOS inverter will not load your output.