Home > Software engineering >  After Halcon DrawRegion () blocks until the right press, how do I take the initiative to cancel the
After Halcon DrawRegion () blocks until the right press, how do I take the initiative to cancel the

Time:09-16

Halcon DrawRegion () blocks until after the right press, when if not be careful not to press the right to close the window, into card dead, how do I take the initiative to cancel the drawing area
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 \ System32
The static extern void HIOCancelDraw ();//exit the painting operation, call this function
  • Related