Combining Analog and digital type input for AnalogPin

Dear All

I need to read two type of Digital type and Analog type input on a single AnalogPin.
I Knew that I need to switch over digitalRead() and AnalogRead.

But How about the schematic ?

How to switch the connection of AnalogPin between Digital_Signal and Analog_Signal ?

Sincerely
-bino-

Is this arrangement will do the job ?

Sincerely
-bino-

sig_combine_B1.png

Is this arrangement will do the job ?

Do you really want to do that? What do you think T1's b-e junction will do when power is switched to it?