Hi Adam,
a strange phenomenon - I do not understand why the Threshold panel
moves to the back when moving the "wait for user" window.
Unless someone else finds a solution to these puzzles, you could use
the Wait_For_User plugin, which does not keep the "wait" dialog in
the foreground.
http://imagejdocu.tudor.lu/doku.php?
id=plugin:utilities:wait_for_user:start
Michael
________________________________________________________________
On 10 Jun 2009, at 00:45, Adam Hacking wrote:
> Hi,
>
> I have a situation where I need to wait for input from the user,
> but I need the threshold window to remain in front of a bunch of
> windows. When the waitForUser() is called the Threshold moves back.
> If I don't wait the program skips by the threshold entry. I don't
> want to add a wait, but is there some loop I can add that waits
> until input from the user ?
>
> Thanks
>
> Adam
>
> selectWindow("Threshold");
>
>
> // Allow user to tweak threshold
> title = "Verify Correct Metal Threshold";
> msg = "Metal should be completely red. Click \"APPLY\" on
> Threshold window then \"OK\" on this window to proceed";
> waitForUser(title, msg);
>
>
>