Topic: Converting a keyboard macro into a command macro ? (1 of 4), Read 14 times
Conf: Converting, Translating
From: Peter Rejto
Date: Sunday, April 05, 2009 10:12 PM

Hello,

I would like to convert a keyboard macro into a command macro:


As per the online help I have recorded a simple keyboard macro, which inserts the content of T-register 10 at the edit position. I came up with,

[MENU]bi[OPTION]R10[OPTION]

Now I would like to convert this keyboard macro into a command macro. I tried Do_Visual( ), but I just can not follow through.


Actually, all that I need is to copy the content of T-register 10 to the Windows clip-board. So, I tried to open a buffer and then use the previous keyboard macro to insert the content of T-register 10 and finally use clip_copy_block( ) to copy the content. Possibly and probably, there is a more direct way of doing this.

Thanks,

-peter.

 


Topic: Converting a keyboard macro into a command macro ? (2 of 4), Read 12 times
Conf: Converting, Translating
From: Peter Rejto
Date: Sunday, April 05, 2009 11:59 PM

On 4/5/2009 10:12:46 PM, Peter Rejto wrote:
>Hello,
>
>I would like to convert a
>keyboard macro into a command
>macro:
>
>
>As per the on line help I have
>recorded a simple keyboard
>macro, which inserts the
>content of T-register 10 at
>the edit position. I came up
>with,
>
>[MENU]bi[OPTION]R10[OPTION]
>
>Now I would like to convert
>this keyboard macro into a
>command macro.

I have just learned from the on line help that the command I am looking for is

Reg_Ins(10).


At the same time, I would appreciate knowing how to do this conversion in a systematic way.

Thanks,

-peter.

 


Topic: Re: Converting a keyboard macro into a command macro ? (3 of 4), Read 11 times
Conf: Converting, Translating
From: Ted Green
Date: Monday, April 06, 2009 10:35 AM

At 11:59 PM 4/5/2009, vtech-convert Listmanager wrote:

>At the same time, I would appreciate knowing how to do this conversion in a systematic way.

Peter:

There is no absolutely reliable way of converting a keystroke macro into a command macro. It is best to simply write a command macro.

Ted.

 


Topic: Re: Converting a keyboard macro into a command macro ? (4 of 4), Read 7 times
Conf: Converting, Translating
From: Christian Ziemski
Date: Monday, April 06, 2009 12:25 PM

On 06.04.2009 04:13 in vtech-convert Peter Rejto wrote:

> Actually, all that I need is to copy the content of T-register 10 to
> the Windows clip-board. So, I tried to open a buffer and then use the
> previous keyboard macro to insert the content of T-register 10 and
> finally use clip_copy_block( ) to copy the content. Possibly and
> probably, there is a more direct way of doing this.


Reg_Copy_Block(r, p, q, CLIPBOARD) can be used for that.

This command copies the text region from position p to q into T-Reg r
and then T-Reg r into the clipboard.

With the following trick you can copy an already filled text register to
the clipboard without the need of a buffer or other resources:

Reg_Copy_Block(10, 0, 0, APPEND+CLIPBOARD)

It appends nothing from the current buffer to your T-Reg 10 and then
the T-Reg to the Clipboard.


Christian