Autovoice/autoshare/intents what ?

421 views
Skip to first unread message

Steven Porteous

unread,
Dec 11, 2013, 10:20:21 AM12/11/13
to joao...@googlegroups.com
Have a profile

Profile: GoogleVoiceSearch (73)
Notification: no
State: AutoVoice Recognized [ Configuration:Command: "google" ]
Enter: Anon (77)
A1: If [ %avcommnofilter !~ *avcommnofilter* ]
A2: AutoShare [ Configuration:Action: Google Now Search
Search terms: %avcommnofilter Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):0 ] 
A3: Else 
A4: Secure Settings [ Configuration:Google Search - [Voice Search] .VoiceSearchActivity Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ] 
A5: End If 


At some stage this worked(Although I restored from a backup so it may be out dated), I would swipe up,say google or google weather and it would pass it either google voice search or google text search ,I read something about needing Xposed for google now,I would prefer not to use this and am sure the profile was working the other week.

All I want is to swipe up to launch either voice or text search(say google,it speaks the result,say google weather and it fetches as text the weather),this is based on an old pocketables profile back when you had to use autoshare to capture intents, could someone help me rewrite my profile to get it working again or explain why it doesn't work anymore

Thanks in advance

Just when I thought I understood this nonsense,an update happens and it breaks it

João Dias

unread,
Dec 11, 2013, 10:21:57 AM12/11/13
to joao...@googlegroups.com

Sam

unread,
Dec 11, 2013, 11:16:32 AM12/11/13
to joao...@googlegroups.com
simple update for you... 
 
dev doesn't know how to fix the interaction between google now and his app(s)...

João Dias

unread,
Dec 11, 2013, 11:19:35 AM12/11/13
to joao...@googlegroups.com
I already fixed it. check the link above.


--
You received this message because you are subscribed to the Google Groups "joaomgcd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joaomgcd+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Steven Porteous

unread,
Dec 11, 2013, 11:45:03 AM12/11/13
to joao...@googlegroups.com
On Wednesday, 11 December 2013 15:21:57 UTC, joaomgcd wrote:


I don't understand why I am having such difficulty here

Profile: OkGoogle (26)
State: AutoVoice Recognized [ Configuration:Event Behaviour: true
Command: "google" ]
Enter: Anon (79)
A1: If [ %avcommnofilter !~ *,%avcommnofilter,* ]
A2: AutoShare [ Configuration:Package: com.google.android.googlequicksearchbox
Class: com.google.android.googlequicksearchbox.VoiceSearchActivity
App: Google Now
Action: Voice Search Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):0 ] 
A3: Else 
A4: AutoShare [ Configuration:App: Google Now
Action: Search

Search terms: %avcommnofilter Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):0 ] 
A5: End If 

It works in so far as saying google weather will fetch me text weather but saying google takes me to the text search,seems I cannot get my else condition to work as it is red in tasker and when I say google it takes me to search but with %avcommnofilter filled out

Why am I having such difficulty ?????????? how to get it so say google,launches voice search,say google something and it fetches ,
Thats been a wasted day so put me out my misery please

João Dias

unread,
Dec 11, 2013, 11:52:00 AM12/11/13
to joao...@googlegroups.com
on the first "If" I would set the condition as 

If [ %avcommnofilter is not set ]

Also, before every one of those actions add a popup action with "%avcommnofilter" (with the quotes) and see what appears.


--

Steven Porteous

unread,
Dec 11, 2013, 12:07:33 PM12/11/13
to joao...@googlegroups.com
Ok have set my If to %avcommnofilter not set,
That still works so I say google weather and it goes and fetches,
Say Google, get received list of commands google then it opens up search with %avcommnofiler, ? This is proper doing my head in........

As you also suggested I added a pop up and unsurprisingly it passes correctly with weather (popup Weather) but with the same Google it passes "%avcommonfilter"
Does this mean that google now and auto_whatever is broken again?

