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

    Script calls script - how to click Ok to dialog boxes?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 248 Views 2 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.
    • T Offline
      tallbridgeguy
      last edited by

      Hi, sorry for this dumb question.

      I made a simple ruby script that calls another ruby script. In the the second script, a series of dialog boxes come up.

      Can I click okay somehow from my first script? This way I don't have to combine scripts (which would take me a year.)

      I.e.

      First script

      Require "Sketchup.rb"

      Do stuff

      #call second script

      Bobs pancakes

      Send MB_OK #click ok to dialog box
      Send MB_OK #click ok to dialog box
      Send MB_OK #click ok to dialog box

      Or
      Bobs pancakes(MB_OK, MB_OK, MB_OK)

      Thanks!

      Stuart

      Nielsen
      http://www.tallbridgeguy.com/

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        It's not possible, unless you have a PC and make some clever WinScript key-mimicking calls...
        Which will be harder than adjusting the second script's code...

        You can rewrite the parts of the second script by putting # in front of the UI.message box parts.
        If it's an 'inputbox' you can #-out the inputbox line[s] and set the passed values in new line[s] of code instead...

        It's not so difficult... πŸ˜‰

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          tallbridgeguy
          last edited by

          Thanks TIG!

          I will give up on that idea and go # the second script! See you in a year! πŸ˜„

          Thanks for the quick reply!

          Stuart

          Nielsen
          http://www.tallbridgeguy.com/

          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