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
Command Line to Pause and Resume Playback ? [SOLVED]
- 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]
Hello Emmanuel,
There is no access to the Playback controls via the command line. You can assign keyboard shortcuts for them though.
There is no access to the Playback controls via the command line. You can assign keyboard shortcuts for them though.
Re: Command Line to Pause and Resume Playback ?
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)
with
This example may help other
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);
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