Profile: OkGoogle (26)
State: AutoVoice Recognized [ Configuration:Event Behaviour: true
Command: "google" ]
Enter: Anon (79)
A1: Popup [ Title:%avcommnofilter Text:"%avcommnofilter" Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ] 
A2: If [ %avcommnofilter ! Set ]
A3: AutoShare [ Configuration:App: Google Now

Action: Search
Search terms: %avcommnofilter Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):0 ] 
A4: Else 
A5: AutoShare [ Configuration:App: Google Now

Action: Search
Search terms: %avcommnofilter Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):0 ] 
A6: End If 

João Dias

unread,
Dec 11, 2013, 12:18:04 PM12/11/13
to joao...@googlegroups.com
Ok, just tried it myself and for some reason Tasker isn't recognizing that the variable %avcommnofilter is not set. I can confirm that. This seems like a Tasker bug.

To make it work change your command filter to "google(?<query>.+)?" and check the regex option.
Then in the task do what you're doing, but change %avcommnofilter to %query. I just did this and it worked for me.

Hope this helps.


--

Steven Porteous

unread,
Dec 11, 2013, 12:24:35 PM12/11/13
to joao...@googlegroups.com
Thanks will try that later as I have bread in the oven that needs my attention

Steven Porteous

unread,
Dec 11, 2013, 3:37:08 PM12/11/13
to joao...@googlegroups.com
Looks like there id still a problem with the if else statements as it will only work one way or the other,cannot get the profile to do either or,
I give up,enough time wasted,thanks for your help,hopefully one day it will work,let me know when that happens thanks

João Dias

unread,
Dec 12, 2013, 6:43:59 AM12/12/13
to joao...@googlegroups.com
Here, import this profile: https://dl.dropboxusercontent.com/u/9787157/Google.prf.xml
This works.

juggle...@gmail.com

unread,
Jan 23, 2014, 7:40:50 AM1/23/14
to joao...@googlegroups.com
I've had an issue with importing these links in the past, seeing as you've posted I was wondering why I get a wall of text and not something I can import. I've tried pasting the contents to notepad and renaming but tasker fails to import. What am i doing wrong? Any ideas?

João Dias

unread,
Jan 23, 2014, 8:15:03 AM1/23/14
to joao...@googlegroups.com
You need to save the XML file to your phone in the Tasker "Profiles" folder. Then import the profile in Tasker. That should work.


On Thu, Jan 23, 2014 at 12:40 PM, <juggle...@gmail.com> wrote:
I've had an issue with importing these links in the past, seeing as you've posted I was wondering why I get a wall of text and not something I can import. I've tried pasting the contents to notepad and renaming but tasker fails to import. What am  i  doing wrong? Any ideas?

juggle...@gmail.com

unread,
Jan 23, 2014, 8:58:57 AM1/23/14
to joao...@googlegroups.com
I've tried that, I can see the file but it will not import. I get a flash saying "error:failed to import profile data" this happens with anything coming from db. I'm at a loss

João Dias

unread,
Jan 23, 2014, 9:22:10 AM1/23/14
to joao...@googlegroups.com
Sorry. Can you maybe ask at the Tasker forums? They will most likely give a better answer :)


On Thu, Jan 23, 2014 at 1:58 PM, <juggle...@gmail.com> wrote:
I've tried that, I can see the file but it will not import. I get a flash saying "error:failed to import profile data" this happens with anything coming from db. I'm at a loss

Marta Hintz

unread,
Jan 29, 2014, 9:06:09 PM1/29/14
to joao...@googlegroups.com
It's kinda tricky to download a xml file cuz the phone browser just wants to open it. I use es file Explorer to download it. I usually have to copy link and then it saves the file to the phone. The you can import it into Tasker the usual way.

Steven Porteous

unread,
Oct 18, 2014, 11:01:52 AM10/18/14
to joao...@googlegroups.com
Back again Cant get the else to work, %query is not being filled into the search box

Profile: AVGoogleSearch (107)


State: AutoVoice Recognized [ Configuration:Event Behaviour: true

Command: "google(?<query>.+)? (regex)" ]
Enter: Anon (101)
A1: If [ %query !Set ]


A2: AutoShare [ Configuration:Package: com.google.android.googlequicksearchbox
Class: com.google.android.googlequicksearchbox.VoiceSearchActivity
App: Google Now

Action: Voice Search Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A3: Else
A4: AutoShare [ Configuration:App: Google Now
Action: Search Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A5: End If

Steven Porteous

unread,
Oct 20, 2014, 8:09:51 AM10/20/14
to joao...@googlegroups.com
I asked https://plus.google.com/u/0/+RyoenDeprouw/posts what was wrong with the profile and he said to add a space after google and remove the ? after the ), still does not work but if it was wrong in the first place why did it work?

The potential with tasker and all the plugins is great but why does it have to be so frustrating? I seem to spend all my time trying to fix broken profiles,eventually get it working for about 5 minutes only for it to break again for no reason

João Dias

unread,
Oct 20, 2014, 8:15:19 AM10/20/14
to joao...@googlegroups.com
It's more frustrating if you don't know what's going on. That's why it's always best to try and debug things granularly. :)
In this example:
- what voice command are you speaking?
- What shows up in the AutoVoice logs?
- What shows up if you flash the %query variable in the beginning of your Task?

When an app allows you to customize everything you do in it to fit your needs, there's bound to be some trial and error involved :)

On Mon, Oct 20, 2014 at 1:09 PM, Steven Porteous <srpor...@gmail.com> wrote:
I asked https://plus.google.com/u/0/+RyoenDeprouw/posts what was wrong with the profile and he said to add a space after google and remove the ? after the ), still does not work but if it was wrong in the first place why did it work?

The potential with tasker and all the plugins is great but why does it have to be so frustrating? I seem to spend all my time trying to fix broken profiles,eventually get it working for about 5 minutes only for it to break again for no reason
--
You received this message because you are subscribed to the Google Groups "joaomgcd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joaomgcd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steven Porteous

unread,
Oct 20, 2014, 8:25:38 AM10/20/14
to joao...@googlegroups.com
You provided the profile as the avcommnofilter wasnt being passed,it was working,the log is showing the profile launching but its not being passed to google,only getting the toast.

I say google and it opens google voice search, I say google weather and I get a text search with the search field filled in with weather,now what happens is I say google nothing happens,say google weather and text search opens but I have to then type weather to get the result as I said it seems to of stopped working for no reason so what logs are needed then ?

João Dias

unread,
Oct 20, 2014, 8:28:33 AM10/20/14
to joao...@googlegroups.com
Can you please try this:
- clear logs
- enable system logs
- say google
-export logs and paste them here

Thanks!

On Mon, Oct 20, 2014 at 1:25 PM, Steven Porteous <srpor...@gmail.com> wrote:
You provided the profile as the avcommnofilter wasnt being passed,it was working,the log is showing the profile launching but its not being passed to google,only getting the toast.

I say google and it opens google voice search, I say google weather and I get a text search with the search field filled in with weather,now what happens is I say google nothing happens,say google weather and text search opens but I have to then type weather to get the result as I said it seems to of stopped working for no reason so what logs are needed then ?

Steven Porteous

unread,
Oct 20, 2014, 8:29:41 AM10/20/14
to joao...@googlegroups.com
Ok have ticked the alternative method and now google opens voice search the query is still not being passed though so any help there?

João Dias

unread,
Oct 20, 2014, 8:33:16 AM10/20/14
to joao...@googlegroups.com
Are you using the new Google Search app?

On Mon, Oct 20, 2014 at 1:29 PM, Steven Porteous <srpor...@gmail.com> wrote:
Ok have ticked the alternative method and now google opens voice search the query is still not being passed though so any help there?

Steven Porteous

unread,
Oct 20, 2014, 8:36:19 AM10/20/14
to joao...@googlegroups.com
Google Search 3.6.14.1337016.arm

Log
Trigger Words - 2014-10-20 13:32:44.615 - Removed trigger words:
google weather
google where
where
goo goo where
googl where
Trigger Words - 2014-10-20 13:32:38.173 - Removed trigger words:
google
Google Now - 2014-10-20 13:32:37.596 - Type: 2048;ClassName: android.widget.Button;Id: com.google.android.googlequicksearchbox:id/get_google_now_button;Text: Get Google Now
Google Now - 2014-10-20 13:32:37.432 - Type: 2048;ClassName: android.widget.ImageButton;Id: com.google.android.googlequicksearchbox:id/remove_get_google_now_button;Text: null
Google Now - 2014-10-20 13:32:37.289 - Type: 2048;ClassName: android.widget.Button;Id: com.google.android.googlequicksearchbox:id/get_google_now_button;Text: Get Google Now
Google Now - 2014-10-20 13:32:37.089 - Type: 2048;ClassName: android.view.View;Id: com.google.android.googlequicksearchbox:id/dummy_focus_view;Text: null
Profile Matches - 2014-10-20 13:32:36.861 - "call (?<contact>.+)" matches "googl where": false
Profile Matches - 2014-10-20 13:32:36.834 - "call (?<contact>.+)" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:36.774 - "call (?<contact>.+)" matches "where": false
Profile Matches - 2014-10-20 13:32:36.711 - "call (?<contact>.+)" matches "google where": false
Profile Matches - 2014-10-20 13:32:36.678 - "call (?<contact>.+)" matches "google weather": false
Licensing - 2014-10-20 13:32:36.663 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:36.626 - "drive" matches "googl where": false
Profile Matches - 2014-10-20 13:32:36.604 - "drive" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:36.582 - "drive" matches "where": false
Profile Matches - 2014-10-20 13:32:36.574 - "drive" matches "google where": false
Profile Matches - 2014-10-20 13:32:36.564 - "drive" matches "google weather": false
Licensing - 2014-10-20 13:32:36.551 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:36.498 - "unified remote" matches "googl where": false
Profile Matches - 2014-10-20 13:32:36.490 - "unified remote" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:36.482 - "unified remote" matches "where": false
Profile Matches - 2014-10-20 13:32:36.472 - "unified remote" matches "google where": false
Profile Matches - 2014-10-20 13:32:36.464 - "unified remote" matches "google weather": false
Licensing - 2014-10-20 13:32:36.454 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:36.420 - "what's that song" matches "googl where": false
Profile Matches - 2014-10-20 13:32:36.412 - "what's that song" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:36.398 - "what's that song" matches "where": false
Profile Matches - 2014-10-20 13:32:36.390 - "what's that song" matches "google where": false
Profile Matches - 2014-10-20 13:32:36.382 - "what's that song" matches "google weather": false
Licensing - 2014-10-20 13:32:36.373 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:36.352 - "translate" matches "googl where": false
Profile Matches - 2014-10-20 13:32:36.344 - "translate" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:36.336 - "translate" matches "where": false
Profile Matches - 2014-10-20 13:32:36.329 - "translate" matches "google where": false
Profile Matches - 2014-10-20 13:32:36.321 - "translate" matches "google weather": false
Licensing - 2014-10-20 13:32:36.313 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:36.271 - "set timer (?<timermin>.+)" matches "googl where": false
Profile Matches - 2014-10-20 13:32:36.256 - "set timer (?<timermin>.+)" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:36.226 - "set timer (?<timermin>.+)" matches "where": false
Profile Matches - 2014-10-20 13:32:36.198 - "set timer (?<timermin>.+)" matches "google where": false
Profile Matches - 2014-10-20 13:32:36.164 - "set timer (?<timermin>.+)" matches "google weather": false
Licensing - 2014-10-20 13:32:36.142 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:36.091 - "start web sharing" matches "googl where": false
Profile Matches - 2014-10-20 13:32:36.061 - "start web sharing" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:36.051 - "start web sharing" matches "where": false
Profile Matches - 2014-10-20 13:32:36.042 - "start web sharing" matches "google where": false
Profile Matches - 2014-10-20 13:32:36.033 - "start web sharing" matches "google weather": false
Licensing - 2014-10-20 13:32:36.021 - Lite from cache: false
Recognition - 2014-10-20 13:32:35.984 - Clearing last command id
Licensing - 2014-10-20 13:32:35.871 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:35.704 - No Last Command Id matches No Last Matched Command Id
Profile Matches - 2014-10-20 13:32:35.654 - "google(?<query>.+)?" matches "google weather": true
Licensing - 2014-10-20 13:32:35.596 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:35.548 - "call (?<contact>.+)" matches "googl where": false
Profile Matches - 2014-10-20 13:32:35.499 - "call (?<contact>.+)" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:35.438 - "call (?<contact>.+)" matches "where": false
Profile Matches - 2014-10-20 13:32:35.387 - "call (?<contact>.+)" matches "google where": false
Profile Matches - 2014-10-20 13:32:35.345 - "call (?<contact>.+)" matches "google weather": false
Licensing - 2014-10-20 13:32:35.282 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:35.213 - "drive" matches "googl where": false
Profile Matches - 2014-10-20 13:32:35.167 - "drive" matches "goo goo where": false
Profile Matches - 2014-10-20 13:32:35.112 - "drive" matches "where": false
Profile Matches - 2014-10-20 13:32:35.036 - "drive" matches "google where": false
Profile Matches - 2014-10-20 13:32:34.947 - "drive" matches "google weather": false
Licensing - 2014-10-20 13:32:34.741 - Lite from cache: false
Trigger Words - 2014-10-20 13:32:34.587 - Current trigger words:
google
google weather
google where
where
goo goo where
googl where
Trigger Words - 2014-10-20 13:32:34.576 - Added trigger words:
google weather
google where
where
goo goo where
googl where
Recognition - 2014-10-20 13:32:34.336 - Got commands: Received possible commands:
google weather
google where
where
goo goo where
googl where

Licensing - 2014-10-20 13:32:34.267 - Lite from cache: false
Google Now - 2014-10-20 13:32:32.838 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/intent_api_text;Text: AutoVoice listening...
Google Now - 2014-10-20 13:32:32.695 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/intent_api_language;Text: null
Google Now - 2014-10-20 13:32:32.558 - Type: 2048;ClassName: android.widget.ImageView;Id: com.google.android.googlequicksearchbox:id/recognizer_mic_button;Text: null
Google Now - 2014-10-20 13:32:32.413 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/intent_api_text;Text: AutoVoice listening...
Google Now - 2014-10-20 13:32:32.277 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/intent_api_language;Text: null
Google Now - 2014-10-20 13:32:31.947 - Type: 2048;ClassName: android.widget.FrameLayout;Id: null;Text: null
Recognition - 2014-10-20 13:32:31.613 - Getting Voice command...
Recognizer - 2014-10-20 13:32:31.602 - Not using headset.
Recognizer - 2014-10-20 13:32:31.592 - Getting default recognition settings
Recognizer - 2014-10-20 13:32:31.570 - Action: android.intent.action.ASSIST
Google Now - 2014-10-20 13:32:30.547 - user has spoken with com.google.android.search.searchplate.RecognizerView
Google Now - 2014-10-20 13:32:30.489 - Type: 2048;ClassName: com.google.android.search.searchplate.RecognizerView;Id: com.google.android.googlequicksearchbox:id/recognizer_mic_button;Text: null
Google Now - 2014-10-20 13:32:30.347 - user has spoken with com.google.android.search.searchplate.RecognizerView
Google Now - 2014-10-20 13:32:30.337 - Type: 2048;ClassName: com.google.android.search.searchplate.RecognizerView;Id: com.google.android.googlequicksearchbox:id/recognizer_mic_button;Text: null
Google Now - 2014-10-20 13:32:30.215 - user has spoken with com.google.android.search.searchplate.RecognizerView
Google Now - 2014-10-20 13:32:30.197 - Type: 2048;ClassName: com.google.android.search.searchplate.RecognizerView;Id: com.google.android.googlequicksearchbox:id/recognizer_mic_button;Text: null
Google Now - 2014-10-20 13:32:30.053 - Type: 2048;ClassName: android.widget.TextView;Id: com.google.android.googlequicksearchbox:id/speak_now_main_text;Text: Speak now
Google Now - 2014-10-20 13:32:29.935 - Type: 2048;ClassName: cwj;Id: com.google.android.googlequicksearchbox:id/streaming_text;Text: null
Google Now - 2014-10-20 13:32:29.816 - Type: 2048;ClassName: android.widget.FrameLayout;Id: com.google.android.googlequicksearchbox:id/velvet_search_plate;Text: null
Google Now - 2014-10-20 13:32:29.673 - Type: 2048;ClassName: cwj;Id: com.google.android.googlequicksearchbox:id/streaming_text;Text: null
Profile Matches - 2014-10-20 13:32:29.049 - "call (?<contact>.+)" matches "google": false
Licensing - 2014-10-20 13:32:29.003 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:28.988 - "drive" matches "google": false
Licensing - 2014-10-20 13:32:28.977 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:28.765 - "unified remote" matches "google": false
Licensing - 2014-10-20 13:32:28.756 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:28.735 - "what's that song" matches "google": false
Licensing - 2014-10-20 13:32:28.726 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:28.679 - "translate" matches "google": false
Licensing - 2014-10-20 13:32:28.667 - Lite from cache: false
Profile Matches - 2014-10-20 13:32:28.623 - "set timer (?<timermin>.+)" matches "google": false

João Dias

unread,
Oct 20, 2014, 8:51:19 AM10/20/14
to joao...@googlegroups.com
You said "Google Weather" there, right?

Ok, so if you add a flash with %query in the beginning of the task, what does it show?

Steven Porteous

unread,
Oct 20, 2014, 9:00:48 AM10/20/14
to joao...@googlegroups.com
I tried adding a flash %query in the else,didnt flash,tried adding it to the start ,doesnt flash
Autovoice recognise should be google (?<query>.+) or google(?<query>.+)? neither works and it will not flash %query so that part is being ignored

--
You received this message because you are subscribed to a topic in the Google Groups "joaomgcd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/joaomgcd/BVT1QedpfCY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to joaomgcd+u...@googlegroups.com.

João Dias

unread,
Oct 20, 2014, 9:02:50 AM10/20/14
to joao...@googlegroups.com
Wait, but didn't you say that Google does come up? If that's the case then the flash must show, if you added the flash at the beginning of the task. Did you exit Tasker after setting the flash so it can save the new task?
google(?<query>.+)? should work too

Steven Porteous

unread,
Oct 20, 2014, 9:08:13 AM10/20/14
to joao...@googlegroups.com
Just tried again, said google weather,got the toast(command received), google launches text search but the field is empty

in the profile I added a alert >flash text %query that part seems to be getting ignored as it is not flashing nor is it adding to the field so could this be a tasker bug again ? on the latest 4.5u1

João Dias

unread,
Oct 20, 2014, 9:08:50 AM10/20/14
to joao...@googlegroups.com
Please export the Task that you have now so I can take a look, thanks!

Steven Porteous

unread,
Oct 20, 2014, 9:09:34 AM10/20/14
to joao...@googlegroups.com
sorry exited out of tasker (forgot that one) and yes it flashes weather, however the field remains empty

Steven Porteous

unread,
Oct 20, 2014, 9:11:48 AM10/20/14
to joao...@googlegroups.com
Profile: AVGoogleSearch (107)
State: AutoVoice Recognized [ Configuration:Event Behaviour: true
Command: "google (?<query>.+) (regex)" ]

Enter: Anon (101)
A1: If [ %query !Set ]
A2: AutoShare [ Configuration:Package: com.google.android.googlequicksearchbox
Class: com.google.android.googlequicksearchbox.VoiceSearchActivity
App: Google Now
Action: Voice Search Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ] 
A3: Else 
A4: AutoShare [ Configuration:Package: com.google.android.googlequicksearchbox
Class: com.google.android.googlequicksearchbox.SearchActivity

App: Google Now
Action: Search Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ] 
A5: Flash [ Text:%query Long:Off ] 
A6: End If 

João Dias

unread,
Oct 20, 2014, 9:13:10 AM10/20/14
to joao...@googlegroups.com
You need to put the %query variable inside the AutoShare action, in the query field :)

Steven Porteous

unread,
Oct 20, 2014, 9:23:28 AM10/20/14
to joao...@googlegroups.com
Profile: AVGoogleSearch (107)
State: AutoVoice Recognized [ Configuration:Event Behaviour: true
Command: "google (?<query>.+) (regex)" ]

Enter: Anon (101)
A1: If [ %query !Set ]
A2: AutoShare [ Configuration:Package: com.google.android.googlequicksearchbox
Class: com.google.android.googlequicksearchbox.VoiceSearchActivity
App: Google Now
Action: Voice Search Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ] 
A3: Else 
A4: AutoShare [ Configuration:App: Google Now
Action: Search
Search terms: %query Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ] 

A5: Flash [ Text:%query Long:Off ] 
A6: End If 

Like that ? so %query goes in under Search Terms as Action only gives me Search, Voice Search, Music Search

told you before I am a useless programmer ;) Still not working  

