简体   繁体   English

表达式编码器ScreenCaptureJob不记录

[英]Expression Encoder ScreenCaptureJob not recording

Hi I was wondering if anyone would have a solution to my problem here? 嗨,我想知道是否有人在这里可以解决我的问题?

I have started to use ScreenCaptureJob in my TestAutomation Framework and found that for some reason, although it may work I find that if I leave my PC logged in for the very next day for some reason it will stop working. 我已经开始在TestAutomation框架中使用ScreenCaptureJob,并发现由于某种原因,尽管它可能会起作用,但我发现如果由于某种原因我第二天将PC保持登录状态,它将停止工作。 Here is the source code for reference. 这是供参考的源代码。 This issue is resolved by restarting, but remains consistent; 通过重新启动可以解决此问题,但保持一致; ie the very next day if I haven't restarted it will persist... 即第二天,如果我还没有重启,它将持续存在...

源代码

Further info: scj.Status = NotStarted; 更多信息: scj.Status = NotStarted;

Also note that I have commented out the if statements and date handling logic to yield the exact same result, so this isn't what's causing the issue; 还要注意,我已经注释掉了if语句和日期处理逻辑以产生完全相同的结果,所以这不是导致问题的原因。

Turns out it was to do with 2 active graphics cards, can easily disable one of them through device manager. 原来这与2个活动的图形卡有关,可以通过设备管理器轻松禁用其中之一。 Can easily find the correct exception by running Microsoft Expression Encoder 4 Screen Capture.exe and attempting to record through UI. 通过运行Microsoft Expression Encoder 4 Screen Capture.exe并尝试通过UI进行记录,可以轻松找到正确的异常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM