System(iexplorer) freezes sketchup until iexplore is closed
-
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?
-
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.
-
Thanks for the tip! Will try it out.
-
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")
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement