Can I temporarily remap CTRL+P

Information and discussion about the BR Wiki.

Moderators: Susan Smith, admin, Gabriel

Post Reply
Mikhail
Posts: 87
Joined: Tue Jul 07, 2009 10:26 am
Location: Ukraine

Can I temporarily remap CTRL+P

Post 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
gordon
Posts: 358
Joined: Fri Apr 24, 2009 6:02 pm

Post 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
Post Reply