Detectiing special key combination at high level

R

RzB

I have a fairly busy set of forms (tabbed controls + sub forms) etc...
I would like to detect a special key combination,
(for example Cntrl/RtArrow) as a higher level.
Perhaps at the top level form.

Can I do this?

Many thanks,
Roy
 
D

Douglas J Steele

Depending on the specific key combination, you could try creating an
AutoKeys macro that will automatically perform whatever function you want.
 
R

RzB

Douglas,

Many thanks for the response. I didn't know about AutoKeys.

And I was always told "you can't do anything with a macro that
you can't do with VBA". Hence I know nowt about Macros -
except AutoExec... :)

Unfortunately I don't seem to be able to get it to work. I have
created the macro, using RunCode and a VBA function to handle it.
If I just double click on the Macro it dutifully goes to the VBA
function and runs. However I can't get it to burst into life from the
keys I have set up. I have done it exactly as shown in the help and
tried all sorts of combinations..

Is there perhaps an option, that I can't find, turning it all off ?

Many thanks, for your help.

Roy
 
R

RzB

Dohhh ... Slight red face... A U T O K E Y S.... yes got it now:)

Thanks for the key combinations URL - that table is also in the help...

Very restrictive isn't it...

I want to pick up on something that sort of indicates left and right....

Cntrol L / R - nafff...

Can't use arrow keys, or <> or [] or () ... hmmm

Many thanks for you help.
Roy
 
P

Peter-d

I've also been successfull in using the keyup/keydown events and setting the
"keypreview" property to yes. This however, won't see keyboard actions on
subform, but you could repeat the code in each sub form (or centralize in in
a module sub that you call form each form).

For example keyup event, ctrl right returns keycode=39 and shift =2
 
Top