

exists_path ( path ) MsgBox result path = "/home/mau/test.md" result = app. Sub files_and_paths () app = createUnoService ( "" ) path = "/home/mau/noesists.test" result = app. msgbox ( result ) End Sub Paths and files Sub applications () app = createUnoService ( "" ) command = "ls -la" result = app. Sub applications () app = createUnoService ( "" ) program = "gnome-calculator" app. Execute any application or command and not wait.

msgbox ( result ) program = "not-exists" result = app. Sub applications () app = createUnoService ( "" ) program = "gnome-calculator" result = app. get_config ( key, default, prefix ) app. set_config ( key, value, prefix ) MsgBox "Save ok" 'If not found key, get default default = "" value = app. Sub save_values () app = createUnoService ( "" ) key = "values" value = Array ( "uno", 2, "tres", 4 ) prefix = "myapp" app. Is possible save any value, like arrays.get_config ( key, default, prefix ) MsgBox value End Sub The path file save is: USER_PROFILE/config/zaz-PREFIX.json Sub save_values () app = createUnoService ( "" ) key = "user" value = "teresa" prefix = "myapp" app. call_dispatch ( command, arguments ) End Sub Save and get configurationsĪlways used different prefix by application or macro. Sub call_dispatch () app = createUnoService ( "" ) command = ".uno:Copy" arguments = Array () app. Sub create_instance () app = createUnoService ( "" ) dispatch = app. create_instance ( ".DialogProvider2", True ) app. Sub create_instance () app = createUnoService ( "" ) dialog = app. create_instance ( ".Toolkit", False ) app. Sub create_instance () app = createUnoService ( "" ) toolkit = app. Show error box Sub show_error () app = createUnoService ( "" ) message = "ERROR: Ask to technical support" title = "My App" app. Show warning Sub show_warning () app = createUnoService ( "" ) message = "Caution, this action is dangerous" title = "My App" app. Sub make_question () app = createUnoService ( "" ) message = "Is easy Python?" title = "My App" result = app. Size screen Sub size_screen () app = createUnoService ( "" ) result = app. Always first, create service of EasyMacro app = createUnoService ( "" )
