Default Autoconnect option for miracast

I am trying to get my nexus to auto connect to my ptv3000. I cant seem to do this in tasker but I noticed that some motorola phones have an option to enable "auto connect to last display". A user on the appradio forums said he was able to enable this in cm 10 by modifying his settings.apk and it works for his phone. is something like this possible on our phones?