sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    AutoHotKey shortcuts for the Ruby Console

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 5 Posters 2.1k Views 5 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.
    • J Offline
      Jim
      last edited by Jim

      Here's an AutoHotKey file with some shortcuts for working with SketchUp and the Ruby Console. Keys are context-sensitive, meaning they only work if the Ruby Console is open and/or active.

      2010 Sep 16

      • Added Right-click menu on the Tray Icon.
      • Added a UI for assigning keys to functions:

      You need to start SketchUp first, open the Ruby Console, then start SketchUp.ahk. There is a Reload option in the tray menu which can be used also.

      644.png

      
      == Keys ==
      
      Context; Ruby Console Active
      
        Ctl-f; Switch Focus
        Ctl+l; Clear the Ruby Console
        Ctl-a; Select All (Entry line)
        UP   ; Unchanged, but puts cursor at end of line.
        Down ; Unchanged, but puts cursor at end of line. 
        Alt-s; Shade/Unshade Ruby Console
      
      Context; Ruby Console Open, but not Active
      
        Ctl-f; Switch Focus
        Alt-s; Toggle Shade
      
      

      2010-09 - Added a second AHK script: Sketch-U-Sizer which can resize SketchUp using its drawing area (window - toolbars). Sketch-U-Sizer lives in your tool tray. Right-click its Icon to set the size.


      Now with Sketch-U-Sizer!

      Hi

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Ooh, I like it Jim. Thanks! You seem to be playing with some interesting things.

        BTW, this is PC only?

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

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

          @chris fullmer said:

          BTW, this is PC only?

          Yes.

          I added another script to the .zip - it resizes SketchUp's drawing area to the size you select. Normally, a resizer adjusts the entire window to a certain size. Sketch-U-Sizer sets SketchUp's drawing area to the selected size taking into account open toolbars. (An exported 2d image will match the selected size.)

          Sketch-U-Sizer lives in your tool tray. The sizes are customizable. You will need AutoHotkey installed on a Windows machine to use.

          You can customize the tray icon by creating (or copying) a .ico file to the name "sketchusizer.ico", and placing it in the same folder as sketchusizer.ahk

          I'm not sure if resizing will fubar your toolbar, but it might. You might want to save yout toolbar positions before trying this.

          666.png

          Hi

          1 Reply Last reply Reply Quote 0
          • N Offline
            nikus_knx
            last edited by

            Awesome! Thanks a lot guy. I was lookink for some plugin to clear the ruby Console and it's working well!
            Congratulation ...

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

              Y'er welcome. I have a growing library of AHK functions related to SketchUp - I wrote a SU launcher in AHK to tweak some registry settings prior to running SketchUp. I use it mostly to enable/disable extensions before launch so I don't go through SketchUp's Extensions dialog everytime.

              Hi

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

                Hi Jim,

                This looks awesome. Sorry for the newbie question, but I can't figure out how to activate it. Where do I put the file? How do I start it from the ruby console?

                Thanks so much,

                --
                Karen

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

                  @kwalkerman said:

                  Hi Jim,

                  This looks awesome. Sorry for the newbie question, but I can't figure out how to activate it. Where do I put the file? How do I start it from the ruby console?

                  Thanks so much,

                  --
                  Karen

                  This is not a SketchUp Ruby, but an AutoHotKey file - follow the link in the OP.

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

                  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