I am trying to create a custom floating menu in BTT, and for the position setting, I selected "Position Retrieved From Dynamic Variable or Named Trigger". Then, I created a separate named trigger, e.g., called get_position_test.
The get_position_test trigger runs a script via the "Execute Shell Script / Task: -" module. This script calculates the desired coordinates and outputs them in the format {x, y}. However, BTT crashes immediately when I try this.
To debug, I simplified the script to a basic command:
echo "{100,100}"
But BTT still crashes instantly.
I then tried using the "Execute Terminal Command (Synchronous, blocking)" module to run the same echo "{100,100}" command, and BTT still crashes.
Finally, I used the "Run Real JavaScript" module with the following code:
async function someJavaScriptFunction() {
return `{100, 100}`;
}
This worked as expected, and the floating menu appeared correctly.
So, I am wondering if I made a mistake somewhere or if this is a bug. Thank you!