无法使用Taskt RPA截屏

时间:2018-12-04 06:25:57

标签: rpa

我正在使用TaskT rpa编写自动化代码,但是该代码正常工作,除了屏幕截图部分,每次在屏幕截图步骤失败时,都会在日志上抛出错误。我已经在问题中添加了带有步骤详细信息的图像

Error: System.Exception: System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
   at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
   at System.Drawing.Image.Save(String filename, ImageFormat format)
   at System.Drawing.Image.Save(String filename)
   at taskt.Core.AutomationCommands.ScreenshotCommand.RunCommand(Object sender)
   at taskt.Core.AutomationEngineInstance.ExecuteCommand(ScriptAction command)
   at taskt.Core.AutomationEngineInstance.ExecuteCommand(ScriptAction command)
   at taskt.Core.AutomationEngineInstance.ExecuteScript(String filePath)

enter image description here

1 个答案:

答案 0 :(得分:1)

这是现成的G1ANT代码,您可以使用:

keyboard ⋘ctrl+printscreen⋙
program mspaint.exe
keyboard ⋘ctrl+v⋙
keyboard ⋘ctrl+s⋙
keyboard filename
change the file name and on the end, you can put the last command:
keyboard ⋘enter⋙