Steven Porteous

unread,
Oct 20, 2014, 9:23:54 AM10/20/14
to joao...@googlegroups.com
As in the field is not being filled out

João Dias

unread,
Oct 20, 2014, 10:11:24 AM10/20/14
to joao...@googlegroups.com
Ok, lets keep this simple.

Create a new Task, add an AutoShare action like the one in that Task where you select the Google Search app and the "Search" action, then in the "Search Terms" write "testing"
The test the task in Tasker. does that bring up Google with "testing" pre-filled in?

Steven Porteous

unread,
Oct 20, 2014, 10:52:47 AM10/20/14
to joao...@googlegroups.com
Like this ?

Profile: Test (163)

State: AutoVoice Recognized [ Configuration:Event Behaviour: true
Command: "test (regex)" ]
Enter: Anon (164)
A1: AutoShare [ Configuration:App: Google Now
Action: Search
Search terms: testing Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ] 

this opens search but does not fill in with testing 

João Dias

unread,
Oct 20, 2014, 10:54:10 AM10/20/14
to joao...@googlegroups.com
Did you try testing that with the little "play" button in Tasker?

Steven Porteous

unread,
Oct 20, 2014, 10:58:55 AM10/20/14
to joao...@googlegroups.com
Tried running it by swiping up and also by  hitting the play button, same result search opens but doesnt fill in the search field,what the hell is going on ?

João Dias

unread,
Oct 20, 2014, 11:00:45 AM10/20/14
to joao...@googlegroups.com
Can you create a standalone task that's not attached to a profile, then export it as a xml file and send it to me so I can test it on my device and find out?

Steven Porteous

unread,
Oct 20, 2014, 12:27:54 PM10/20/14
to joao...@googlegroups.com
ok here it is ​

João Dias

unread,
Oct 20, 2014, 12:36:23 PM10/20/14
to joao...@googlegroups.com
Ok, does it work if you do this:
- run that task
- press back until you exit Google Search
- run task again

It seems that the Google Search app expects you to exit it when you want to perform a new search

Steven Porteous

unread,
Oct 20, 2014, 12:54:35 PM10/20/14
to joao...@googlegroups.com
Just tested and that works, why this problem and how to get it working for "real" ?

João Dias

unread,
Oct 20, 2014, 12:57:39 PM10/20/14
to joao...@googlegroups.com
You get it working by always backing out of Google search with the back button instead of any other button :) If you want, you can automate that with AutoInput. If you always back out that way, it should always work

Steven Porteous

unread,
Oct 20, 2014, 2:05:05 PM10/20/14
to joao...@googlegroups.com
Finally  it works!See what I mean about frustrating ! Where does the problem lie then ?
Looks like I have my first Autoinput project, last thing though about the Autovoice recognise, it only works with google(?<query+.>)? and not  google (?<query+.>) (The way Ryoen said) You said they were the same and both should work but they dont why ?

Again thanks for helping me but man it all seems harder than it needs to be 

João Dias

unread,
Oct 20, 2014, 2:10:39 PM10/20/14
to joao...@googlegroups.com
The problem lies with the Google Search app that only does what it should if you back out of it :) There's no way my apps or Tasker can control that.
It doesn't work with google (?<query>+.) because that one expects that there is a space and at least a character after "google", so when you just say "google" it won't match it.

Steven Porteous

unread,
Oct 20, 2014, 2:23:24 PM10/20/14
to joao...@googlegroups.com
understood thanks
Reply all
Reply to author
Forward
0 new messages