Ctrl button, select many fonctions and send them all at once

Discuss problems and solutions.
Post Reply
Psyka
Newbie
Posts: 9
Joined: 12 Jun 2014 13:06

Ctrl button, select many fonctions and send them all at once

Post by Psyka »

Hi everybody.

I try to do something with the lemur app.
I would create a "Select button", to select many fonction I made. And I would launch them all at once. I make a gif to illustrate that :)

Is this fonction already exist?

Thank you everyone and sorry for my english.
Attachments
3- Press enter and that launch fonction 1 and 2
3- Press enter and that launch fonction 1 and 2
image.jpg (32.15 KiB) Viewed 3685 times
2- Select fonction 1 and 2
2- Select fonction 1 and 2
image.jpg (32.94 KiB) Viewed 3685 times
1- Ctrl on
1- Ctrl on
image.jpg (33.05 KiB) Viewed 3685 times
ndivuyo
Regular
Posts: 278
Joined: 23 May 2014 00:24

Re: Ctrl button, select many fonctions and send them all at

Post by ndivuyo »

I believe what you want is possible but a little hard to help as I don't know exactly what kind of 'function' you are launching.

Calling a scripted function is like many other languages, simply type the function name with parenthesis and any arguments required
Example:
myFunction(argument1, argument2);


Maybe you are just trying to 'turn on' multiple switches or something similar at once? To do that you can manage it in a script. You should look into basic scripting with lemur. There are really many ways to do this. But basically you want to execute your code when you press the main switch/button/pad. This is through something called an event handler script (or a similar title). You just need to make a script that executes on the expression of pressing the button (most likely 'x'). Then inside that script you will write the necessary code to turn on the other values (probably something like: mySwitch.x = 1;)

If it is another kind of 'function' or something I am missing, let me know
Hope that helps
Psyka
Newbie
Posts: 9
Joined: 12 Jun 2014 13:06

Re: Ctrl button, select many fonctions and send them all at

Post by Psyka »

Hi Ndivuyo.

I would thank you very much for your help. I will try to work on this way.
Ans when you say :
"Maybe you are just trying to 'turn on' multiple switches or something similar at once".
It's exactly what i'm looking for.

Thank you and I wish you a very happy festive season.
Post Reply