The link above works as expected, the trigger named "Test" is called, then the HTML menu closes.
Though if I remove the "&closeFloatingHTMLMenu=1", I get the Mac Error Noise and nothing happens.
I'm wanting to click a link that triggers a named trigger, but also remain in the HTML menu until I choose to close it.
Is this possible?
Thank you so much for your quick replies. I truly appreciate it.
Even after closing the BTT preference window, I'm getting the same issue. The action doesn't trigger, and I get the "error" noise. If I add the "&closeFloatingHTMLMenu=1" back to the top 2 links the action triggers correctly, but the popup then closes. Could you test this code below and see if you get the same thing?
Here's the code I'm using (it's very much one of the boilerplate templates with a few modifications)
<!-- this is based on https://www.uplabs.com/posts/colourful-flower-popup-menu -->
<head>
<title>Cool</title>
<link rel="stylesheet" type="text/css" href="./circular.css" media="all">
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+"
crossorigin="anonymous"></script>
<script>
// this function is called everyime you open the menu in BTT
function BTTInitialize() {
setTimeout(() => {
document.getElementById("menu-open").checked = true;
}, 0);
}
function BTTWillCloseWindow() {
// this function is called everytime you close the menu
document.getElementById("menu-open").checked = false;
}
</script>
</head>
<nav class="menu">
<div id="test"></div>
<input type="checkbox" href="#" class="menu-open" name="menu-open" id="menu-open" onClick="window.location='btt://trigger_named/?trigger_name=dummy&closeFloatingHTMLMenu=1'"
/>
<label class="menu-open-button" for="menu-open">
<span class="lines line-1"></span>
<span class="lines line-2"></span>
<span class="lines line-3"></span>
</label>
<!-- The action buttons start here: -->
<a href="btt://trigger_named/?trigger_name=LeftArrow" id="LeftArrow" class="menu-item blue" >
<i class="fa fa-window-restore"></i>
</a>
<a href="btt://trigger_named/?trigger_name=RightArrow" id="RightArrow" class="menu-item green">
<i class="fa fa-clock"></i>
</a>
</nav>
</html>