c# - Why SendKeys.SendWait() crashes my application -
in console application, sendkeys.sendwait("^c") called copy selected text clipboard.
it works fine, if console application has focus when called, then, instead of throwing exception, closes application. , after things start acting up, mouse wheel affecting zoom instead of scrolling , down.
why dose happen.
ctrl+cis signal console window close.
and reason mouse wheel affecting zoom after closes because application never got chance release ctrl key.
this can fixed changing consolemode or changeing console.treatcontrolcasinput property.
thanks help
Comments
Post a Comment