Using SL4A with Tasker
SL4A, Scripting Layer for Android, dramatically extends the capabilities of Tasker and your phone. It's pretty easy to get it working for pre-existing scripts such as the ones linked below, and you don't have to be a programmer to use them.
However, if you are not a programmer, you will find it tough going to write your own scripts. It's not for the faint-hearted, so be prepared to spend significant time learning how to use it.
If that doesn't scare you off, then dive in!
Note: The SL4A documentation contains lots of references to ASE. That's because ASE is the old name for SL4A, and it hasn't been changed everywhere yet. So if you see instructions telling you to copy something into the ase/scripts folder, it should really say sl4a/scripts.