Adding local variable bval to endless... | Intech Studio
💬 general Grid

Adding local variable bval to endless...

Karlo · · 18 replies

I'm trying to get the button on the endless encoder of tek2 to change midi channel (or CC) when pressed... I'm totally lost...

Replies (18)

Karlo ·

I have my botton mode on toggle:

Karlo ·
Screen_Shot_2024-06-14_at_10.52.36_AM.png
Karlo ·

and to test it:

Karlo ·
Screen_Shot_2024-06-14_at_10.53.08_AM.png
Karlo ·

But it still prionts tick upon press and again on release of the endless button

Karlo ·

Help!

Karlo ·

Whats the difference between local variable and self variables?

Karlo ·
Screen_Shot_2024-06-14_at_11.06.09_AM.png
Karlo ·

I feel like the botton isn't toggling

Karlo ·

OMG I actually figured something out! I had enter self.ch in the endeless element screen too

Screen_Shot_2024-06-14_at_11.13.06_AM.png
Karlo ·

....now how else can I get this to send out a double mouse click

kkerti kkerti ·

for double mouse click, you should add a mouse button action block twice and configure it with the left or right click

Karlo ·

Didn't seem to work... I'm guessing there is more to it

Screen_Shot_2024-06-14_at_2.39.05_PM.png
narayb narayb ·

Mouse click blocks are seemingly broken, just use the code variants.

Karlo ·

Is there an example of the code variants I can follow?

Karlo ·

I wouldn't even know what the output of the code would be to produce a mouse click! lol

Karlo ·

I tried this but it doesn't work

Screen_Shot_2024-06-16_at_11.24.21_AM.png
narayb narayb ·

Mouse click has two parameters: button type and value!
https://docs.intech.studio/wiki/actions/keyboard-and-mouse/mouse-button/

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →