Topic: please test this nested comment macro (1 of 3), Read 37 times
Conf: VEDIT Macro Library
From: Deleted User
Date: Thursday, January 10, 2002 03:30 PM

Forgive the garbled english on my previous post.

I need someone to check two cursor key combinations: Ctrl-Home and Ctrl-End.
The comscan.vdm macro should move to beginning-of-file and end-of-file repectively when those keys are pressed.

 


Topic: Re: please test this nested comment macro (2 of 3), Read 36 times
Conf: VEDIT Macro Library
From: Ted Green
Date: Thursday, January 10, 2002 04:22 PM

Carl:

Since Ctrl-End and Ctrl-Home are implemented as keystroke macros which access the {Goto} menu, your macro did not work. The fix is to test explicitly for these keys with the following code:

if (Previous_Key(0,RAW) == 0x7500) { // Ctrl-End
...
}

if (Previous_Key(0,RAW) == 0x7700) { // Ctrl-Home
...
}

Ted.

 


Topic: Re: please test this nested comment macro (3 of 3), Read 38 times
Conf: VEDIT Macro Library
From: Ted Green
Date: Friday, January 11, 2002 12:58 PM

At 08:39 AM 1/11/2002, you wrote:
>Can anyone confirm that the following scan codes are valid?

The best way to check what scan codes keys produce is to run this simple macro: (Press Ctrl-C to stop the macro)

Repeat(all) {
$ Get_Key("Press key: ",RAW)
}

This also lists the "scan codes" which VEDIT fabricates for non-standard keys such as Ctl-Shift-A.

Such detailed knowledge of scan codes is only necessary for those rare macros that use Previous_Key(x,RAW) to check which keys were recently pressed. VEDIT maintains an internal list of the last 128 keys pressed.

Ted.