I'm currently looking for a way to move the mouse in wpf. All I found was unmanaged method calls which I couldn't implement reliably. Is there an easy way to move the mouse cursor to some place, ie. after a doubleclick? I'm surely missing something here.
Asked
Active
Viewed 3,044 times
1 Answers
7
Add a reference to System.Windows.Forms.dll, then set Cursor.Position
.

SLaks
- 868,454
- 176
- 1,908
- 1,964
-
1While this might be a way, I'm quite reluctant to reference System.Windows.Forms in a WPF application. – Femaref Nov 22 '10 at 09:24
-
I know this is an old question and all but, I'm actually curious if you happened to find a way to do this without adding the System.Windows.Forms reference? – user1676874 Jul 28 '15 at 21:25