Posted by
Bill Mohler on
URL: http://imagej.273.s1.nabble.com/Macro-control-over-QuickTime-Player-window-in-ImageJ-tp3699369p3699371.html
Thanks, Gabriel. In fact, I am getting the command
run("IJ Robot", "order=KeyPress keypress=g");
to work now just fine. I was just unclear on the syntax, until I
realized that I was supposed to create macro code by starting the
macro recorder, then running the ijrobot plugin to create properly
formatted robot orders.
Another interesting observation: I can't run a macro via keyboard
shortcut when the QuickTime Player window is in foreground. But I
can run the macro (with the QuickTime Player window in foreground)
from the Plugins>Macros menu when the macro is installed).
Bill
>On Tuesday 22 May 2007, you wrote:
>> I also just found this note on the documentation for IJ_Robot:
>> Note that in Mac OSX with an AZERTY keyboard, the typed string does
>> not get interpreted correctly.
>
>Yes, there is something strange in the way that the keys are reported using
>different keyboards. A string does not necessarily correspond to a key event
>or to a character value, apparently. It seems to depend on the keyboard one
>is using. But I am not sure.
>
>I am sorry but I do not have a solution to that at the moment. I would
>appreciate if anybody can clarify what is the relation between keyboard,
>string, character and key event.
>
>> Does this mean that KeyPress will not work on any of my Macs running OSX?
>
>You could do some test runs to male sure what string sends what key press. If
>one positions the cursor in a text editor and sends the commands there, one
>can see what comes out.
>I know that this is not ideal, but I hope it helps anyway.
>
>Regards,
>
>Gabriel
--
-----------------
William A. Mohler
Associate Professor
Dept. of Genetics and Developmental Biology
University of Connecticut Health Center
MC-3301
263 Farmington Ave.
Farmington, CT 06030-3301
[hidden email]
Office: (860) 679-1833, room E2056
Lab: (860) 679-1834, room E2052
Mobile: (860) 985-2719
Fax: (860) 760-6140
G&DB dept. ofc.: (860) 679-8350
G&DB dept. fax : (860) 679-8345
http://genetics.uchc.edu/Faculty/Mohler/Mohler.html