Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Thomas Arnbjerg on July 07, 2023, 04:43:28 pm
-
I've created a script, which sets the project constants based on tags on a report package. Is there a way to trigger document generation from javascript (display window 'Generate Documentation') and avoid having the user press F8?
-
Yes, you can press F8 for him.
This is how I do it in VBScript:
dim ws
Set ws = CreateObject("wscript.shell")
ws.sendkeys "{F8}"
Not the most elegant solution, but it does the job
Geert