OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Looking for Advanced Autosave Feature / Macro

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Mickey0815
Newbie
Newbie


Joined: 12 Oct 2004
Posts: 2

PostPosted: Tue Oct 12, 2004 10:50 am    Post subject: Looking for Advanced Autosave Feature / Macro Reply with quote

Hi !

Whle Writing some really important and long texts i manually save every 10-30 Minutes the file i am working at in this way: "filename_date_time.sxw".

i do it this way for 3 reaasons:

1. Openoffice crashes once in a while and i don't want to lose too much of my work

2. I sometimes intentionally or unintentionally delete or chance some text that i need back a few minutes/hours/days later. if this happens, i just open the older Versions of the File and have my old text back.

3. when i unintentionally delete the file or it is corupt for whatever reason i still have several older versions and don't lose too much work.

that is the reason why i can't really use the build-in autosave function.

Is there an easy way to upgrade the autosave function to save the file with a different filename on each autosave ("filename_001.sxw" "filename_002.sxw" and so on would work too...)

or is it possible to write a macro that does this ???

i know that i get a lot of files when i do that automaticly, but so what... i prefer having a lot of files in a backup folder than losing my work !


Thanks a lot !

Mickey
Back to top
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Tue Oct 12, 2004 11:26 am    Post subject: Reply with quote

yes it is possible to write a macro but the problem is to launch it : normaly with a timer, but I think there is no timer in UNO API. If you want a button to save with a mouse click it is possible.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
Mickey0815
Newbie
Newbie


Joined: 12 Oct 2004
Posts: 2

PostPosted: Wed Oct 13, 2004 6:09 am    Post subject: Reply with quote

thanks for the quick answer.

i found out how to "autosave" with a button (did it already) but the "every x minutes" functionality would be the thing that makes it really useful..

anyway.... thanks for the answer !


Mickey
Back to top
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Wed Oct 13, 2004 8:51 am    Post subject: Reply with quote

There are certainly some things you can do about it.
For example you have the Starbasic function GetSystemTicks() and 1 tick is 1/10 000th of a second I think.
I think DannyB can say much more about timing, hopefully he will join in on this discussion.

Christian
_________________
- Knowledge is Power -
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group