[Solved] Bug in macro when recording Change Case

Writing a book, Automating Document Production - Discuss your special needs here
Post Reply
hmunn
Posts: 71
Joined: Sat Feb 21, 2009 6:41 pm

[Solved] Bug in macro when recording Change Case

Post by hmunn »

There appears to be a bug in the macro recorder when recording any sequence involving Format>Change Case.
The macro written from this sequence places "rem" at the start of the line which contains "dispatcher.executeDispatch......."
The result is that the command is never executed.
A workaround is to edit the macro and delete the leading "rem ". The command is then correctly implemented.

Does anyone know if this is a bug, or is this behaviour deliberate for some reason? Looks like a left-over from testing to me.

OOo Writer 3.3.0
Last edited by hmunn on Mon Feb 14, 2011 9:55 pm, edited 1 time in total.
Harold
OOO 4.1.3 on Windows 10 home.
User avatar
Zizi64
Volunteer
Posts: 11386
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Bug in macro when recording Change Case

Post by Zizi64 »

Hi,

The macro recorder is disabled (default setting) in LibreOffice3.3.0. (You can enable it, if you need that function.)
The macro recorder is an "instable, bugous" feature and it is a known issue...

I hope, it will change in later time, in later version...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
hmunn
Posts: 71
Joined: Sat Feb 21, 2009 6:41 pm

Re: Bug in macro when recording Change Case

Post by hmunn »

Thanks, Zizi64.

Other functions of the macro recorder work fine in 3.3.0. for me.
It is only Format>Change Case that is disabled in this way.

I know that it is possible to enable macros through Tools>Options>Security, but that is to enable running macros.
The bug I am referring to is about recording macros.

Is this what you are referring to?
Harold
OOO 4.1.3 on Windows 10 home.
User avatar
Zizi64
Volunteer
Posts: 11386
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Bug in macro when recording Change Case

Post by Zizi64 »

It is only Format>Change Case that is disabled in this way.
NOT only this function was REM-ed, when I recorded some macros... It is a relatively frequent thing in OOo (when you use the recording frequently.)

Usually maybe workaround the problem by deleting of "REM".

Otherwise, the recorder can not record every activity...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Hagar Delest
Moderator
Posts: 32734
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Bug in macro when recording Change Case

Post by Hagar Delest »

Search the section about Macros here, there are some code snippets. See for example that one: [Solved] How to make a sentence uppercase.

Basically, better search for the appropriate code instead of the listener, it's more robust and easier afterward when you want to reuse the code in another macro or to change it.

Please add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
hmunn
Posts: 71
Joined: Sat Feb 21, 2009 6:41 pm

Re: Bug in macro when recording Change Case

Post by hmunn »

I'm not sure I understand.
Is it intentional to insert REM in the recorded macro? If so, why?

Thanks.
Harold
OOO 4.1.3 on Windows 10 home.
User avatar
Zizi64
Volunteer
Posts: 11386
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Bug in macro when recording Change Case

Post by Zizi64 »

Is it intentional to insert REM in the recorded macro? If so, why?
Sorry, I do not know, why insert the recorder a "REM" automatically...
Ask the developers... We are users, like you in this forum...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
hmunn
Posts: 71
Joined: Sat Feb 21, 2009 6:41 pm

Re: Bug in macro when recording Change Case

Post by hmunn »

Thanks, I was just wondering if anyone knew.
How do I ask a developer?
Harold
OOO 4.1.3 on Windows 10 home.
User avatar
Hagar Delest
Moderator
Posts: 32734
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Bug in macro when recording Change Case

Post by Hagar Delest »

Try the dev mailing list (see the support page from the OOo web site.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
hmunn
Posts: 71
Joined: Sat Feb 21, 2009 6:41 pm

Re: Bug in macro when recording Change Case

Post by hmunn »

Thanks.
Harold
OOO 4.1.3 on Windows 10 home.
Post Reply