Page 1 of 1

Can I temporarily remap CTRL+P

Posted: Wed Aug 26, 2009 3:44 pm
by Mikhail
Can I temporarily remap CTRL+P to do something else besides a screenprint?

Our users are used to printing with CTRL+P.

I am changing one of our screens to use a grid.

Sometimes the contents of the grid will take more than can fit on the screen.

In this case regular screen print won't work.

I want to:

execute "config keyboard ......." ! remap CTRL+P to some FKEY, say 600

if fkey = 600 then call a function to print the whole grid

Posted: Thu Aug 27, 2009 6:00 am
by gordon
To see what the keyboard assignments are for any of the keys other than BREAK ( ctrl-A ) and PRINTSCREEN ( ctrl-P ) use the following program and press the keys in question:

10 PRINT UNHEX$( KSTAT$(1)) : GOTO 10

Ctrl-A is 01 and ctrl-P is 10.


So to remap ctrl-P to say lowercase x,

200 EXECUTE "CON KEY 10,78"

To unmap it:

300 EXECUTE "CON KEY 10, clear"


To view keyboard mappings:

STATUS KEYBOARD or ST KEY