summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'scripting')
-rw-r--r--scripting/examples/python/InsertText.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripting/examples/python/InsertText.py b/scripting/examples/python/InsertText.py
index 801b8190860a..d68d538cb5f6 100644
--- a/scripting/examples/python/InsertText.py
+++ b/scripting/examples/python/InsertText.py
@@ -63,3 +63,10 @@ def InsertText(text):
xSelectionSupplier.select(xTextRange)
i += 1
+
+def InsertHello(event=None):
+ # Calls the InsertText function to insert the "Hello" string
+ InsertText("Hello")
+
+# Make InsertHello visible by the Macro Selector
+g_exportedScripts = (InsertHello, )