i have a question on rf encoder ?

insted of switches use digital arduino pins connected to ht12e ?
can this be done ?

Yes.