0

I'm writing a program to test WIN10 settings automatically .The steps are as below:

1.Restart the computer. 2.Change style of mouse pointer. 3.Screen capture.

I've found there's no mouse pointer after restart computer. Because it must be automation, so I need to create a mouse pointer by program.

I've tried : Setting mouse position without System.Windows.Forms

But it doesn't worked. And I tried :

System.Windows.Forms.Cursor.Position = new System.Drawing.Point(500, 500);

Failed, too. Is there any way to create a mouse pointer?

Community
  • 1
  • 1
Jamie
  • 1
  • 2
  • Why don't you post-process your screenshot image, and manually add a mouse pointer? As far as I know, the mouse pointer never shows up in screenshots. – IInspectable Jul 12 '16 at 11:03
  • I use this method [link]http://stackoverflow.com/questions/6750056/how-to-capture-the-screen-and-mouse-pointer-using-windows-apis to let screenshots has a mouse pointer. – Jamie Jul 13 '16 at 01:23
  • Are you trying to take a screenshot of the current standard cursor, or are you trying to get the code you copied (and failed to understand) to do what you expect? – IInspectable Jul 13 '16 at 17:36
  • I'm trying to get the mouse pointer show up automatically after restart the computer, but the code I use which is in my question didn't work as I expect it to. – Jamie Jul 14 '16 at 03:33
  • Why are you trying to make the cursor show up? Is it because you don't know any other way to render a screenshot including the currently selected default cursor? It sure sounds like it. – IInspectable Jul 14 '16 at 09:05
  • YES! I don't know any other way to render a screenshot including the currently selected default cursor. – Jamie Jul 18 '16 at 06:23

0 Answers0