The "Toggle Ok Google" task will open Google Settings, go through all the clicks that are needed to access the "Ok Google" settings and the toggle the "From the Google app" option.
After that it will exit the Google settings and leave you back where you started.
You can choose to specifically enable or disable the "Ok Google" setting instead of toggling it by changing A5 so that instead of looking like this:
A5: AutoInput Action [ Configuration:Type: Text
Value: From the Google app
Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
it should look like this to enable it:
A5: AutoInput Action [ Configuration:Type: Text
Value: OFF
Nearby Text: From the Google app
Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
or like this to disable it:
A5: AutoInput Action [ Configuration:Type: Text
Value: ON
Nearby Text: From the Google app
Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
Toggle "Ok Google" detection 1.0
Enable or disable "Ok Google" detection in the Google Settings with AutoInput