Monday, January 25, 2016

Panorama-a-rama (show me the world)

Like most of us, many of my profiles only do casual things that I wish my phone did nativly.  Take viewing pictures.  Sure anyone can voice command "show me pictures of Golden Gate Bridge" but you can't say "show me panoramas of Golden Gate Bridge".

But using the Street View app, you can create a fun little trick to do just that.

Here is your end result.  You could just as easily open Street View and type in Golden Gate Bridge, but we're not in the business of that kind of effort :)



To get here you will need;
Tasker
AutoInput
AutoVoice
Street View

(The above looks better when you can tilt the phone to landscape, but that messes up the recording software)

What we're going to do, is grab the voice command "street view golden gate bridge", chop off everything after "street view" and show you pictures of it.  I don't say "show me panoramas" as a command because sometimes Google, or I suspect Moto Voice, will jump on the command and start showing panoramas in Google Search as normal before Tasker can get involved.

Fair warning, at least on my phone, this *usually* works.  I've tried launching Street View through Tasker and AutoLaunch but in both cases, Street View occasionally Force Closes on open.  I left it as just a generic "Launch App" because it's easier.

That also explains the long(!) four second wait time between the AutoVoice command and the Launch.  It makes it seem at least a little more stable.  Also, if you manually launch Street View before those total of eight seconds pass it'll still go and complete the task.

There are a couple other waits that you may or may not need.  Sometimes it just needs an extra second here or there to let things like the keyboard dropping back down before pasting to process.  Other than that, it's just some AutoInput clickity clicks to let you see all the places you wish you were right now.

The Profile;
Profile: Voice Street View (43)
State: AutoVoice Recognized [ Configuration:Event Behaviour: true
Command: "street view (regex)"
Last Cmd Id Regex: false
Last Cmd Id Invert: false
Not on Normal: false
Not on Continuous: false
Contains All: false
Use Regex Replacements: false
Do Google Now Search: false ]
Enter: Anon (49)
A1: Set Clipboard [ Text:%avcommnofilter Add:Off ] 
A2: Wait [ MS:0 Seconds:4 Minutes:0 Hours:0 Days:0 ] 
A3: Launch App [ App:Street View Data: Exclude From Recent Apps:Off Always Start New Copy:Off ] 
A4: Wait [ MS:0 Seconds:4 Minutes:0 Hours:0 Days:0 ] 
A5: AutoInput Action [ Configuration:Type: Id
Value: com.google.android.apps.dragonfly:id/map_action_search
Action : Click
Is Tasker Action: false
Check Screen State: false Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ] 
A6: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ] 
A7: AutoInput Global Action [ Configuration:Action: Back Package:com.joaomgcd.autoinput Name:AutoInput Global Action Timeout (Seconds):20 ] 
A8: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ] 
A9: AutoInput Action [ Configuration:Type: Id
Value: com.google.android.apps.dragonfly:id/search_text
Action : Click
Is Tasker Action: false
Check Screen State: false Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ] 
A10: AutoInput Action [ Configuration:Type: Id
Value: com.google.android.apps.dragonfly:id/search_text
Action : Paste
Is Tasker Action: false
Check Screen State: false Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ] 
A11: AutoInput Action [ Configuration:Type: List
Value: 1
Action : Click
Is Tasker Action: false
Check Screen State: false Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]

tl;dr ... download here: Panorama a ramaama
Displaying Screenshot_2016-01-24-21-48-18.png
Displaying Screenshot_2016-01-24-21-48-18.png

No comments:

Post a Comment