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
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