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
Can I temporarily remap CTRL+P
Moderators: Susan Smith, admin, Gabriel
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
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