Some shortcuts are not available in Automate

1,532 views
Skip to first unread message

mgdn

unread,
Sep 15, 2014, 9:46:13 AM9/15/14
to automa...@googlegroups.com
Hello all,

I've been trying to use Automate with Wake on WAN with applications like Wol Wake on Lan Wan and Fusion WOL but their shortcuts do not appear in Automate.
I wonder if this is an issue with Automate or with the way these applications register their shortcuts.

Automate developer

unread,
Sep 15, 2014, 2:45:52 PM9/15/14
to automa...@googlegroups.com
Thanks for your bug report. Cause found, and bug fixed. New release coming soon.

dr.i...@gmail.com

unread,
Apr 7, 2015, 5:23:27 PM4/7/15
to automa...@googlegroups.com
I have the same problem with latest version. I created a connect en disconnect short within "OpenVPN Connect", but they do not appear in the shortcut list of Automate.
Can you please fix this one too?

Automate developer

unread,
Apr 7, 2015, 6:22:38 PM4/7/15
to automa...@googlegroups.com, dr.i...@gmail.com
I just looked at the OpenVPN Connect app, in it you can only make shortcuts from within the app, and not through the launcher.
Automate can only use shortcut if they can be created with the launcher, since Automate creates the shortcut the same way.

dr.i...@gmail.com

unread,
Apr 8, 2015, 3:03:11 PM4/8/15
to automa...@googlegroups.com, dr.i...@gmail.com
What do you mean by not through the launcher? The shortcuts OpenVPN creates are created on home screen and can be launched from there, like a separate app (so launcher understands it?).
Is it not possible Automate sees these shortcuts and use them?

Automate developer

unread,
Apr 8, 2015, 3:13:36 PM4/8/15
to automa...@googlegroups.com, dr.i...@gmail.com
Most apps can only create shortcuts from the launcher, depending on Android version or launcher that's usually:
  • Long-tapping on a launcher home screen and chose add widget
  • Widgets and shortcuts are listed in the rightmost pages in the launcher "app drawer"
Automate can only create those kinds of shortcuts, and not the ones added from with in another app, like OpenVPN do.

Like any other data, Automate can't access the private shortcut data that the launcher has, since it's in another app.

dr.i...@gmail.com

unread,
Apr 13, 2015, 8:04:25 AM4/13/15
to automa...@googlegroups.com, dr.i...@gmail.com
Ok, thanks for explanation.

Will it maybe be possible in the future for Automate to handle these kinds of shortcuts?

Or maybe another soltion which achieves the same (e..g auto starting app en pressing connect, or a script/plugin which does the trick which can be called from Automate)?
Would be very nice, as now i can't put VPN auto on when connecting to other access point than home and auto off when at home. So we have to remember to do it manually everytime we are connecting to a different access point :(

Automate developer

unread,
Apr 13, 2015, 10:42:29 AM4/13/15
to automa...@googlegroups.com, dr.i...@gmail.com
I'll investigate, but it's unlikely it will ever be possible since the shourtcuts are handled by the launcher app.

However, i'll check what required to configure VPN, maybe i can make Automate do it, without the need for another app.
Hopefully it doesn't mean i need to implement a whole VPN client.

dr.i...@gmail.com

unread,
Apr 13, 2015, 11:08:08 AM4/13/15
to automa...@googlegroups.com, dr.i...@gmail.com
Thanks in advance, i will keep an eye on the changelog :)

Automate developer

unread,
Apr 13, 2015, 11:59:42 PM4/13/15
to automa...@googlegroups.com, dr.i...@gmail.com
I think i've solved the issue, and found a way for Automate to capture shortcuts create from within other apps.

Automate developer

unread,
Apr 16, 2015, 1:53:21 PM4/16/15
to automa...@googlegroups.com, dr.i...@gmail.com
Please let me know if it's working in the latest Alpha 1.0.17a2.


On Monday, April 13, 2015 at 5:08:08 PM UTC+2, dr.i...@gmail.com wrote:

dr.i...@gmail.com

unread,
Apr 19, 2015, 10:51:56 AM4/19/15
to automa...@googlegroups.com, dr.i...@gmail.com
Wow, you are fast! ;)

I installed alpha 1.0.17a2, but when looking at the "Pick shortcut" list from App start shortcut block, there doesn't seem to have changed anything. So i don't see anything from OpenVPN in that list (while shortcuts "Connect" and "Disconnect" are visible on desktop).

Automate developer

