HISE Logo Forum
    • Categories
    • Register
    • Login

    Modifier Keys || Shift + Click = DoSomething

    Scheduled Pinned Locked Moved Unsolved Scripting
    21 Posts 2 Posters 200 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.
    • ChazroxC
      Chazrox @d.healey
      last edited by Chazrox

      @d-healey oh shoot. I didnt even think to do a callback with a label. So is 'Enter" already an available function? I dont see it under 'scripting label' in docs.

      Thats def a modifier function im assuming. Which brings me to my other question. Modifier keys?

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

        @Chazrox said in Modifier Keys || Shift + Click = DoSomething:

        So is 'Enter" already an available function?

        It's the default behaviour, when you hit enter it will trigger the label's callback

        @Chazrox said in Modifier Keys || Shift + Click = DoSomething:

        Modifier keys?

        Content.setKeyPressCallback() - It's a little finicky to use, you should search the forum for information because I can't remember :p

        It's on my list to make a video about it.

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

        ChazroxC 1 Reply Last reply Reply Quote 0
        • ChazroxC
          Chazrox @d.healey
          last edited by Chazrox

          @d-healey

          @d-healey said in Modifier Keys || Shift + Click = DoSomething:

          It's the default behaviour

          Perfect. 👌 That should do the job.

          I think thats a great video idea! I think it adds to the possibilities for some fun use cases if its easy enough to implement.

          Things that come to mind for some of my own projects... :

          Shift + Click = Solo / Isolate
          Shift + Click = Reset all similar components to 'Default' state/value
          Ctrl + Click = Copy --> value
          Ctrl + DoubleClick = Pasta ---> value

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

            @Chazrox said in Modifier Keys || Shift + Click = DoSomething:

            Shift + Click = Solo / Isolate

            Yeah I added this to my mixer script recently.

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

            ChazroxC 2 Replies Last reply Reply Quote 1
            • ChazroxC
              Chazrox @d.healey
              last edited by

              @d-healey See, thats what I need to. lol I think alot of people would like that one.

              1 Reply Last reply Reply Quote 0
              • ChazroxC
                Chazrox @d.healey
                last edited by Chazrox

                @d-healey can you see this?

                pressing enter after typing text doesnt trigger callback.

                	inline function onPresetNameToSaveControl(component, value)
                	{
                		if (value) // Is this correct/enough?
                		{
                			SaveOk.setValue(1); // Save Button
                			SaveOk.changed();
                		}
                	};
                	
                	Content.getComponent("PresetNameToSave").setControlCallback(onPresetNameToSaveControl);
                
                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Chazrox
                  last edited by d.healey

                  @Chazrox said in Modifier Keys || Shift + Click = DoSomething:

                  if (value)

                  This isn't a button callback, no need to check the value.

                  Why are you triggering the save button? Do you need to do that?

                  You can put your save functionality into a function and call it from the button and from the label.

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

                  ChazroxC 2 Replies Last reply Reply Quote 1
                  • ChazroxC
                    Chazrox @d.healey
                    last edited by

                    @d-healey ok. I see. Let me changed it around and try this again.

                    1 Reply Last reply Reply Quote 0
                    • ChazroxC
                      Chazrox @d.healey
                      last edited by Chazrox

                      @d-healey 💰 Thank you sir. 🙏

                      now about this video...? I need that info now! haha.

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

                        @Chazrox It's too hot here to record videos, have to wait until next week once I've stopped melting

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

                        ChazroxC 2 Replies Last reply Reply Quote 1
                        • ChazroxC
                          Chazrox @d.healey
                          last edited by

                          @d-healey damn I feel you. Its hot in LA rn too. Ok. I'll wait. ha

                          1 Reply Last reply Reply Quote 0
                          • ChazroxC
                            Chazrox @d.healey
                            last edited by

                            @d-healey Maybe you can help me do this one and I can figure out the rest.

                            From what I have now, 'enter' executes my 'save' function. I want 'Shift+Click' to run my 'rename' function.

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

                              @Chazrox shift click on the label?

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

                              ChazroxC 1 Reply Last reply Reply Quote 0
                              • ChazroxC
                                Chazrox @d.healey
                                last edited by Chazrox

                                @d-healey yes. Shift+Enter = doSomething();

                                d.healeyD 1 Reply Last reply Reply Quote 0
                                • ChazroxC Chazrox marked this topic as a question
                                • d.healeyD
                                  d.healey @Chazrox
                                  last edited by

                                  @Chazrox From what I understand, this should work

                                  HiseSnippet 968.3ocsVEtaaaCDlxIpnRacXEnO.D8OyYnv0N1wMoACqKN1qFsN0XtqX.CEEzTmrIhDofHURMJx6vd416QeC5NJIGK2D31ZfIXXvi2cje7638IMNUwAsVkRb7e8hDf378tSVHMy6MmIjjgmRb9A2QLsARoEScxhDlVCADGmc9c6DNd6Rxe93udBKhI4vpoHj2nDb3khXgY0rie1KDQQCXAvqEwUhtyyFxUxdpHUFhmcbaRRX7yYyfyX1vp4RdNSOm37ytGreadmfmDr+9GbTWNqKbTHKLrU6fNc5d3QsZeDqygcglGPbtS+.gQkNwvLfFWzSTAKlLWcorXCdiPKlFAViVjI3NWLMo2bQTv3kjilPb1c7JpZmBp5AtiDAhqmeEk8i4NnqxnJo4TaSPp02.jbp.ocKfz8cmvSEIlUdr346bGJwJXHCqMUgRQrjZ+aM2dJLBooQL6bXPJZbcF061r4in3e6cruOVezF5ErT5KYSgnVzegtLyYfomJNQIQi5Orv8Cs4TLrg15WpyhgfW.KFmhvCz0+6ObNrnmJ.dJsU6qd6dGSe7iwQ3512B.J5s5JrLydrnno3ki5gYRtQnj0gKv8cO+O36IBoEVMD5AJdlFKLxYvd9ddofIKUdLNpZX54hPLUOLWOKDUQPijTg8XLw5hJzz.r9XOMdW46AQZXyQmkTFqumYtP2fmiff5EGumyt.nFEMlIyvywBpIULaFdXMyAJxvlTUDkWdBoR0kzo.mkoA5kvOkBTgbYT9WYIXgLRHA5RpfpjEDVuhfpyWVVdDV4hxfbVx+JLyMW6JKY103Z99yVab6qrsmoLvqj0KWee5m6JL7V8UtVQP5s51JRjtoDqKyhmBoqe57oXSw5cZ24qqSiWPJUBTIGJElWk.k1CTQA1NH63a1WRJYUbzeN7TlgYaUKmCiKARMBKbbNEt.EGKZb8bOEzmaTI4wVVJHNtlbu2qrsNm6IBbquqaQcf7dLHm+A2qE1AivAF38Fa.5fP7GJ2dCUBTeREjEwLqKZYkyKcf76ZJEV0.oVXVTUt+aPIq4FUx9Zg38cGKL742NFqcKXDY9+OvXo9+8b6GFBbyJ.tq6f+ZaE6+Ba+enxLB4rQLTrvVyOKKdB9dRNXU2jnjjs7Wyd6qvto01x.S.YPtwmvmRmsr1NkNaszIIlwSUuqTaw9Fl6lOChIY9af8vOE.sosH4cZU44X7EduiyWeotQh6usI1daSry1l3Aaahc21Dex1l3ge4DseOxukYTwEsMDxnw8yklbb5KY3Mv7aqj+Cf1idmL
                                  

                                  But it doesn't. It looks like when the event is the enter key it won't work while shift is down - at least not on my system. Maybe Christoph has an idea.

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

                                  ChazroxC 1 Reply Last reply Reply Quote 0
                                  • ChazroxC
                                    Chazrox @d.healey
                                    last edited by

                                    @Christoph-Hart is there a work-around for this or a function I dont know about?

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

                                    17

                                    Online

                                    1.8k

                                    Users

                                    12.1k

                                    Topics

                                    105.4k

                                    Posts