Eneroth3 / open-newer-version

Convert and open models made in newer versions of SketchUp.
MIT License
44 stars 12 forks source link

Don't show flashing command line window #2

Closed Eneroth3 closed 6 years ago

Eneroth3 commented 6 years ago

Currently when the external program is called, a command prompt window flashes by. This is rather ugly. If the program can be called without showing, that would improve the user experience.

Eneroth3 commented 6 years ago

Tried start "#{PLUGIN_DIR}/bin/ConvertVersion.exe" "#{source}" "#{target}" #{SU_VERSION} \\B which is even worse than today as it makes the command window flash very quickly, rather than staying open for as long as it is working. Also, since it is asynchronous, SketchUp then fails to open the not yet to be converted file.

Eneroth3 commented 6 years ago

Tried outputting "Converting..." in C++ program, but it isn't shown in the console window opened from Ruby :( .

Eneroth3 commented 6 years ago

Tested echo on | echo "Converting..." | "#{PLUGIN_DIR}/bin/ConvertVersion" "#{source}" "#{target}" #{SU_VERSION} but nothing is showing in the command window.

Using Ruby C Extension to call the program is also out of the question as it requires different binaries for each Ruby version :S .

Eneroth3 commented 6 years ago

Calling exe file with arguments using UI.openURL doesn't seem to work. No success with calling a VSB file using UI.openUrl and let that run the exe.