Purpose We want to call MS Word automation functions from a GuiXT script |
Solution
The user clicks on the "Insert Safety Text" button, which inserts the predefined "Safety text" at the cursor position: |
![]() |
GuiXT Script "saplstxx.e2102.txt" GuiXT
|
InputScript ""insert_word_text.txt"" GuiXT
|
JavaScript function ""word_insert_text()"" JavaScript
|
Debugging tip for JavaScript and the automation functions
If you now click on the GuiXT button to insert text, the Visual Studio Debugger opens and you have all debugging functions available, including the display of the “Word” object with all its properties and methods:
|
Components InputAssistant + Controls |