"Window in still wait mode" solution

Mar 29, 2012 at 11:19 PM
Edited Mar 29, 2012 at 11:20 PM

I was having problems getting at menu items with code such as:

 

var menuBar = mainWindow.MenuBar;
Menu menu = menuBar.MenuItem("File", "Options...");

 

I kept getting an error that included "Window in still wait mode"

After a lot of trial and error I found that adding the following line to my App.config fixed the situation:

 

<add key="MoveMouseToGetStatusOfHourGlass" value="False" />

solved the problem.