HomeTaskerTasker PC control - #Tutorial 2 (Volume Menu)

Tasker PC control – #Tutorial 2 (Volume Menu)

Creating volume menu to control the PC

If you missed the part one, I strongly recommend you to check it out. It tells you all about the framework used, and you will find yourself lost without that. Without the further introduction, let’s talk about the Tasker PC control  – Volume Menu.

EventGhost

We are going to start with setting up the new folder for the volume controls in the EventGhost. These work in a similar way to what we have done with the power menu. An AutoRemote message is received by EventGhost, a reply is sent back and the volume is set to the desired value. Feel free to modify the steps and values. Each message sent to the mobile starts with pc=:= so it could be intercepted by the previously created AutoRemote profile. Values are entered after v, simply because I’m lazy. Feel free to split the variable to get the correct the format for the volume. (more on that in the Tasker part)

The only unique task in EventGhost is intercepting the volume change. Use system volume trigger and this will store the message inside the {eg.eventpayload}. Then send this message to Tasker via AutoRemote with the pc=:=v prefix (p=:=v{eg.event.payload}).

Tasker PC control Volume Menu

Volume Menu

The idea is rather simple. I’m creating a notification that will allow me to set a predefined system volume, or mute the sounds all together. I was thinking at first about unmute option but setting the volume again will other values does the same thing. Limitations:

  • Slider would be nice, but due to how EventGhost handles things, it’s more trouble than it should be

If you followed the previous tutorial, you will see that this step is fairly easy. And the good news  – other power menus will be easy to add as well. This is the main benefit of going through the framework set up. Once you know where things should be added it becomes really fast.

You can still use the same template notification to add new Sub-Menu, just modify it.  The default notification that we always retreat to will be the one from the previous tutorial as well.

Open Sub-Menu Profile/ SubMenu Open

Create a new notification and link it to the IF %ancomm ~ openvolume. If the volume icon from the first row is pressed  – this action will be called.

Notification is configured as follows:

  • Buttons – as per your liking, make sure the first row is consistent.
  • Actions: the first row starts with open (see template) but the volume menu icon should have openclose action assigned instead. The second row has actions ending with ‘‘…pc”. I used mutepc,lowvpc,medvpc,highvpc.
  • Color, only a second color should be different.
  • Prefix for actions: buttontwo

Submenu Actions/Send AR

Since the framework is already done, we don’t need to add anything else. All that hard work from the part one finally paid off.

PC Feedback/Notification

The EventGhost will issue a reply when the volume is changed from the PC or through our volume menu. The to simplify the process (you can go nuts) the AutoRemote message is sent in this form pc=:=v(value). This means that we have to intercept all the messages starting with (regex)v.*

In a similar way to power menu, I’m creating a variable %PcVolume and simply setting the value of it to the %arcomm. The value will get assigned to the default notification. At this stage go and update the default notifications (the ones that have only 4 icons) with this variable. Each notification should have %PcPowerontime,%PcVolume in the text field.

In the next tutorial, we will focus on bookmark/app menu.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

New to Tasker?

Tasker Quick Start – Getting started with Tasker

0
From newb to not so newbie in 10 min

Best Tasker Projects

How to use Raspberry PI as WOL (wake on lan) server

0
While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

How to wake on LAN computers and put it to sleep with Power Menu,...

0
How to Wake on LAN properly via Android, Alexa, Google Assistant and Web

7 awesome Bluetooth keyboard shortcuts for Android

0
7 unique Android shortcuts that you can add to any Bluetooth keyboard.

Smart overnight charging with Tasker

0
Still keeping your phone plugged in overnight? Try smarter overnight charging with this profile

One thing that Join app can’t do and how to fix it with Tasker

0
It's not possible to share the clipboard automatically between join accounts registered to 2 different emails. But you can fix this with tasker.

Essential Guides

Tasker: Seconds into DD:HH:MM:SS (dynamic)

0
It's time to.... ok it's a pun, but I will show you how to master time and convert seconds to DD:HH:MM:SS dynamically

4 ways to organise Tasker projects

0
Keep your Tasker tidy!

A better way to store Tasker credentials

0
The more clever way of managing credentials

Annoyed with dozens of AutoApps populating your app drawer? Here is a fix!

0
Clear your app drawer from the clutter in seconds

Putting AutoTools pie chart to a good use – SSID logger

0
Who wants a piece of the pie (chart)?