Forum
    • Categories
    • Register
    • Login

    Fake mouse click?

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 18 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.
    • JulesVJ
      JulesV
      last edited by

      Is it possible to use a script to simulate fake mouse click?

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @JulesV
        last edited by

        @JulesV What does the mouse click need to do?

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        JulesVJ 1 Reply Last reply Reply Quote 0
        • JulesVJ
          JulesV @David Healey
          last edited by

          @David-Healey I have a main panel with three child panels set to "allow Callbacks": "Clicks, Hover & Dragging" for FX chain ordering.

          I store the positions of these three child panels as an array within the main panel and the task is set inside the main panel's callback. It normally works, but when I use it for another complex task, it stops working when I run .changed() on the main panel. (it might be a bug)

          It only works when I make a small click on one of the child panels. That's why I neeed a fake click.

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @JulesV
            last edited by

            @JulesV Can you make a minimal example of the issue so I can take a look?

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            JulesVJ 1 Reply Last reply Reply Quote 0
            • JulesVJ
              JulesV @David Healey
              last edited by JulesV

              @David-Healey So, fake mouse clicks aren't possible, right?

              The only thing we can do to trigger the same logic the click would run via a function.

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @JulesV
                last edited by

                @JulesV A fake mouse click won't solve your problem. If you rely on that, then something else is broken. If you need some part of the mouse callback to be executed on initialization, you need to break this out of the function and call it explicitly in onInit.

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

                15

                Online

                2.2k

                Users

                13.3k

                Topics

                115.9k

                Posts