SetCursorPos() and related mouse position setting calls not working in Win8.1

    General discussion

  • Hi,

    I originally posted this issue in the Windows 8.1 forums, but was recommended to post it here.

    Calling SetCursorPos() seems to have no effect in windows 8.1 (8.1 Pro Preview)
    .NET calls to Cursor.Position and Cursor.SetPosition() also fail.

    Monday, July 01, 2013 9:10 AM

All replies

  • Is your windows 8.1 running in a VM?

    Visual C++ MVP

    Wednesday, July 03, 2013 4:52 AM
  • It is, but others which are not running in a VM can confirm this.
    Friday, September 20, 2013 2:47 PM
  • SetCursorPos works in general on Windows 8.1, but you may have found an edge case which doesn't work as expected. Can you provide more information about the scenario you are having problems with? We'd need at least a code snippet to go along with the scenario description, but if you can provide a minimal test project on your SkyDrive that would be even better.

    I just ran a quick test app on Windows 8.1 (RTM) which set a timer to call SetCursorPos(100,100) ever second and it worked as expected: the cursor warped to 100,100 every time the timer triggers.


    Friday, September 20, 2013 8:09 PM