Skip to content

Show text source with latest Twitch follower

WarmUpTill edited this page Mar 6, 2024 · 2 revisions

This example will provide you with macros which set the text displayed by a text source to the most recent Twitch follower name and show this source for 5 seconds.

grafik

grafik

Explanations

How can Queues be created:

Creating them is quite simple. First create a Queue action or condition and select "add new queue":

CreateQueue

Why is a queue needed:

Assume you have configured a macro which shows the user name of new follower you received on Twitch in text source, which looks similar to this macro:

1709760571542

This first grabs the Twitch follower user name and puts into the variable "Follower", then modifies the text source settings using this new variable, then shows the source for 5 seconds, and finally hides it again.

This example macro has the problem that no other macro will be run while those "long" waits are performed.

You might think that you can simply enable the option to "Run the macro in parallel to other macros", but this will only help in certain cases. It works fine, when you only receive a single follower at most every five seconds. You will run into issues, however, if you receive multiple followers within one 5 second span.

Here the first follower triggers the macro to be run and while it is running the second follower event is received. As the macro is already running the actions will not be executed.

How to resolve the issue using queues:

To resolve this problem you can instead add those actions to a queue and slightly rework the macro / split it into two macros.

First the macro which does the bulk of the "work". Meaning it modifies the text source's settings and shows it for the specified amount of time:

309479013-a8cf4415-76c3-483d-a481-ff873a4033de

(Note that it does not have any conditions - it will be used to as the collection of actions to add to the queue)

Second a macro which grabs the Twitch follower name and assigns it to the "Follower" variable and then add the previously created macro to the queue.

309478832-7330de90-c158-45cf-9bbd-23ef2352f777

(The variable will be resolved when the action is added to the queue - unless configured differently in the queue settings)

Import the example

If you want to import the example you can use this code to do so: Code:

AAAQ9Xic7VdZb+M2EP4rqtCHPeLUcrzZRd62qbdrIGkMO8n2QBDQEi0RoUiVpJykhv97Z3jI8jpOoz4UWKAPQcSZ+WaGc9KruCSpkjo++WMVC1LS+CSeFfI+WkjO5T1VEeFUmfggrkitgbsgXFM8KcI55Q1BitOCiBwkjKrhrO9YNXqg6YWYGQIKglyuZF01p0ymdzNqDBM5uLCKFc2ZNlQ1AgXR01r8WBsjRVANtAk6s0MFS6bWZ2Te8qtgecHhz4wXp1JkzDAp9CUgGgkV9F/SB/AzBnvhult0axM4tdjlXTkacNMtI84jL7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