sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    System(iexplorer) freezes sketchup until iexplore is closed

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 300 Views 3 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.
    • F Offline
      fizgig
      last edited by

      I use ruby to make an html file that I want to then show the user. I do it this way:

      system('C;/Program Files/Internet Explorer/iexplore.exe C;/output.html')
      

      I'd like to be able to drag internet explorer to the side so the user can still work with sketchup and keep internet explorer open still viewing the output.html file but sketchup wont listen to any mouse clicks until I close internet explorer. Once I do, I can start messing with the model again but I've lost internet explorer.

      Anyone know how to fix this?

      1 Reply Last reply Reply Quote 0
      • P Offline
        pecan
        last edited by

        In SuRDebug, I do something like:

        cmd = "\"" + sketchupDir + "\\plugins\\SuRDebug\\SuRDebug.exe\" --suver=#{suVer}";
        puts cmd;
        systhr = Thread.new(){`#{cmd}`}
        
        

        You can also try:

        systhr = Thread.new(){system(cmd)}

        but, for me, it left a command window open.

        1 Reply Last reply Reply Quote 0
        • F Offline
          fizgig
          last edited by

          Thanks for the tip! Will try it out.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            Just stumbled upon this old post... and saw that the correct answer was never given.
            (Lest some newbie be misinformed, by finding this topic, I'll add the correct answer.)

            Don't use system(), use UI.openURL()

            UI.openURL("file;//C;/output.html")
            

            I'm not here much anymore.

            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