unread,
Apr 19, 2015, 1:15:55 PM4/19/15
to automa...@googlegroups.com, dr.i...@gmail.com
Capturing those kinds of shortcuts are a bit more involved. Read the documentation:
If an app isn’t listed, but can create shortcuts, it means they can only be create from within the app, and not through the launcher.
To capture such shortcuts, navigate to the app using the Home or Recent button, without canceling the App start shortcut editor.
Create the shortcut from within the app and it should appear both on the home screen and in the App start shortcut editor.
The home screen shortcut can then be removed.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

dr.i...@gmail.com

unread,
Apr 20, 2015, 5:53:14 AM4/20/15
to automa...@googlegroups.com, dr.i...@gmail.com
I did read the documentation, but didn't work :(
When i'm in Automate app start shortcut config (the screen where i'm seeing the arrow with pick app shortcut), i press home button.
Now i start OpenVPN Connect and create an Disconnect shortcut (which does actually create an extra Disconnect short on the home screen, which is Nova Launcher btw).
Now i go back to Automate (which is still on app shortcut config screen), but when i'm pressing the pick action there are no OpenVPN shortcuts to choose...

Automate developer

unread,
Apr 20, 2015, 1:29:11 PM4/20/15
to automa...@googlegroups.com, dr.i...@gmail.com
You don't need to tap the pick shortcut button again, Automate should have captured the shortcut created on the home screen, and the description field should have appeard.

I'll probably have to improve the usage pattern.

dr.i...@gmail.com

unread,
Apr 20, 2015, 5:33:40 PM4/20/15
to automa...@googlegroups.com, dr.i...@gmail.com
Well as there was nothing to see on the config screen (no filled in boxes, no message), i suppose nothing was added?
Or should i try save after returning to Automate although nothing seems to have changed in the config screen?

Automate developer

unread,
Apr 20, 2015, 5:49:13 PM4/20/15
to automa...@googlegroups.com, dr.i...@gmail.com
The shortcut label field should appear, if it's working.

The steps you should take are:
1. Edit the "App shortcut start" block
2. On the "App shortcut start" block editor screen, tap the Home button to return to the launcher
3. Go to the OpenVPN app and create a shortcut, it should appear on the home screen
4. Return to the "App shortcut start" screen in Automate, tap the Automate icon or use the Recent apps screen
5. If it works, a "Shortcut label" field with the shortcut text should appear under the "Pick shortcut..." button

If it's not working, i may have to find another way to capture the shortcut, or it may not work for all apps.

It would be nice to see it working before i invest more time in reworking the "App shortcut start" screen with
a "Recently created home screen shortcuts" button, or another usage pattern.

dr.i...@gmail.com

unread,
Apr 21, 2015, 3:02:31 PM4/21/15
to automa...@googlegroups.com, dr.i...@gmail.com
This explanation was clear, i totally missed the added shortcut label after doing the steps. So yes i can confirm it is working!

Automate developer

unread,
Apr 21, 2015, 5:33:51 PM4/21/15
to automa...@googlegroups.com, dr.i...@gmail.com
Cool. I'll rework the usage pattern so all shortcuts are captured, even if the editor isn't open, and then in the editor instead show a list of "recently created shortcuts" from which a user can select.

dr.i...@gmail.com

unread,
Apr 27, 2015, 5:39:15 PM4/27/15
to automa...@googlegroups.com, dr.i...@gmail.com
Sounds great!
Will be in a next version i suppose?
Thanks for making it work!

Automate developer

unread,
Apr 27, 2015, 5:47:49 PM4/27/15
to automa...@googlegroups.com, dr.i...@gmail.com
Hopefully for the next public release.

etr...@gmail.com

unread,
Apr 16, 2016, 8:26:19 AM4/16/16
to Automate
Awesome, thank you. I uploaded a simple OpenVPN flow with these instructions.

http://llamalab.com/automate/community/flows/4059

gagnon....@gmail.com

unread,
Jun 9, 2017, 3:40:06 PM6/9/17
to Automate, dr.i...@gmail.com
I want to capture a 'traccar client' shortcut. When I go to 'traccar' and click on 'create shortcuts', it creates 3 different ones. The problem is 'automate' only keeps the last one created. Is there a way to select from the 3 shortcuts created by the application ?

Henrik "The Developer" Lindqvist

unread,
Jun 9, 2017, 8:26:20 PM6/9/17
to Automate, dr.i...@gmail.com, gagnon....@gmail.com
The "Pick shortcut" button doesn't work for selecting a shortcut?

It's currently not possible to select from the shortcuts create from within another app. I'll see if i can improve shortcut "collecting".

gagnon....@gmail.com

