namin

u/namin


r/tasker•

I just wanted to share a trick to automatically connect to a VPN with tasker. This task requires root access, because it uses the command input tab.

Create the task with the following steps:

  1. Load App: VPN. (Shows up if ALL is underlined)

  2. Run Shell as Root: input tap 400 150. (This tap selects your connection: Your coordinate numbers may vary, depending on which connection you'd like to select. You can see where to click using the developer option to show coordinates.)

  3. Run Shell as Root: input tap 550 550. (This tap clicks on connect: ditto for variations in coordinates).

This is my first task, so please let me know if you have any feedback/suggestions.

149