Xaver77 Posted February 8, 2022 Share Posted February 8, 2022 Hello everyone, I created a script with which I can select a menu area directly. What I still miss, however, is that I can select a specific pull-down point directly from the script and confirm it immediately. I just don't have the necessary know-how for this function. Here is the script command. def DoMenuTextByNameExample(): vs.DoMenuTextByName('XG SubscribeMaterialsMenu',0); DoMenuTextByNameExample() The result. Here I would like the script to select and confirm "Abholen" immediately. Another example. script command: def DoMenuTextByNameExample(): vs.DoMenuTextByName('XG Python Cuttinglist',0); DoMenuTextByNameExample() The result. Here the script should select "3.FR_Materialliste_Export" and immediately confirm with "OK" Can anyone help in this case? Quote Link to comment
JBenghiat Posted February 8, 2022 Share Posted February 8, 2022 Vectorworks doesn’t allow for automating user interaction. In fact, DoMenuTextByName is a bit of a kludge. Directly scripting the underlying action of the dialog is your only solution, and is generally a better approach. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.