HISE Logo Forum
    • Categories
    • Register
    • Login

    Button triggers another button

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 313 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MikeBM
      MikeB
      last edited by MikeB

      I am trying to create a function or in a function at the end
      to trigger another button so that this button is then pressed

      Simply setting it to one with .setValue() is not enough to execute its function.

      Is that possible?

      inline function onbtnRandomAll1Control(component, value)
      {
          //  Store sliderpack values
          
          if(value)
          {
              for (i = 0; i < 16; i++)
              {          
                  storage.sp1[i] = Math.randInt(-12, 12);
                  SliderPack1.setSliderAtIndex(i, storage.sp1[i]); 
              };
              pnlSlidArp1.setValue(storage);
      
      
              //This button should then be triggered!!!
             btnPackSelector3.setValue(        
          }        
      };
      Content.getComponent("btnRandomAll1").setControlCallback(onbtnRandomAll1Control);
      

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        btnPackSelector3.changed() is the part your missing.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 1
        • UD AUDIOU
          UD AUDIO
          last edited by

          "Button löst eine weitere Schaltfläche aus"
          is this post randomly translated for me or are you german? :)

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @UD AUDIO
            last edited by

            @UD-AUDIO

            is this post randomly translated for me or are you german?

            Just you 🤡

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            UD AUDIOU 1 Reply Last reply Reply Quote 0
            • UD AUDIOU
              UD AUDIO @d.healey
              last edited by

              @d-healey Weird! :D

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @UD AUDIO
                last edited by

                @UD-AUDIO said in Button löst eine weitere Schaltfläche aus:

                @d-healey Weird! :D

                I'm joking :P MikeB can't help himself, he occasionally bursts into German and we end up with a thread like this - https://forum.hise.audio/topic/4169/arpeggiator-sync/2?_=1625926207183 :p

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                UD AUDIOU 1 Reply Last reply Reply Quote 0
                • UD AUDIOU
                  UD AUDIO @d.healey
                  last edited by UD AUDIO

                  @d-healey Ohh you got me! :D That topic is more as funny! Made my day

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post

                  29

                  Online

                  1.8k

                  Users

                  12.0k

                  Topics

                  104.5k

                  Posts