Command Line to Pause and Resume Playback ?  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Command Line to Pause and Resume Playback ?

Postby Emmanuel » 22 Jul 2016

Hi,

Do we have a Command Line to Pause and to Resume the Playback in Multicharts ?

I see the list here : http://www.multicharts.com/trading-soft ... d_Commands

but I am not sure if it exist or not.

How can we Pause and resume the playback from the Visual Studio ?

Thank you for your help

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Command Line to Pause and Resume Playback ?  [SOLVED]

Postby Henry MultiСharts » 22 Jul 2016

Hello Emmanuel,

There is no access to the Playback controls via the command line. You can assign keyboard shortcuts for them though.

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: Command Line to Pause and Resume Playback ?

Postby Emmanuel » 30 Jul 2016

Hi Henry

Thank you very much it works :)

I use Control A as a short cut , Here is an example I use: (to help other user)

Code: Select all

[DllImport("USER32.DLL", CharSet = CharSet.Unicode)]
public static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);

// Activate an application window.
[DllImport("USER32.DLL")]
public static extern bool SetForegroundWindow(IntPtr hWnd);
with

Code: Select all

IntPtr appHandle = FindWindow(null, "Multicharts .NET64 - Untitled Desktop - FXCM1 - [EURUSD - 3 Tick Bars - MCFX]");
if (appHandle == IntPtr.Zero)
{
MessageBox.Show("Specified app is not running.");
return;
}
SetForegroundWindow(appHandle);
SendKeys.SendWait("^(A)"); // PlayBack
This example may help other


Return to “MultiCharts .NET”