Why would you want to do it that way when the ability to do that already exists with simple apps or hardware?