sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    J. Foltz Ruby Toolbar and SU8 (not working ?)

    Scheduled Pinned Locked Moved Plugins
    7 Posts 3 Posters 379 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.
    • Didier BurD Offline
      Didier Bur
      last edited by

      Hi,
      I don't know if anyone else encounter this error, but after installing Jim's Ruby Toolbar (an essential tool to me), I got this error:

      Error; #<TypeError; wrong argument type Win32API (expected Class)>
      C;/PROGRA~1/Google/GO24A4~1/Plugins/fr_rubytoolbar.rb;22;in `initialize'
      C;/PROGRA~1/Google/GO24A4~1/Plugins/fr_rubytoolbar.rb;22;in `new'
      

      This happens when clicking on the left-most icon to open the Console window.
      Win32API.so is in the Plugins folder as usual.
      The "guilty" line seems to be this one: Win32API.new("user32.dll", "FindWindow", ['P','P'], 'N') in the self.findWindow method of the class.
      The second icon (to clear the console window) doesn't work too. Other icons work as expected.

      Jim ? Happy new year BTW πŸ˜„

      DB

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        You're running a French SU? Might be that it fails because it's searching for window title names in English - or something?

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • Didier BurD Offline
          Didier Bur
          last edited by

          Yes I'm using a french version of SU.
          Do you know what's the english name for the console window (I supposed "Ruby Console", then tried it but no luck).
          Apparently "user32.dll" or "FindWindow" isn't a valid class anymore for the Win32API.new constructor.
          Maybe Jim will help on this, since I'm not familiar with win32api stuff πŸ˜•
          The most annoying problem is that when the console gets full, it slows down SU so much that you have to exit SU and restart...

          DB

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            @didier bur said:

            Do you know what's the english name for the console window (I supposed "Ruby Console", then tried it but no luck).

            Yes, that's the English name.

            @didier bur said:

            Apparently "user32.dll" or "FindWindow" isn't a valid class anymore for the Win32API.new constructor.

            It works for me. "user32.dll" and "FindWindow" are just strings passed to Win32API.new so it can find the correct DLL function.

            @didier bur said:

            The most annoying problem is that when the console gets full, it slows down SU so much that you have to exit SU and restart...

            Yes - I've been using a snippet similar to the one found in this plugin - extremely useful. I just type cls to cler the screen. Should have been built into SU.

            Your error reports 'fr_rubytoolbar.rb' - where did you get that version? Maybe something is different in the one I got. When I looked at Jim's plugin it seemed to have code for handling French. But it only contained "rubytoolbar.rb".
            In the version I have the findWindow starts at line 29.

            It's an odd error you have gotten. I don't see why it would not work. At least not if we have the same version. I've never come across such error while working with Win32API.

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              I very rarely use the windows version of SU, but recall recent conflict between Win32API.so (in jim's folder) and win32api.so (in SketchyPhysics3)

              can't remember the details or if it was a Mac using Parallels issue, but there was a conflict that affected RubyToolbars...

              john

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                Didier: could it be a version conflict? http://forums.sketchucation.com/viewtopic.php?f=323&t=33955
                Do you use the one that ships with Jim's plugin or a version you get elsewhere?

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • Didier BurD Offline
                  Didier Bur
                  last edited by

                  My version of Win32api.so is 20547 bytes, and works with su 7.1, not with su8.
                  I've found a very old one that was working with su5 and 6, that is only 7168 bytes, and it works with su8 !
                  Attached below, just in case (must be tested with other plugins that requires it).

                  @Thomthom: fr_rubytoolbar.rb is just a translation of the menus and tooltips, no changes made to the code itself.

                  See this thread to get the old version that's working for me on SU7 and 8:
                  http://forums.sketchucation.com/viewtopic.php?f=323&t=33955&p=298650#p298650

                  DB

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement