sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] LordOfTheToolbars - v2.9c - 20 Dec 24

    Scheduled Pinned Locked Moved Plugins
    452 Posts 87 Posters 314.2k Views 86 Watching
    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.
    • G Offline
      Gordon McLaren
      last edited by

      Hi Fredo,
      Thank you for all the fantastic work you do.
      I use the "Personal Command Menu" often and would definitely like to see it working again. Are you able to re-write the part of your script that references the "GUI framework"?
      This would be very much appreciated.
      Kind regards,
      Gordon

      1 Reply Last reply Reply Quote 0
      • fredo6F Offline
        fredo6
        last edited by

        @gordon mclaren said:

        Are you able to re-write the part of your script that references the "GUI framework"?

        Nope. The new GUI framework precisely allows no access to menus any longer, even with hacking.

        1 Reply Last reply Reply Quote 0
        • panixiaP Offline
          panixia
          last edited by

          @gordon mclaren said:

          I use the "Personal Command Menu" often and would definitely like to see it working again.

          I have a workaround for this.
          Assign some weird shortcut to your menu item (I say "weird" because maybe you don't want to waste some available handy keyboard shortcut for this).
          Then create a ruby script button and type in the following:

          shell = WIN32OLE;;new("WScript.Shell")
          shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
          
          

          Insert your shortcut between quotes using the "Microsoft sendkeys" syntax, you can find the reference at this link:

          Link Preview Image
          SendKeys statement (VBA)

          Office VBA reference topic

          favicon

          (learn.microsoft.com)

          Here's an example.. this one would be equivalent to press "Ctrl+Shift+ALt+F11" each time you push hit the toolbar button.

          SendKeysShortchut.JPG

          1 Reply Last reply Reply Quote 0
          • K Offline
            kaas
            last edited by

            @panixia said:

            ..I have a workaround for this....

            shell = WIN32OLE;;new("WScript.Shell")
            > shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
            > 
            

            Just be aware that this fix won't last forever. I'm using it in one of my plugins and SU2022 is already warning me it will be deprecated in a next version of Ruby.

            1 Reply Last reply Reply Quote 0
            • panixiaP Offline
              panixia
              last edited by

              @kaas said:

              Just be aware that this fix won't last forever. I'm using it in one of my plugins and SU2022 is already warning me it will be deprecated in a next version of Ruby.

              Well, I'm not a developer so I don't know a lot about this.. I've just found this snippet long ago to make it work with the old "Toolbar Editor" plugin.
              Actually I don't need this that much right now, because I still use 2021 with classic perpetual license and LOTT works like a charm in SU21.
              By the way I tested this in 2023 and it works 100% for now.
              Maybe in future Ruby version this will be replaced with some different syntax to handle Sendkeys ❓

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gordon McLaren
                last edited by

                Thanks for all the suggestions/workarounds, I will give them a try.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  rv1974
                  last edited by

                  @Fredo is implementing of multiple key shortcuts is possible via plugin? A-la Revit, for example - EP for 'edit profile builder's path'?

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Gordon McLaren
                    last edited by

                    @Panixia - Thanks once again for the work-around, I have implemented it and it works like a charm.

                    1 Reply Last reply Reply Quote 0
                    • panixiaP Offline
                      panixia
                      last edited by

                      Glad that it helped 😄

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        AISmebel
                        last edited by

                        @panixia said:

                        @gordon mclaren said:

                        I use the "Personal Command Menu" often and would definitely like to see it working again.

                        I have a workaround for this.
                        Assign some weird shortcut to your menu item (I say "weird" because maybe you don't want to waste some available handy keyboard shortcut for this).
                        Then create a ruby script button and type in the following:

                        shell = WIN32OLE;;new("WScript.Shell")
                        > shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
                        > 
                        

                        Insert your shortcut between quotes using the "Microsoft sendkeys" syntax, you can find the reference at this link:

                        Link Preview Image
                        SendKeys statement (VBA)

                        Office VBA reference topic

                        favicon

                        (learn.microsoft.com)

                        Here's an example.. this one would be equivalent to press "Ctrl+Shift+Alt+F11" each time you hit the toolbar button.

                        [attachment=0:16wbl6tz]<!-- ia0 -->SendKeysShortchut.JPG<!-- ia0 -->[/attachment:16wbl6tz]

                        Hi. I could not figure out your instructions on how to restore the tools from the "Menu" ((
                        Maybe write in more detail? Thank you in advance.

                        1 Reply Last reply Reply Quote 0
                        • panixiaP Offline
                          panixia
                          last edited by

                          @aismebel said:

                          Hi. I could not figure out your instructions on how to restore the tools from the "Menu" ((
                          Maybe write in more detail? Thank you in advance.

                          I wrote exactly the more detailed description I can think of.
                          Is actually the "step by step" explaination and I also added the code you need and the reference page for the syntax you should use to recall your shortcuts from SendKeys.

                          Please notice that this DOES NOT restore the "menu button" functionality of LOTT in SU23.
                          This is just a workaround to create a ruby script button in LOTT that can mimic the missing "menu button" feature.
                          The ruby script just invokes a shortcut when you hit the toolbar button.
                          You need to assign that shortcut (to the menu item you want to create a button for) before creating the button itself.

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            laurent002
                            last edited by

                            Bonjour,
                            J'ai installé LordOfTheToolbars sur la version 2023, mais il semble qu'il ne trouve pas le chemin pour accéder aux menus, y a-t-il une procédure manuel pour lui indiquer le chemin ? Il semble que je n'ai pas trouvé comment faire. Du coup je me suis remis à la version 2022 faute de pouvoir retrouver mon organisation fonctionnel. Faut-il attendre une mise à jour ou est-ce qu'il y a un moyen de rendre fonctionnel l'accès aux menus.
                            Merci

                            1 Reply Last reply Reply Quote 0
                            • panixiaP Offline
                              panixia
                              last edited by

                              @laurent002 said:

                              Bonjour,
                              J'ai installé LordOfTheToolbars sur la version 2023, mais il semble qu'il ne trouve pas le chemin pour accéder aux menus, y a-t-il une procédure manuel pour lui indiquer le chemin ? Il semble que je n'ai pas trouvé comment faire. Du coup je me suis remis à la version 2022 faute de pouvoir retrouver mon organisation fonctionnel. Faut-il attendre une mise à jour ou est-ce qu'il y a un moyen de rendre fonctionnel l'accès aux menus.
                              Merci

                              Tout est expliqué en anglais dans les derniers posts précédant celui-ci

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                AISmebel
                                last edited by

                                Hi. I'm ashamed that I can't figure out how it works. Maybe someone will record a training video?)))

                                1 Reply Last reply Reply Quote 0
                                • fredo6F Offline
                                  fredo6
                                  last edited by

                                  @aismebel said:

                                  Hi. I'm ashamed that I can't figure out how it works. Maybe someone will record a training video?)))

                                  There are videos in the first post of this thread. There are others on YouTube.

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    AISmebel
                                    last edited by

                                    @fredo6 said:

                                    @aismebel said:

                                    Hi. I'm ashamed that I can't figure out how it works. Maybe someone will record a training video?)))

                                    There are videos in the first post of this thread. There are others on YouTube.

                                    Hi Fredo. Perhaps you misunderstood me. I wanted to see a video in which, with the help of a script from the author of panixida, it will be possible to use the command menu. The menu is a very convenient tool, its absence does not allow me to switch to SU2023.

                                    1 Reply Last reply Reply Quote 0
                                    • L Offline
                                      laurent002
                                      last edited by

                                      Hello,
                                      I have installed LordOfTheToolBars on sketchup 2023, but there is no access to any menus tools. Only icons. It means that i can't creat icons, anything.
                                      The most interresting thing about your plugin.
                                      What can I do to fixe or modify to fixe that link problem.
                                      Thanks for your help.

                                      1 Reply Last reply Reply Quote 0
                                      • fredo6F Offline
                                        fredo6
                                        last edited by

                                        @laurent002 said:

                                        Hello,
                                        I have installed LordOfTheToolBars on sketchup 2023, but there is no access to any menus tools. Only icons. It means that i can't creat icons, anything.
                                        The most interresting thing about your plugin.
                                        What can I do to fixe or modify to fixe that link problem.
                                        Thanks for your help.

                                        Yes. Menu disappeared due to change of UI framework for Su2023 on Windows (on Mac this is still available). No workaround possible, unless Trimble provides new API methods.

                                        1 Reply Last reply Reply Quote 0
                                        • panixiaP Offline
                                          panixia
                                          last edited by

                                          @laurent002 said:

                                          Hello,
                                          I have installed LordOfTheToolBars on sketchup 2023, but there is no access to any menus tools. Only icons. It means that i can't creat icons, anything.
                                          The most interresting thing about your plugin.
                                          What can I do to fixe or modify to fixe that link problem.
                                          Thanks for your help.

                                          Not exactly the same, but you can achieve similar result with this workaround.

                                          http://sketchucation.com/forums/viewtopic.php?f=323&t=73776&view=unread#p687744

                                          1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            Julien 2
                                            last edited by

                                            Thanks for the suggestion, I will give a try 😉

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 22
                                            • 23
                                            • 2 / 23
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement