Exception:SendKeys 无法在此应用程序内运行,原因是此应用程序不处理 Windows 消息。 请将此应用程序更改为可处理消息,或者使用 SendKeys.SendWait 方法。

报错信息

InvalidOperationException: SendKeys 无法在此应用程序内运行,原因是此应用程序不处理 Windows 消息。  请将此应用程序更改为可处理消息,或者使用 SendKeys.SendWait 方法。
StackTrace:
   在 System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)
   在 DynamicClass.ExampleClass.MouseListener()
   在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   在 System.Threading.ThreadHelper.ThreadStart()

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-07-19 13:10
Quicker版本
版本 反馈次数