Can I send a ctrl-C (SIGINT) to an application on Windows?

前端 未结 17 2349
甜味超标
甜味超标 2020-11-22 09:15

I have (in the past) written cross-platform (Windows/Unix) applications which, when started from the command line, handled a user-typed Ctrl-C combinat

17条回答
  •  无人及你
    2020-11-22 09:50

    I found all this too complicated and used SendKeys to send a CTRL-C keystroke to the command line window (i.e. cmd.exe window) as a workaround.

提交回复
热议问题