Hooking "Save/Save as" functionality

Keyboard macros or custom scripts

Hooking "Save/Save as" functionality

Postby Nimral » Sat Jan 02, 2021 1:30 am

Hi all,

does OO Basic provide any means to globally hook into the save / save as functionality?

What I need to do is to create a global macro which inspects all file save operations, and, if a file is to be saved into a specific directory (e.g. ...\my documents\reports) it will automatically create a filename (derived from the current date and time to ensure uniqueness) and save the file without any further user interaction, whereas, if the file is to be saved anywhere else, the default Open Office file save behaviour is retained.

Can such low-level programming be done in Open Office Basic or Libre Office Basic?

Thnx, Armin.
Open Office 4.1.2 on Windows 10
Nimral
 
Posts: 4
Joined: Thu Dec 01, 2016 12:29 pm

Re: Hooking "Save/Save as" functionality

Postby JeJe » Sat Jan 02, 2021 1:56 am

See Useful Macro Information
For OpenOffice
By
Andrew Pitonyak

Listing: Intercept menu commands using Basic

https://www.pitonyak.org/oo.php
Openoffice 4.1.6
Windows 8
JeJe
Volunteer
 
Posts: 1570
Joined: Wed Mar 09, 2016 2:40 pm


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest