Using Shift as modifier with F-keys in macros
Posted by
Stein Rørvik on
URL: http://imagej.273.s1.nabble.com/Using-Shift-as-modifier-with-F-keys-in-macros-tp5021916.html
Install this macro; and launch it via F1 with and without a modifier key:
macro "Test Macro [F1]" {
message = "";
if (isKeyDown("alt")) message += ", alt";
if (isKeyDown("shift")) message += ", shift";
if (isKeyDown("space")) message += ", space";
showMessage("Macro F1" + message);
}
It works as expected alone and with the alt and space keys, but not shift.
With shift-F1 the macro does not launch at all.
Is shift-F1 mapped to a different scan code on the Windows keyboard,
or is there any other reason this does not work as expected?
What happens under Mac and Linux?
I am using daily build ImageJ 1.52m with Java 1.8 on Windows 7/64-bit.
Stein
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html