Toad World® Forums

Recording Key Stroke Macros - line break

I recently upgraded to Toad for Oracle 12.12. Recording key stroke macros is not working the same. The Enter key is being recorded as ‘Replace Selection’. In my previous version of Toad (12.5) it was recorded as 'Break line at current position, move caret to new line '. Am I wrong to expect the same functionality when I playback a recorded macro as when I recorded it?

Whether or not there is a selection, all character and newline inserts are reported as replace selection. In the case of no selection the keystroke is replacing a zero length selection at the caret position thus functioning as an insert character operation. Even if the macro includes selection commands whether or not keystrokes actually replace a selection or simply insert text depends on the Editor text. In some cases a macro’s selection commands may not make a selection. For example, the caret is at document start and the macro records commands to select previous characters.

Am I wrong to expect the same functionality when I playback a recorded macro as when I recorded it?

It should playback, is it not? I can’t reproduce any issue with newlines so please provide steps if you are seeing problems during playback.

Michael

While recording the new line kept the same indentation as the current line. When playing back, it does not. The only step in the macro is Enter on the keyboard - saved as Replace Selection.

Original
This is a test. I am recording the macro with the caret right before the “I”

Recording Result
This is a test.
I am recording the macro with the caret right before the “I”

Playback original
This is a test. I am playing back the macro with the caret right before the “I”.

Playback result
This is a test.
I am playing back the macro with the caret right before the “I”.

Looks like newline entered via macro playback needs to observe the auto indent option. The option is applied on keystroke, but not playback. Thanks, I’ll log.

Michael

Thanks

From: Michael Staszewski [mailto:bounce-mstaszew@toadworld.com]

Sent: Tuesday, February 27, 2018 5:44 PM

To: toadoracle@toadworld.com

Subject: RE: [Toad for Oracle - Discussion Forum] Recording Key Stroke Macros - line break

RE: Recording Key Stroke Macros - line break

Reply by Michael Staszewski

Looks like newline entered via macro playback needs to observe the auto indent option. The option is applied on keystroke, but not playback. Thanks, I’ll log.

Michael

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or
Unsubscribe from Toad for Oracle Forum
notifications altogether.

Toad for Oracle - Discussion Forum

Flag
this post as spam/abuse.

CONFIDENTIALITY NOTICE: This message, including attachments, is intended to be viewed only by the addressee. It may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. No confidentiality or privilege is lost by any transmission error. This message may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act and the Sarbanes-Oxley Act. You may not directly or indirectly reuse or disclose such information for any purpose except as permitted by law. Any dissemination, distribution or copying of this message is strictly prohibited without our prior written permission. If you are not an intended recipient, or if you have received this message in error, please notify us immediately by return e-mail and permanently remove the original message and any copies from your computer and all back-up systems.

If you are a participant in the beta program this issue will be resolved in the next beta.

Michael