Buttons
-
Hello,
Can someone tell me how to arrange a button that do a function by pressing it just once. I like that the button returns to its depressed position while the function which it initiates yet runs..........
put it simple:
Click on button -------> -run a function
- and the button returns to normal positionThank you very much:-)
-
do this if you need working with tester:
https://fxdreema.com/forum/topic/4201/tutorial-05-ema-cross-part-5-buttons-behavior-beginnersif you dont need tester you can working in on Chart section:
https://fxdreema.com/shared/W5ieDE9qecreate buttons in on Init:

work with them in on Chart:

see, I used block Run blocks with ID 2 (ID 2 is block which creates button with initially state non pressed, and it just repaint this button into initially state) ...
-
.... I did it right now, the problem is that when the button repaints the function stops immediately. The function is slowing down of the tester and when the custom code runs and puts the button in its depressed state then the tester runs as fast as it can!!!!
-
can you take a look at this please?
https://fxdreema.com/shared/lYosLPDyb -
try this change (I have not tried functionality) :

-
@miro1360 - What is the custom code?
-
@helmud_h87 miro is not on here very often, if you click Piroozmand's link, then click the on tick tab all blocks are there to view.