logo       

macro passing BOOLEAN arguments problem: msg#00318

java.imagej

Subject: macro passing BOOLEAN arguments problem

Hi,
Fisrt of all sorry for english..
i write a java plugin for imagej, and i have many problem to pass boolean
argument in a macro.
plugin work correctly with a Generic Dialog with many controls. When i try to
call it with a macro, arguments are set correctly, but NOT BOOLEAN ARGUMENTS..
I note (after spend MANY time..) that arguments in macro MUST be write
completely in LOWER-CASE, but since i add boolean argument, his value is always
set to false (default value..)

Here is my macro:
(only attention to boolean "waitanswer" value)

-------------------
cmd = "?acc x";
cmd = "'" + cmd + "'";
run("eSlideLStepCtr plugin", "movement=Exec waitanswer=true genericcmd=" + cmd);
--------------------------

probably is wrong "true" value (but i also try with "True" and "1")

Any Ideas?? Thanks

Nicola



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise