selectWindow() getting hidden

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

selectWindow() getting hidden

Adam Hacking
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);








Reply | Threaded
Open this post in threaded view
|

Re: selectWindow() getting hidden

Michael Schmid
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);
>
>
>