profile trigger with long pressing volume buttons

523 views
Skip to first unread message

Mustafa Altınbay

unread,
Oct 20, 2014, 8:19:12 AM10/20/14
to tas...@googlegroups.com
Hi, I wonder is there a chance to create a profile when long pressing volume buttons. I need that for skipping tracks with volume buttons when listening to spotify. Any chance?

Matt R

unread,
Oct 31, 2014, 5:07:45 PM10/31/14
to tas...@googlegroups.com
Try the autoinput plugin. You should be able to set up a profile when the volume buttons are pressed and released.

Matt

Mustafa Altınbay

unread,
Nov 1, 2014, 5:00:41 PM11/1/14
to tas...@googlegroups.com
thank you Matt, i will try and respond here.

31 Ekim 2014 Cuma 23:07:45 UTC+2 tarihinde Matt R yazdı:

Mustafa Altınbay

unread,
Nov 1, 2014, 8:38:01 PM11/1/14
to tas...@googlegroups.com
Hi Matt, i have installed plugin, but can't set a profile. How can i set it up? I want to set a profile while long pressing volume up buttons, not just one click. I use it skipping song when i listening music on spotify, and i make it long pressing, i use volume up and down too. By the way, i am rooted. Thank you.

Matt R

unread,
Nov 2, 2014, 3:39:11 PM11/2/14
to tas...@googlegroups.com
I'm not very experienced with the autoinput plugin (yet). You'll need some logic that compares when the button press happens and the button release happens. It'll take a couple profiles and some global variables, it seems.

Matt

Heinz Manhart

unread,
Mar 23, 2015, 9:28:35 PM3/23/15
to tas...@googlegroups.com
For what it's worth, I am using AutoInput for a while. Create a profile using Event - plugin - AutoInput - Key - Configuration - Keys. There you get a list of keys you can use to trigger the profile. Unfortunately Key Action has a very limited selection.
However there are variables you can define and there is where my knowledge ends up to now. I used the Volume button but with no defined action the profile is always triggered when I change the volume of course. Good luck.

Robert Ryan

unread,
Mar 23, 2015, 10:39:34 PM3/23/15
to tas...@googlegroups.com
Unfortunately, Autoinput can only react to key up and key dowm events. No 'long pressing' of the keys is recognized.

You might be able to set something up using a double tap of the volume keys.

Ruslan Alcotana

unread,
Mar 25, 2015, 8:16:27 PM3/25/15
to tas...@googlegroups.com
So what? I did it with 2 profiles. First of all use autoInput action mode keysupress volume buttons after your app starts.
On volumeUp-keyDown profile set %VolumeUp variable to "down". Wait for 2 seconds and do your action IF %VolumeUp is set. We unset this global variable in volumeUp-keyUp profile action. So if you release the button before 2 seconds is over, your variable is destroyed and there is no action.
Reply all
Reply to author
Forward
0 new messages