Thinking about this some more, there's a partial answer that I'll describe as Option 1. There's a more involved option using web-services that I'll describe as Option 2.
Option 1
Referring to the attached picture, the Long Click is used to exclude small duration multi-clicks and only pass through a click longer than 3 x TI (output on Q4).
The Push Switch uses Qoff to identify the trailing edge of the click. This resets the Switch(On-Off). The duration of your click is retained onto I3 and I4.
The Push Switch also identifies all the trailing edges of the multi-clicks, but activating the Switch(On-Off) when it's off....is still off. :)
The Long Click TI duration can modified to suit your taste. It just needs to be long enough to avoid being confused with a short click. In the Properties of the Switch(On_Off), you can deselect the 'Use' box. You don't need to see this in the Loxone App.

Option 2
Web-services are used primarily for control of functions within the Config by 3rd party devices external to the Miniserver. A secondary option is to control functions within the Config, but originating internally from within the Config.
Where you would normally have 'lines' connecting functions in the Config, web-services is the equivalent of 'invisible lines'. Referring to the picture below, Command VCQ1, is switching Input VI1 to ON. Command VCQ2, is switching Input VI1 to OFF.
The end result is exactly the same as Option 1.

Where web-services has benefits is controlling items through the GUI of the Loxone App, rather than internally within the Config. An example could be controlling analogue sliders both as individual adjustments, but also having a Master Slider that controls both of them at once. In the picture below, Input VI3 and VI4 are individual analogue sliders in the app (ie. Cold slider and Warm slider). Input VI5 is a third slider that will operate them both at once to the set the overall intensity.

There's obviously a lot more detail required on how to achieve the above with web-services, but see if Option 1 suits your needs for switching to start with.
Cheers.