VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



SketchUp_RubyConsole_SendKeys

by CADFX (9 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Beginner
Originally Published: Wed 24th February 2016
Date Added: Tue 9th February 2021
Rating: (1 Votes)

Send Ruby commands to SketchUp Ruby Console. Made this work around to send who scripts to the Ruby Console for testing SketchUp. Bypasses need to load, or reload SketchUp, to run new script tests. This works around the WshShell.SendKeys issue of the "{}" characters, present in Ruby syntax, for which "{{}" "{}}" traditional send_keys bypass fails in the Ruby Console, at least in my tests. Instead whole chunks of Ruby code can now be sent by way of the shell send_keys, but instead, to the right_click, alt+p "Paste" route as sent by the shell to the Ruby Console context menu, and the rest sent in from the clipboard, as loaded manually by you, or from textboxes filled with Ruby code chunks. Had to do this, because at present cannot bridge VB to SkecthUp in traditional ways. If you know how to connect VB to the SK object model, or a reliable bridge for this, please let me know. Just make sure you put in your "Ruby Console" caption, as it varies in other versions, and it needs that exact caption.

Rate SketchUp_RubyConsole_SendKeys

Download SketchUp_RubyConsole_SendKeys

Download SketchUp_RubyConsole_SendKeys (3 KB)

SketchUp_RubyConsole_SendKeys Comments

No comments have been posted about SketchUp_RubyConsole_SendKeys. Why not be the first to post a comment about SketchUp_RubyConsole_SendKeys.

Post your comment

Subject:
Message:
0/1000 characters