unread,
Jun 12, 2017, 9:45:47 AM6/12/17
to Automate, dr.i...@gmail.com, gagnon....@gmail.com
The "Pick shortcut" button works ,but the application I'm trying to use is not listed. I followed the instructions and went to the application and created shorcuts from there. The problem is that 'traccar client' (the application I'm trying to use) is creating 3 shortcuts at the same time and 'automate' only catches one of them (probably the last one created). I would like 'automate' to be able to detect all created shortcuts and allow me to choose from a list.

Raphael Gagnon

unread,
Jul 12, 2017, 11:51:28 AM7/12/17
to Automate
Is there any development planned for that feature ?

--
You received this message because you are subscribed to a topic in the Google Groups "Automate" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automate-user/OZkMCkvWzfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automate-user+unsubscribe@googlegroups.com.
To post to this group, send email to automa...@googlegroups.com.
Visit this group at https://groups.google.com/group/automate-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/9d9e57a1-19d9-4577-a089-6b3318e839f7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Henrik "The Developer" Lindqvist

unread,
Jul 12, 2017, 5:28:36 PM7/12/17
to Automate, gagnon....@gmail.com
It's on the to-do list. Sorry, not time frame.


On Wednesday, July 12, 2017 at 5:51:28 PM UTC+2, Raphael Gagnon wrote:
Is there any development planned for that feature ?
Message has been deleted

tim.schr...@gmail.com

unread,
Dec 16, 2018, 8:09:49 PM12/16/18
to Automate
Hello,

can I use this feature somehow? I'm having the exact same problem as Dr IT with OpenVPN. I tried the Playstore version and the current Alpha but neither lets me select the OpenVPN shortcuts.

Henrik "The Developer" Lindqvist

unread,
Dec 16, 2018, 9:24:02 PM12/16/18
to Automate
Sadly the API used was deprecated by Google for Android 8 so this hack no longer work, and another is unlikely.
So it's likely better to contact the OpenVPN developer and request automation support, via intents.

tim.schr...@gmail.com

unread,
Dec 17, 2018, 5:22:26 PM12/17/18
to Automate
Thanks a lot for the tip. I got it to work with intents. :)

shobu....@gmail.com

unread,
Feb 5, 2019, 2:54:55 AM2/5/19
to Automate
Hello, every one.

I was also bothered by the same problem.
But we can kick the OpenVPN using "Start app" block. Replace "App start shortcut" with "App start" in your flow.

Connect:
  • PACKAGE: fx ="net.openvpn.openvpn"
  • ACTIVITY CLASS: fx ="net.openvpn.unified.MainActivity"
    (or select "net.openvpn.unified.MainActivity" from "Pick activith...> OpenVPN Connect")
  • Action: View
  • DATA URI: (empty)
  • MIME TYPE: (empty)
  • CATEGORY: (don't select)
  • EXTRAS: {"net.openvpn.openvpn.AUTOSTART_PROFILE_NAME": "PC [*your openvpn profile name]", "net.openvpn.openvpn.AUTOCONNECT" as Boolean: 1, net.openvpn.openvpn.APP_SECTION": "PC"}
      *if your openvpn profile name is "vpn.example.com/autologin", AUTOSTART_PROFILE_NAME is "PC vpn.example.com/autologin"
  • FLAGS: (don't select)
  • CHOOSER: not checked
Disconnect:
  • PACKAGE: fx ="net.openvpn.openvpn"
  • ACTIVITY CLASS: fx ="net.openvpn.unified.MainActivity"
    (or select "net.openvpn.unified.MainActivity" from "Pick activith...> OpenVPN Connect")
  • Action: fx ="net.openvpn.openvpn.DISCONNECT"
  • DATA URI: (empty)
  • MIME TYPE: (empty)
  • CATEGORY: (don't select)
  • EXTRAS: {"net.openvpn.openvpn.STOP" as Boolean: 1}
  • FLAGS: (don't select)
  • CHOOSER: not checked
Thanks & Regards,

2018年12月17日月曜日 11時24分02秒 UTC+9 Henrik "The Developer" Lindqvist:

fer...@gmail.com

unread,
Mar 18, 2019, 9:53:31 AM3/18/19
to automa...@googlegroups.com
Thank-you for this, I've been searching everywhere for the "extra" settings for these as none of the flows I downloaded would ever automatically start/stop a profile.

BTW, there's a double-quote missing from the start of "net.openvpn.openvpn.APP_SECTION" which causes a syntax error.

mjasmi...@gmail.com

unread,
Mar 6, 2020, 11:40:01 AM3/6/20
to Automate
You sir, are a legend.
I've been on so many forums that got me close, but the difference seemed to be Action: View and  as Boolean: 1
Thank you

m.ba...@gmail.com

unread,
Mar 7, 2020, 3:17:17 AM3/7/20
to Automate
Worked for me too.
Reply all
Reply to author
Forward
0 new messages