private void CommandtWatcher()
{
// Both PR and D2H are classes from external dll files
// PR is ProcessMemoryReader class, it reads a message from X window
if(PR[0].getLastChatMsg().Equals("#eg")) // If I typed "#eg" then
{
D2HList[0].QuitGame("WindowToBeClosed"); // Close game window
}
}
这些功能的工作原理相当不错的工作,但我不能强迫它在后台运行,而不会中断UI生活运行此功能在后台
这是不是从游戏核心源代码片断,它完全是外部程序读取进程内存,所以我没有任何一种超级压力
什么版本的.NET的是你吗?这会影响后台任务的启动。 –
我有这个项目的.NET 4.5版本:) –
在这种情况下,我建议@NedStoyanov的回答 –