Simulation message sent is invalid,
Keybd_event (VK_RBUTTON, 0, 0, 0).
Sleep (500);
Keybd_event (KEYEVENTF_KEYUP VK_RBUTTON, 0, 0);
Have administrator privileges
CodePudding user response:
[DllImport (" halcon. DLL)]//halcon. The DLL is copied to the C: \ Windows \ System32The static extern void HIOCancelDraw ();//exit the painting operation, call this function