A
automandc
I want to control the behavior of a macro based on whether a modifier like
"Ctrl" or "Alt" is held down when the macro is run. I know you can detect
the state of CapsLock and NumLock, but is there any way to detect the current
state of the other keys on the keyboard? (Note, I am not using a form).
Ideally, I'd like this to work from a toolbar button -- i.e., clicking the
button runs the macro one way, clicking the button while holding shift or
ctrl runs it a different way.
"Ctrl" or "Alt" is held down when the macro is run. I know you can detect
the state of CapsLock and NumLock, but is there any way to detect the current
state of the other keys on the keyboard? (Note, I am not using a form).
Ideally, I'd like this to work from a toolbar button -- i.e., clicking the
button runs the macro one way, clicking the button while holding shift or
ctrl runs it a different way.