Topics
Forum Topics not found
Replies
BetsAnalistasCBot
10 Feb 2019, 13:24
RE: RE: Solved with ffmpeg
BetsAnalistasCBot said:
BetsAnalistasCBot said:
I have solved the problem running ffmpeg with "Process" from System.Diagnostics
I have solved the problem running ffmpeg with "Process" from System.Diagnostics
First Detach your Symbol Chart from cTrader window and then use the code below to capture your Window Symbol Chart
Best regards
@BetsAnalistasCBot
BetsAnalistasCBot
10 Feb 2019, 13:22
RE: RE: Solved with ffmpeg
using System.Diagnostics; private string FFmpegArguments; if (CaptureChart(Symbol.Code.ToString())) { Print(Symbol.Code.ToString() + " Chart successfully captured"); } private bool CaptureChart(string Simbolo) { FFmpegArguments = "-f gdigrab -i title=\"" + Simbolo + ", " + TimeFrame.ToString().Replace("Minute", "m").Replace("Hour", "h").Replace("Daily", "D").Replace("Day", "D").Replace("Tick", "t") + " - FxPro cTrader\" -s 800x400 -vframes 1 -f mjpeg z:/ForexCharts/" + Simbolo + ".png -y"; if (Simbolo.Substring(0, 1) == "#") FFmpegArguments = "-f gdigrab -i title=\"" + Simbolo + ", " + TimeFrame.ToString().Replace("Minute", "m").Replace("Hour", "h").Replace("Daily", "D").Replace("Day", "D").Replace("Tick", "t") + " - FxPro cTrader\" -s 800x400 -vframes 1 -f mjpeg z:/ForexCharts/" + Simbolo.Substring(1) + ".png -y"; try { Process myProcess = new Process(); myProcess.StartInfo.UseShellExecute = false; myProcess.StartInfo.Arguments = Argumentos; myProcess.StartInfo.FileName = "c:/nginx/ffmpeg/bin/ffmpeg.exe"; myProcess.StartInfo.CreateNoWindow = true; myProcess.Start(); myProcess.WaitForExit(); return true; } catch (Exception e) { Print(e.Message); return false; } }
@BetsAnalistasCBot
BetsAnalistasCBot
10 Feb 2019, 13:21
RE: Solved with ffmpeg
BetsAnalistasCBot said:
I have solved the problem running ffmpeg with "Process" from System.Diagnostics
I have solved the problem running ffmpeg with "Process" from System.Diagnostics
@BetsAnalistasCBot
BetsAnalistasCBot
10 Feb 2019, 12:51
Solved with ffmpeg
I have solved the problem running ffmpeg with "Process" from System.Diagnostics
@BetsAnalistasCBot
BetsAnalistasCBot
10 Feb 2019, 13:32
RE: RE: RE: Solved with ffmpeg
BetsAnalistasCBot said:
@BetsAnalistasCBot