Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mouse pointer jumps to upper left corner when opening a new explorer window using watin

Every time I create a new WatiN IE instance the mouse pointer jumps to the upper left corner of the screen and the focus switches to the new window.

I want the application to run the background so I've set the option for the new window to not to be visible:

Settings.Instance.MakeNewIeInstanceVisible = false;

But the mouse jump and loss of focus still occur. Is there an option to disable these jumps or a workaround for this issue?

like image 732
Simon Avatar asked Dec 09 '22 15:12

Simon


2 Answers

The link doesn't exist anymore. The answer seems to be :

Settings.Instance.AutoMoveMousePointerToTopLeft = false;
like image 129
jeanmatthieud Avatar answered May 08 '23 06:05

jeanmatthieud


check section New Settings in http://watin.sourceforge.net/releasenotes-1-2-0-4000.html

like image 45
Amr Badawy Avatar answered May 08 '23 07:05

Amr Badawy