Script calls script - how to click Ok to dialog boxes?
-
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 boxOr
Bobs pancakes(MB_OK, MB_OK, MB_OK)Thanks!
Stuart
-
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...
-
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
Advertisement